Skip to content

Commit

Permalink
app-cdr/dvd+rw-tools: fix build w/newer glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Mar 15, 2016
1 parent e679b9d commit ecf0868
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ecf0868

Please sign in to comment.