sys-fs/xfsprogs: Add fix for underlinking detected by ld.gold
authorJustin Lecher <jlec@gentoo.org>
Thu, 12 Jan 2017 20:32:59 +0000 (20:32 +0000)
committerJustin Lecher <jlec@gentoo.org>
Thu, 12 Jan 2017 20:33:12 +0000 (20:33 +0000)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
sys-fs/xfsprogs/files/xfsprogs-4.9.0-underlinking.patch [new file with mode: 0644]
sys-fs/xfsprogs/metadata.xml
sys-fs/xfsprogs/xfsprogs-4.9.0.ebuild

diff --git a/sys-fs/xfsprogs/files/xfsprogs-4.9.0-underlinking.patch b/sys-fs/xfsprogs/files/xfsprogs-4.9.0-underlinking.patch
new file mode 100644 (file)
index 0000000..e6904a5
--- /dev/null
@@ -0,0 +1,30 @@
+ libxfs/Makefile  | 2 +-
+ libxlog/Makefile | 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/libxfs/Makefile b/libxfs/Makefile
+index 6499731..00447c4 100644
+--- a/libxfs/Makefile
++++ b/libxfs/Makefile
+@@ -113,7 +113,7 @@ LSRCFILES += gen_crc32table.c
+ FCFLAGS = -I.
+-LTLIBS = $(LIBPTHREAD) $(LIBRT)
++LTLIBS = $(LIBPTHREAD) $(LIBRT) $(LIBUUID)
+ # don't try linking xfs_repair with a debug libxfs.
+ DEBUG = -DNDEBUG
+diff --git a/libxlog/Makefile b/libxlog/Makefile
+index 3417eed..fda1343 100644
+--- a/libxlog/Makefile
++++ b/libxlog/Makefile
+@@ -12,6 +12,8 @@ LT_AGE = 0
+ CFILES = xfs_log_recover.c util.c
++LTLIBS = $(LIBUUID)
++
+ # don't want to link xfs_repair with a debug libxlog.
+ DEBUG = -DNDEBUG
index 56c12441305763f03fbabf550cd183a254076708..4eb20a048df27a0e05126241a46f398bdfe0405a 100644 (file)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer type="project">
-       <email>base-system@gentoo.org</email>
-       <name>Gentoo Base System</name>
-</maintainer>
+       <maintainer type="project">
+               <email>base-system@gentoo.org</email>
+               <name>Gentoo Base System</name>
+       </maintainer>
 </pkgmetadata>
index 7227b27e4cde892674cc94221ad533935d198d32..907d464cad8e09d82d083b7e493d2f40e7fad018 100644 (file)
@@ -32,6 +32,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-4.7.0-sharedlibs.patch
        "${FILESDIR}"/${PN}-4.7.0-libxcmd-link.patch
        "${FILESDIR}"/${PN}-4.9.0-cross-compile.patch
+       "${FILESDIR}"/${P}-underlinking.patch
 )
 
 pkg_setup() {