media-libs/alsa-lib: tweak FEATURES=test from failing, bug #545950
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 22 May 2016 22:17:34 +0000 (23:17 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 22 May 2016 22:17:43 +0000 (23:17 +0100)
The test happened to fail only on systems without alsa-lib
installed (any fresh stage3).

Reported-by: eroen
Bug: https://bugs.gentoo.org/545950

Package-Manager: portage-2.3.0_rc1

media-libs/alsa-lib/alsa-lib-1.1.1.ebuild

index bd7a02a50fcd7477a025c7d87929d2e3f7651afa..ce747686f1d6d8b2d0ae76fee3312f64e9982718 100644 (file)
@@ -36,6 +36,8 @@ src_prepare() {
        find . -name Makefile.am -exec sed -i -e '/CFLAGS/s:-g -O2::' {} + || die
        # https://bugs.gentoo.org/509886
        use elibc_uclibc && { sed -i -e 's:oldapi queue_timer:queue_timer:' test/Makefile.am || die; }
+       # https://bugs.gentoo.org/545950
+       sed -i -e '5s:^$:\nAM_CPPFLAGS = -I$(top_srcdir)/include:' test/lsb/Makefile.am || die
        default
        eautoreconf
 }