media-sound/pianobooster: add patch to fix build failure
authorMichael Palimaka <kensington@gentoo.org>
Fri, 11 Mar 2016 18:24:10 +0000 (05:24 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Fri, 11 Mar 2016 18:24:43 +0000 (05:24 +1100)
Gentoo-bug: 369697

Package-Manager: portage-2.2.27

media-sound/pianobooster/files/pianobooster-0.6.4b-underlinking.patch [new file with mode: 0644]
media-sound/pianobooster/pianobooster-0.6.4b.ebuild

diff --git a/media-sound/pianobooster/files/pianobooster-0.6.4b-underlinking.patch b/media-sound/pianobooster/files/pianobooster-0.6.4b-underlinking.patch
new file mode 100644 (file)
index 0000000..37720e5
--- /dev/null
@@ -0,0 +1,15 @@
+Fix build failure caused by underlinking.
+
+Gentoo-bug: 369697
+
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -57,6 +57,8 @@
+     #IF(ALSA_FOUND)\r
+         ADD_DEFINITIONS(-D__LINUX_ALSASEQ__)\r
+         LINK_LIBRARIES (asound)\r
++        LINK_LIBRARIES (GL)\r
++        LINK_LIBRARIES (pthread)\r
+     #ELSE(ALSA_FOUND)\r
+     #    MESSAGE(FATAL_ERROR "Please install the 'libasound2-dev' package and then try again")\r
+     #ENDIF(ALSA_FOUND)\r
index 54705c9f72befcadd6392755094980ba23fdba9e..8da3fe2ed96a00826daa6824ecba9ab1a70b0485 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -26,8 +26,11 @@ RDEPEND="${DEPEND}"
 
 DOCS="ReleaseNote.txt ../README.txt"
 
-PATCHES=( "${FILESDIR}"/${P}-cmake.patch
-       "${FILESDIR}"/${P}-gcc47.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-cmake.patch
+       "${FILESDIR}"/${P}-gcc47.patch
+       "${FILESDIR}"/${P}-underlinking.patch
+)
 
 S=${WORKDIR}/${MY_P}/src