build operates differently if source is a git repo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Fix Released
|
Low
|
Christian Ehrhardt | ||
Bionic |
New
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Dan Streetman | ||
Groovy |
Fix Released
|
Low
|
Dan Streetman | ||
Hirsute |
Fix Released
|
Low
|
Christian Ehrhardt |
Bug Description
[impact]
the 'configure' file checks for the existence of a '.git' directory, and if present it enables special build options that aren't used for 'normal' builds, some of which may cause the build to fail. This doesn't affect builds in PPAs or in the archive, since those do not happen in a git repo checkout, but this does cause very confusing failures and/or alternate behavior when building locally from a 'git ubuntu' checkout of the package.
[test case]
pull-lp-source qemu and build; assuming the build-deps are installed, it will build correctly.
git ubuntu clone qemu and build; it will likely fail to build even if build-deps are installed, and even if it does build, the result will be different than a non-git build.
[Where problems could occur]
A regression would likely cause a failed build, or incorrectly built package. We need to differ here for "packaging build" and "local (manual) build". For the "local (manual) build" the regression is net to zero as it currently does not work (or only with many many hurdles). The "packaging build" is the more interesting one for this category. Here the change should essentially turn out as no-op, but in case the most likely regression is that this turns out to "change" the build result in unexpected ways.
[scope]
this 'feature' comes from upstream, so this is needed in all releases.
[other info]
submitted patch upstream:
https:/
and to Debian:
https:/
this is related to bug 1887823, since building for bionic from a git repo fails due to that bug also.
Related branches
- Utkarsh Gupta (community): Approve
- Sergio Durigan Junior (community): Needs Information
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 587 lines (+530/-0)8 files modifieddebian/changelog (+14/-0)
debian/patches/series (+5/-0)
debian/patches/ubuntu/lp-1887535-configure-replace-enable-disable-git-update-with-wit.patch (+277/-0)
debian/patches/ubuntu/lp-1921468-pc-bios-s390-ccw-break-loop-if-a-null-block-number-i.patch (+40/-0)
debian/patches/ubuntu/lp-1921468-pc-bios-s390-ccw-fix-off-by-one-error.patch (+41/-0)
debian/patches/ubuntu/lp-1921665-1-block-Require-aligned-image-size-to-avoid-assert.patch (+66/-0)
debian/patches/ubuntu/lp-1921665-2-file-posix-Allow-byte-aligned-O_DIRECT-with-NFS.patch (+86/-0)
debian/rules (+1/-0)
- Utkarsh Gupta (community): Approve
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 586 lines (+529/-0)8 files modifieddebian/changelog (+14/-0)
debian/patches/series (+5/-0)
debian/patches/ubuntu/lp-1887535-configure-replace-enable-disable-git-update-with-wit.patch (+276/-0)
debian/patches/ubuntu/lp-1921468-pc-bios-s390-ccw-break-loop-if-a-null-block-number-i.patch (+40/-0)
debian/patches/ubuntu/lp-1921468-pc-bios-s390-ccw-fix-off-by-one-error.patch (+41/-0)
debian/patches/ubuntu/lp-1921665-1-block-Require-aligned-image-size-to-avoid-assert.patch (+66/-0)
debian/patches/ubuntu/lp-1921665-2-file-posix-Allow-byte-aligned-O_DIRECT-with-NFS.patch (+86/-0)
debian/rules (+1/-0)
- Christian Ehrhardt : Pending requested
-
Diff: 313 lines (+280/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1887535-configure-replace-enable-disable-git-update-with-wit.patch (+269/-0)
debian/rules (+1/-0)
- Christian Ehrhardt (community): Approve
-
Diff: 321 lines (+288/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1887535-configure-replace-enable-disable-git-update-with-wit.patch (+277/-0)
debian/rules (+1/-0)
- Christian Ehrhardt : Pending requested
-
Diff: 320 lines (+287/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1887535-configure-replace-enable-disable-git-update-with-wit.patch (+276/-0)
debian/rules (+1/-0)
- Christian Ehrhardt : Pending requested
-
Diff: 342 lines (+309/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1887535-configure-replace-enable-disable-git-update-with-wit.patch (+298/-0)
debian/rules (+1/-0)
CVE References
description: | updated |
Changed in qemu (Ubuntu): | |
assignee: | nobody → Dan Streetman (ddstreet) |
importance: | Undecided → Low |
status: | New → In Progress |
Changed in qemu (Ubuntu Focal): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in qemu (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in qemu (Ubuntu Focal): | |
importance: | Undecided → Low |
Changed in qemu (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in qemu (Ubuntu Focal): | |
status: | New → In Progress |
Changed in qemu (Ubuntu Bionic): | |
importance: | Undecided → Low |
description: | updated |
tags: | added: qemu-21.04 |
description: | updated |
description: | updated |
Changed in qemu (Ubuntu Bionic): | |
assignee: | Dan Streetman (ddstreet) → nobody |
status: | In Progress → New |
As mentioned on IRC, I'm not opposed to a patch to avoid people trying to build the package falling into the trap. But that clearly is not Ubuntu-special nor urgent so I'd appreciate if you'd ask MJT with a PR to Debian directly.