failing to build on plucky
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Mitch Burton |
Bug Description
[ Impact ]
landscape-client fails to build on plucky because of the removal of
the deprecated unittest.makeSuite API from CPython.
Build log showing errors: https:/
This can be corrected by replacing calls to makeSuite with the
recommended unittest.
Additionally, override_
install -D -o root -g root
lines because of errors changing ownership during build.
Because root:root ownership during build is not required for these
executables to function, the ownership change can be dropped from
these install lines.
autopkgtests are also failing: https:/
This appears to be because the landscape user does not exist - this can likely
be resolved by using the same environment variables, LANDSCAPE_
LANDSCAPE_
Beyond the above, some tests are failing during autopkgtest because of http_
and https_proxy environment variables: https:/
[ Test Plan ]
Test a build on a plucky machine. I did this using LXD and debuild.
Also, test a build on Launchpad by uploading to a PPA. Ensure build
succeeds and the landscape-client and landscape-common packages are
installable.
Check the ownership and permissions of
/usr/share/
It should be root:root and 0755
Check the ownership and permissions of
/usr/lib/
It should be root:landscape and 4754
Make sure that the MOTD appears normally, including landscape-sysinfo
information.
Make sure that landscape-client can register to a landscape-server
deployment and report package state.
[ Where problems could occur ]
landscape-
impact update-motd, either by introducing errors or by failing to show
the sysinfo.
landscape's apt-update could have broken permissions, which could prevent
landscape-client from reporting packages.
[ Other Info ]
The current MP targeted at this bug also includes the fix for
LP: #2087852
Related branches
- Andreas Hasenack: Approve
- Ubuntu Sponsors: Pending requested
-
Diff: 369 lines (+312/-3)7 files modifieddebian/changelog (+18/-0)
debian/patches/2087852-feat-manage-ubuntu-sources-glob.patch (+188/-0)
debian/patches/allow-http-proxy-in-tests.patch (+60/-0)
debian/patches/series (+3/-0)
debian/patches/unittest-makeSuite-deprecation.patch (+40/-0)
debian/rules (+2/-2)
debian/tests/control (+1/-1)
Changed in landscape-client (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Mitch Burton (mitchburton) |
description: | updated |
description: | updated |
This bug was fixed in the package landscape-client - 24.12-0ubuntu2
---------------
landscape-client (24.12-0ubuntu2) plucky; urgency=medium
[ Bryan Fraschetti ] feat-manage- ubuntu- sources- glob.patch: include DEB822 formatted sources
* d/p/2087852-
when managing apt sources by regex matching .sources files (LP: #2087852)
[ Mitch Burton ] makeSuite- deprecation. patch: fix tests on python versions http-proxy- in-tests. patch: fix tests by making them
* Fix FTBFS (LP: #2106263)
- d/p/unittest-
where unittest.makeSuite has been removed
- d/rules: don't make root:root owner of installed executables
- d/tests/control: set environment variables for autopkgtest user and
build environment
- d/p/allow-
insensitive to http/https proxy environment variables
-- Mitch Burton <email address hidden> Wed, 26 Mar 2025 17:47:28 -0700