Train should clean source tree before building.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CI Train [cu2d] |
Fix Released
|
High
|
Robert Bruce Park |
Bug Description
So we're having some growing pains around the gcc5 story, people are wanting to continue dual landing even though they are technically required to have two different debian/control files depending on what their binary package names are (whether or not they were built with gcc5).
Michi has written a debian/rules that is able to generate the correct debian/control depending on what ubuntu release it's being built for, however this fails in practise because the package build process requires debian/control to exist before debian/rules can be built.
I've discussed this with slangasek and sil2100 and it should not be difficult or unreasonable to modify the source package build process to first call debian/rules for the purposes of generating debian/control. The necessary new code would look something like this (in the chroot):
apt-get build-dep $PACKAGE
./debian/rules clean
And then projects will be free to specify an override_
Related branches
- Steve Langasek: Approve
- PS Jenkins bot: Approve (continuous-integration)
- Robert Bruce Park (community): Approve
-
Diff: 27 lines (+7/-6)1 file modifiedchroot-tools/buildsource-chroot (+7/-6)
Changed in cupstream2distro: | |
importance: | Undecided → High |
Changed in cupstream2distro: | |
status: | Triaged → Fix Committed |
Changed in cupstream2distro: | |
status: | Fix Committed → Fix Released |
A feasible solution I think, makes sense in overall. Although I must say that I'm generally not fond of the idea that we would generate packaging dynamically - it makes the situation less clean. And remember that not only debian/control might need to be generated, but also the respective .install files and/or .symbol files.