net-wireless/yatebts: fix CFLAGS mangling
authorZero_Chaos <zerochaos@gentoo.org>
Fri, 16 Feb 2018 20:31:42 +0000 (15:31 -0500)
committerZero_Chaos <zerochaos@gentoo.org>
Fri, 16 Feb 2018 20:31:59 +0000 (15:31 -0500)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

net-wireless/yatebts/files/yatebts-6.0.0-dont-mess-with-cflags.patch [new file with mode: 0644]
net-wireless/yatebts/yatebts-6.0.0.ebuild
net-wireless/yatebts/yatebts-9999.ebuild

diff --git a/net-wireless/yatebts/files/yatebts-6.0.0-dont-mess-with-cflags.patch b/net-wireless/yatebts/files/yatebts-6.0.0-dont-mess-with-cflags.patch
new file mode 100644 (file)
index 0000000..c6827eb
--- /dev/null
@@ -0,0 +1,12 @@
+--- configure.ac       2017-09-07 10:21:08.000000000 -0400
++++ configure-sane.ac  2018-02-16 15:26:43.884257256 -0500
+@@ -38,9 +38,6 @@
+ AC_PROG_CC
+ AC_PROG_AWK
+ 
+-# Delete -g as we handle debug info at build time
+-CFLAGS=`echo "$CFLAGS" | sed 's/\(^\| \+\)-g[[0-9]]*//' 2>/dev/null`
+-
+ # Helper to check by pkgconfig including local paths
+ function pkgconfig_check()
+ {
index 3a932f78012cb2c149b273cced6f83eb86753b20..8dd83f84e584cd814294c58f5138e52550e727d7 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
 inherit eutils autotools
 
@@ -34,15 +34,17 @@ src_prepare() {
        #we need more patches or configure flags because things install in really wrong places per FHS
        epatch "${FILESDIR}"/${PN}-sgsnggsn-inetutils-hostname-fix.diff
        epatch "${FILESDIR}"/${PN}-5.0.0-gcc6.patch
+       epatch "${FILESDIR}"/${P}-dont-mess-with-cflags.patch
+       default
        eautoreconf
 }
 
+#              $(use_enable rad1) \
+#              $(use_enable usrp1) \
+#              $(use_enable uhd) \
+#              $(use_enable bladerf) \
 src_configure() {
        econf \
-               $(use_enable rad1) \
-               $(use_enable usrp1) \
-               $(use_enable uhd) \
-               $(use_enable bladerf) \
                $(use_enable cpu_flags_x86_sse3 sse3) \
                $(use_enable cpu_flags_x86_sse4_1 sse41)
 
index 3a932f78012cb2c149b273cced6f83eb86753b20..8dd83f84e584cd814294c58f5138e52550e727d7 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
 inherit eutils autotools
 
@@ -34,15 +34,17 @@ src_prepare() {
        #we need more patches or configure flags because things install in really wrong places per FHS
        epatch "${FILESDIR}"/${PN}-sgsnggsn-inetutils-hostname-fix.diff
        epatch "${FILESDIR}"/${PN}-5.0.0-gcc6.patch
+       epatch "${FILESDIR}"/${P}-dont-mess-with-cflags.patch
+       default
        eautoreconf
 }
 
+#              $(use_enable rad1) \
+#              $(use_enable usrp1) \
+#              $(use_enable uhd) \
+#              $(use_enable bladerf) \
 src_configure() {
        econf \
-               $(use_enable rad1) \
-               $(use_enable usrp1) \
-               $(use_enable uhd) \
-               $(use_enable bladerf) \
                $(use_enable cpu_flags_x86_sse3 sse3) \
                $(use_enable cpu_flags_x86_sse4_1 sse41)