dev-libs/glib: python shebang build failure when USE=utils (bug #578226)
authorAlexandre Rostovtsev <tetromino@gentoo.org>
Sat, 26 Mar 2016 21:20:28 +0000 (17:20 -0400)
committerAlexandre Rostovtsev <tetromino@gentoo.org>
Sat, 26 Mar 2016 21:24:57 +0000 (17:24 -0400)
Restore behavior from previous ebuild versions; it's needed
to avoid python shebang mis-mangling while avoiding a build
dependency on python when USE="utils" FEATURES="-test"

Package-Manager: portage-2.2.28

dev-libs/glib/glib-2.48.0.ebuild

index c1d5a506be6a84b7ee1ace5c69dc423b2eeb9285..37bee6d2406c9a4a2069199de3fe4ff5b7921a1a 100644 (file)
@@ -128,9 +128,11 @@ src_prepare() {
        # missing from 2.48.0 tarball, should be fixed in 2.48.1; bug #578238
        cp "${FILESDIR}"/${P}-gobject.stp.in gobject/gobject.stp.in || die
 
-       # leave python shebang alone
-       # sed -e '/${PYTHON}/d' \
-       #       -i glib/Makefile.{am,in} || die
+       # Leave python shebang alone - handled by python_replicate_script
+       # We could call python_setup and give configure a valid --with-python
+       # arg, but that would mean a build dep on python when USE=utils.
+       sed -e '/${PYTHON}/d' \
+               -i glib/Makefile.{am,in} || die
 
        epatch_user