summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-14 22:30:54 -0400
committerMike Frysinger <vapier@gentoo.org>2016-03-14 22:31:59 -0400
commitecf086834103c1d9ebbc989b292f91e83ce34079 (patch)
treec603870bdcd81aef16a0d57e365b3bd6b1bb9754 /app-cdr
parentsys-process/cronbase: drop old <0.3.7 versions (diff)
downloadgentoo-ecf086834103c1d9ebbc989b292f91e83ce34079.tar.gz
gentoo-ecf086834103c1d9ebbc989b292f91e83ce34079.tar.bz2
gentoo-ecf086834103c1d9ebbc989b292f91e83ce34079.zip
app-cdr/dvd+rw-tools: fix build w/newer glibc
Diffstat (limited to 'app-cdr')
-rw-r--r--app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild1
-rw-r--r--app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild b/app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild
index 9cb533303f0d..00729c425482 100644
--- a/app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild
+++ b/app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild
@@ -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
index 000000000000..b65c4c975183
--- /dev/null
+++ b/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch
@@ -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