commit:     eaf57f2fbec140573e9ea8c34f38e465a2e2f840
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 29 08:16:06 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Jan 29 08:16:19 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaf57f2f

sys-fs/bcache-tools: Add underlinking patch for GCC 4.9 and below

Package-Manager: portage-2.2.27

 sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220.ebuild     |  1 +
 .../bcache-tools-1.0.8-probe-bcache-underlinking.patch      | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220.ebuild 
b/sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220.ebuild
index 5903050..a3a949e 100644
--- a/sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220.ebuild
+++ b/sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220.ebuild
@@ -32,6 +32,7 @@ PATCHES=(
        "${FILESDIR}"/${PV}/bcache-tools-1.0.8-noprobe.patch
        "${FILESDIR}"/${PV}/bcache-tools-20131018-fedconf.patch
        "${FILESDIR}"/${PV}/bcache-tools-status-20130826-man.patch
+       "${FILESDIR}"/${PV}/bcache-tools-1.0.8-probe-bcache-underlinking.patch
 )
 
 S="${WORKDIR}"/${P%%_p*}

diff --git 
a/sys-fs/bcache-tools/files/1.0.8_p20140220/bcache-tools-1.0.8-probe-bcache-underlinking.patch
 
b/sys-fs/bcache-tools/files/1.0.8_p20140220/bcache-tools-1.0.8-probe-bcache-underlinking.patch
new file mode 100644
index 0000000..c6ca74d
--- /dev/null
+++ 
b/sys-fs/bcache-tools/files/1.0.8_p20140220/bcache-tools-1.0.8-probe-bcache-underlinking.patch
@@ -0,0 +1,13 @@
+Fix underlinking in GCC 4.9 and below
+
+--- bcache-tools-1.0.8/Makefile
++++ bcache-tools-1.0.8/Makefile
+@@ -24,7 +24,7 @@
+ make-bcache: LDLIBS += `pkg-config --libs uuid blkid`
+ make-bcache: CFLAGS += `pkg-config --cflags uuid blkid`
+ make-bcache: bcache.o
+-probe-bcache: LDLIBS += `pkg-config --libs uuid blkid`
++probe-bcache: LDLIBS += `pkg-config --libs uuid blkid` bcache.o
+ probe-bcache: CFLAGS += `pkg-config --cflags uuid blkid`
+ bcache-super-show: LDLIBS += `pkg-config --libs uuid`
+ bcache-super-show: CFLAGS += -std=gnu99

Reply via email to