trunk build failure: no usr/bin/landscape-sysinfo

Bug #1737729 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
High
Andreas Hasenack

Bug Description

Build failure log:
(...)
running install_egg_info
Writing debian/tmp/usr/local/lib/python3.4/dist-packages/landscape_client-17.04.egg-info
# Keep in mind that some installed files are defined in setup.py
install -D -o root -g root -m 755 debian/landscape-sysinfo.wrapper debian/tmp/usr/share/landscape/landscape-sysinfo.wrapper
install -D -o root -g root -m 755 apt-update/apt-update debian/tmp/usr/lib/landscape/apt-update
dh_lintian
dh_testdir
dh_testroot
dh_installdocs
dh_installman
dh_installchangelogs
dh_install --sourcedir debian/tmp/
cp: cannot stat ‘debian/tmp/usr/bin/landscape-sysinfo’: No such file or directory
dh_install: cp -a debian/tmp/usr/bin/landscape-sysinfo debian/landscape-common//usr/bin/ returned exit code 1
make: *** [binary-arch] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

It failed like this in all ubuntu releases for which we have a build recipe for.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This was fixed in trunk, not sure which revision. Files were being installed with a /usr/local prefix instead of /usr.

Changed in landscape-client:
status: New → Fix Committed
milestone: none → 18.01
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Actually, it's not fixed yet.

d/rules has these lines:
-include /usr/share/python/python.mk
(...)
python3 setup.py install --root $(root_dir)/ $(py_setup_install_args)

py_setup_install_args is responsible for fixing the /usr/local prefix, and it's defined in /usr/share/python/python.mk. That mk file, though, comes from python2. For python3 we need /usr/share/python3/python.mk

Changed in landscape-client:
status: Fix Committed → Triaged
Changed in landscape-client:
assignee: nobody → Andreas Hasenack (ahasenack)
importance: Undecided → High
status: Triaged → In Progress
Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Changed in landscape-client:
status: In Progress → Fix Committed
Changed in landscape-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.