sys-fs/duperemove: fix sysmacros.h error w/ new sys-libs/glibc
authorFrancesco Turco <fturco@fastmail.fm>
Thu, 17 Aug 2017 16:50:46 +0000 (18:50 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 2 Sep 2017 09:17:03 +0000 (11:17 +0200)
Taken from https://github.com/markfasheh/duperemove/pull/169

Bug: https://bugs.gentoo.org/607376
Closes: https://github.com/gentoo/gentoo/pull/5464

sys-fs/duperemove/duperemove-0.11_beta4.ebuild
sys-fs/duperemove/files/duperemove-0.11_beta4-sysmacros.patch [new file with mode: 0644]

index d3ed853c233c44f0d40ddc4f5255ff1a8fad237a..6b7691b19fa5ea4424214328c725579a03933d7d 100644 (file)
@@ -23,6 +23,8 @@ DEPEND="${RDEPEND}"
 
 S=${WORKDIR}/${P/_/.}
 
+PATCHES=( "${FILESDIR}/${P}-sysmacros.patch" )
+
 src_compile() {
        emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall"
 }
diff --git a/sys-fs/duperemove/files/duperemove-0.11_beta4-sysmacros.patch b/sys-fs/duperemove/files/duperemove-0.11_beta4-sysmacros.patch
new file mode 100644 (file)
index 0000000..6355f5e
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/dbfile.c  2016-09-27 22:28:49.000000000 +0200
++++ b/dbfile.c  2017-08-17 18:23:30.768591897 +0200
+@@ -8,6 +8,7 @@
+ #include <inttypes.h>
+ #include <stddef.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ 
+ #include "csum.h"
+ #include "filerec.h"