** Description changed: [Impact] For sbuild users attempting to build this package locally results in pkg build failures due to inability of sbuild to handle the build deps alternatives when running: sbuild -s --source-only-changes [Test Plan] - $ git ubuntu clone ubuntu-advantage-tools - $ cd ubuntu-advantage-tools - case ($release) in - hirsute) - resolve_alt="";; - xenial|bionic|focal|groovy) - resolve_alt="--resolve-alternatives";; - esac + cat > sru-sbuild-test.sh <<EOF + #!/bin/bash + [ -d ./ubuntu-advantage-tools ] || git-ubuntu clone ubuntu-advantage-tools + cd ubuntu-advantage-tools - $ sbuild -s --source-only-changes -d $release $resolve_alt + for release in bionic focal groovy hirsute; do + case "\${release}" in + hirsute) + resolve_alt="";; + xenial|bionic|focal|groovy) + resolve_alt="--resolve-alternatives";; + esac + git checkout pkg/ubuntu/\${release}-proposed; + sbuild -s --source-only-changes -d \${release} \${resolve_alt} + done + EOF + + bash sru-build-test.sh # expect no sbuild failures + + Also uploaded binary equavalent 27.0.2 bits to ppa:ua-client/staging PPA + which sucessfully built Xenial -> Impish where powerpc (xenial) and + riscv64 platforms are viable (focal++) + [Where problems could occur] * Due to using the same d/control on all Ubuntu releases, simpler sbuild commandline will require use of `--resolve-alternatives` parameter on older releases where sbuild doesn't "seed" those build deps alternatives by default. * This should be low risk as PPAs ppa:ua-client/staging & ppa- uaclient/daily are building successfully with these Build-Depends and genereally sbuild allows for workarounds with using --resolve- alternatives. - * [racb] Mutating the Build-Depends line could cause alternatives to be + * [racb] Mutating the Build-Depends line could cause alternatives to be resolved differently on the buildds, resulting in toolchain changes that might result in different sets of build failures or different build output causing functional issues. [Other Info] ... [Original Description] Hello, [Problem] ========= It looks like apt isn't able to resolve `dh-systemd | debhelper (>= 13.3)`. Whilst the line in logical and makes sense, that is, use dh- systemd for Groovy and older releases (since it's not present in Hirsute and thereafter) and use debhelper (...) for newer releases, et al. However, apt is failing to resolve that for some reasons and it's thus results in FTBFS. [Logs] ====== Install main build dependencies (apt-based resolver) ---------------------------------------------------- Installing build dependencies Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: sbuild-build-depends-main-dummy : Depends: dh-systemd but it is not installable E: Unable to correct problems, you have held broken packages. apt-get failed. E: Package installation failed Not removing build depends: cloned chroot in use [Reproducer] ============ $ git ubuntu clone ubuntu-advantage-tools $ cd ubuntu-advantage-tools $ sbuild -s --source-only-changes and that should yield a failed build.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1926949 Title: FTBFS: apt can't resolve `dh-systemd | debhelper (>= 13.3)` To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1926949/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs