app-misc/mc: fix build failure against glibc-2.23, bug #579858
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 13 Apr 2016 22:46:46 +0000 (23:46 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 13 Apr 2016 22:47:18 +0000 (23:47 +0100)
Reported-by: Thomas D.
Bug: https://bugs.gentoo.org/579858

Package-Manager: portage-2.2.28

app-misc/mc/files/mc-4.8.16-makedev.patch [new file with mode: 0644]
app-misc/mc/mc-4.8.16.ebuild

diff --git a/app-misc/mc/files/mc-4.8.16-makedev.patch b/app-misc/mc/files/mc-4.8.16-makedev.patch
new file mode 100644 (file)
index 0000000..8e7fd0e
--- /dev/null
@@ -0,0 +1,28 @@
+From 4ba3a1a92a59658bc9f5f9d0745db8bb829778cb Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyfox@gentoo.org>
+Date: Wed, 13 Apr 2016 23:38:47 +0100
+Subject: [PATCH] filemanager/mountlist.c: add makedev() declaration
+
+On glibc-2.23 link fails as
+
+    $ mc-9999/src/filemanager/mountlist.c:750: undefined reference to `makedev'
+
+Reported-by: Thomas D.
+Bug: https://bugs.gentoo.org/579858
+Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
+
+diff --git a/src/filemanager/mountlist.c b/src/filemanager/mountlist.c
+index 166b246..7d6e178 100644
+--- a/src/filemanager/mountlist.c
++++ b/src/filemanager/mountlist.c
+@@ -186,6 +186,7 @@
+ #include "lib/global.h"
+ #include "lib/strutil.h"        /* str_verscmp() */
++#include "lib/unixcompat.h"     /* makedev */
+ #include "mountlist.h"
+ /*** global variables ****************************************************************************/
+-- 
+2.8.1
+
index 4d076d249835fda8f9fd6d3afc5dbfddb0d7fc2e..32d1189fb272a763cbbac7715e5811e97215769e 100644 (file)
@@ -42,8 +42,9 @@ DEPEND="${RDEPEND}
 [[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs)
 
 PATCHES=(
-       "${FILESDIR}/${PN}-4.8.13-tinfo.patch"
-       "${FILESDIR}/${PN}-4.8.15-ebuild_syntax_EAPI-6.patch"
+       "${FILESDIR}"/${PN}-4.8.13-tinfo.patch
+       "${FILESDIR}"/${PN}-4.8.15-ebuild_syntax_EAPI-6.patch
+       "${FILESDIR}"/${PN}-4.8.16-makedev.patch
 )
 
 S=${WORKDIR}/${MY_P}