Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 398209

Summary: net-dns/avahi-0.6.30-r2 USE=python install failure: /bin/true: cannot execute binary file
Product: Gentoo Linux Reporter: Ed Catmur <ed>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ed Catmur 2012-01-09 02:05:36 UTC
Making install in avahi
make[2]: Entering directory `/var/tmp/portage/net-dns/avahi-0.6.30-r2/work/avahi-0.6.30/avahi-python/avahi'
make[3]: Entering directory `/var/tmp/portage/net-dns/avahi-0.6.30-r2/work/avahi-0.6.30/avahi-python/avahi'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/python2.7/site-packages/avahi" || /bin/mkdir -p "/var/tmp/portage/net-dns/avahi-0.6.30-r2/image//usr/lib/python2.7/site-packages/avahi"
test -z "/usr/lib/python2.7/site-packages/avahi" || /bin/mkdir -p "/var/tmp/portage/net-dns/avahi-0.6.30-r2/image//usr/lib/python2.7/site-packages/avahi"
 /usr/bin/install -c ServiceTypeDatabase.py '/var/tmp/portage/net-dns/avahi-0.6.30-r2/image//usr/lib/python2.7/site-packages/avahi'
 /usr/bin/install -c -m 644 __init__.py '/var/tmp/portage/net-dns/avahi-0.6.30-r2/image//usr/lib/python2.7/site-packages/avahi'
/bin/true: /bin/true: cannot execute binary file
make[3]: *** [install-avahiPYTHON] Error 126

Appears to be because ebuild uses

	emake install py_compile=true DESTDIR="${D}" || die "make install failed"

but Makefile has

am__py_compile = PYTHON=$(PYTHON) $(SHELL) $(py_compile)

so it's trying to invoke /bin/sh /bin/true, which is invalid.

Suggest changing py_compile=true to py_compile='-c :'.
Comment 1 Ed Catmur 2012-01-09 02:07:04 UTC
note: I'm using an overlay ebuild for Bug 397477.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-10 15:21:29 UTC

*** This bug has been marked as a duplicate of bug 397477 ***
Comment 3 Ed Catmur 2012-01-10 18:58:33 UTC
Are you sure this is a duplicate?  It doesn't seem to be related to that issue.