net-misc/networkmanager: don't compile examples
authorAlexandre Rostovtsev <tetromino@gentoo.org>
Fri, 11 Sep 2015 02:04:27 +0000 (22:04 -0400)
committerAlexandre Rostovtsev <tetromino@gentoo.org>
Fri, 11 Sep 2015 02:04:51 +0000 (22:04 -0400)
They are not needed and can cause build failure in some cases.

Gentoo-Bug: 560140
Reported-by: Anibal Francisco
Package-Manager: portage-2.2.20.1

net-misc/networkmanager/networkmanager-1.0.6.ebuild

index a86a5f8e99495fc9cfc518c7db88d83e4c0c6fb0..fd570b5a153637cf1f29182513bdb62e6a400d02 100644 (file)
@@ -121,6 +121,9 @@ src_prepare() {
        # Force use of /run, avoid eautoreconf, upstream bug #737139, fixed in 'master'
        sed -e 's:$localstatedir/run/:/run/:' -i configure || die
 
+       # Don't build examples, they are not needed and can cause build failure
+       sed -e '/^\s*examples\s*\\/d' -i Makefile.{am,in} || die
+
        use vala && vala_src_prepare
 
        epatch_user # don't remove, users often want custom patches for NM