sys-fs/bcache-tools: Add underlinking patch for GCC 4.9 and below
authorDavid Seifert <soap@gentoo.org>
Fri, 29 Jan 2016 08:16:06 +0000 (09:16 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 29 Jan 2016 08:16:19 +0000 (09:16 +0100)
Package-Manager: portage-2.2.27

sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220.ebuild
sys-fs/bcache-tools/files/1.0.8_p20140220/bcache-tools-1.0.8-probe-bcache-underlinking.patch [new file with mode: 0644]

index 59030506aa7e9d6e38100a7c76f5e18357b942a4..a3a949e12abf8a9be03ee86b23d7ef96e5377910 100644 (file)
@@ -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 (file)
index 0000000..c6ca74d
--- /dev/null
@@ -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