app-cdr/dvd+rw-tools: fix build w/newer glibc
authorMike Frysinger <vapier@gentoo.org>
Tue, 15 Mar 2016 02:30:54 +0000 (22:30 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Mar 2016 02:31:59 +0000 (22:31 -0400)
app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild
app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch [new file with mode: 0644]

index 9cb533303f0da71a7dcbc83dfa6c7b355d258bc2..00729c425482f0e423917fa317c226d740a6fa23 100644 (file)
@@ -23,6 +23,7 @@ src_prepare() {
        # Linux compiler flags only include -O2 and are incremental
        sed -i '/FLAGS/s:-O2::' Makefile.m4
 
+       epatch "${FILESDIR}"/${PN}-7.0-sysmacros.patch
        # Fix compilation when DFORTIFY_SOURCE=2
        # https://bugs.gentoo.org/257360
        # https://bugzilla.redhat.com/show_bug.cgi?id=426068
diff --git a/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch b/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch
new file mode 100644 (file)
index 0000000..b65c4c9
--- /dev/null
@@ -0,0 +1,12 @@
+include sysmacros.h explicitly for major()/minor()/etc...
+
+--- a/growisofs.c
++++ b/growisofs.c
+@@ -408,6 +408,7 @@
+ # ifndef _GNU_SOURCE
+ #  define _GNU_SOURCE
+ # endif
++# include <sys/sysmacros.h>
+ #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || \
+       (defined(__APPLE__) && defined(__MACH__))
+ # define off64_t      off_t