sys-fs/hfsplusutils: fix build w/gcc-5 #580620
authorMike Frysinger <vapier@gentoo.org>
Sat, 23 Apr 2016 06:38:11 +0000 (02:38 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 23 Apr 2016 06:38:11 +0000 (02:38 -0400)
sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-cflags.patch [new file with mode: 0644]
sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild

diff --git a/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-cflags.patch b/sys-fs/hfsplusutils/files/hfsplusutils-1.0.4-cflags.patch
new file mode 100644 (file)
index 0000000..2006c7d
--- /dev/null
@@ -0,0 +1,23 @@
+don't clobber the user's settings that configure already put together for us
+
+--- a/libhfsp/src/Makefile.am
++++ b/libhfsp/src/Makefile.am
+@@ -27,7 +27,5 @@
+           blockiter.c btree.c btreecheck.c fscheck.c hfstime.c libhfsp.c os.c unicode.c \
+           record.c volume.c partitions.c 
+ 
+-CFLAGS = -O2 -Wall
+-
+ # I need to clean up these headers first before i can distribute them ...             
+ # include_HEADERS = apple.h hfs.h hfsp.h libhfsp.h 
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -8,8 +8,6 @@
+ 
+ INCLUDES = -I../libhfsp/src
+ 
+-CFLAGS = -O2 -Wall
+-
+ bin_PROGRAMS = hpmount hpumount hpls hpcd hpcopy hppwd hpfsck hprm hpmkdir
+ 
+ hpmount_SOURCES = hpmount.c hpcache.c hfsputil.c glob.c dstring.c dlist.c
index 380d9b2930946e4077c7634bec82e8e37eb379e0..fd1d77c395797594eae69b15a7509f878c99f323 100644 (file)
@@ -26,8 +26,11 @@ src_prepare() {
        epatch "${FILESDIR}/${P}-gcc4.patch"
        epatch "${FILESDIR}/${P}-string.patch"
        epatch "${FILESDIR}/${P}-stdlib.patch"
+       epatch "${FILESDIR}/${P}-cflags.patch"
        # let's avoid the Makefile.cvs since isn't working for us
        eautoreconf
+
+       append-flags -fgnu89-inline
 }
 
 src_install() {