sys-apps/gawk: remove forced-sandbox USE flag
authorMike Gilbert <floppym@gentoo.org>
Thu, 16 Jan 2020 20:44:33 +0000 (15:44 -0500)
committerMike Gilbert <floppym@gentoo.org>
Fri, 17 Jan 2020 16:02:34 +0000 (11:02 -0500)
Not supported by upstream.

Package-Manager: Portage-2.3.84_p2, Repoman-2.3.20_p24
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
sys-apps/gawk/gawk-4.2.1-r1.ebuild
sys-apps/gawk/gawk-5.0.0.ebuild
sys-apps/gawk/gawk-5.0.1.ebuild
sys-apps/gawk/metadata.xml

index 146e9b23cf4507bc759547cd0962687d32279ba5..a458de478a44d6efb8e7a584057e88920977d133 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/gawk/${P}.tar.xz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="forced-sandbox mpfr nls readline"
+IUSE="mpfr nls readline"
 
 RDEPEND="
        dev-libs/gmp:0=
@@ -38,16 +38,6 @@ src_prepare() {
                        -e '/\<_XOPEN_SOURCE_EXTENDED\>/s/1//' \
                        extension/inplace.c || die
        fi
-
-       if use forced-sandbox ; then
-               # Upstream doesn't want to add a configure flag for this.
-               # https://lists.gnu.org/archive/html/bug-sed/2018-03/msg00001.html
-               sed -i \
-                       -e '/^int do_flags = false;/s:false:DO_SANDBOX:' \
-                       main.c || die
-               # Make sure the sed took.
-               grep -q '^int do_flags = DO_SANDBOX;' main.c || die "forcing sandbox failed"
-       fi
 }
 
 src_configure() {
index 36ac1b77e8d9fa988644fb4f4aaf217d55bbb31a..403c0d5ab7e94bdad4716c503c71d796badb89b4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/gawk/${P}.tar.xz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="forced-sandbox mpfr nls readline"
+IUSE="mpfr nls readline"
 
 RDEPEND="
        dev-libs/gmp:0=
@@ -38,16 +38,6 @@ src_prepare() {
                        -e '/\<_XOPEN_SOURCE_EXTENDED\>/s/1//' \
                        extension/inplace.c || die
        fi
-
-       if use forced-sandbox ; then
-               # Upstream doesn't want to add a configure flag for this.
-               # https://lists.gnu.org/archive/html/bug-sed/2018-03/msg00001.html
-               sed -i \
-                       -e '/^int do_flags = false;/s:false:DO_SANDBOX:' \
-                       main.c || die
-               # Make sure the sed took.
-               grep -q '^int do_flags = DO_SANDBOX;' main.c || die "forcing sandbox failed"
-       fi
 }
 
 src_configure() {
index d5b5bb4e27cee5a3ce312754e84a8f1302e0be40..d07f70d6d8ec6a1a214707e969c5d97b1db82419 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/gawk/${P}.tar.xz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="forced-sandbox mpfr nls readline"
+IUSE="mpfr nls readline"
 
 RDEPEND="
        dev-libs/gmp:0=
@@ -40,16 +40,6 @@ src_prepare() {
                        -e '/\<_XOPEN_SOURCE_EXTENDED\>/s/1//' \
                        extension/inplace.c || die
        fi
-
-       if use forced-sandbox ; then
-               # Upstream doesn't want to add a configure flag for this.
-               # https://lists.gnu.org/archive/html/bug-sed/2018-03/msg00001.html
-               sed -i \
-                       -e '/^int do_flags = false;/s:false:DO_SANDBOX:' \
-                       main.c || die
-               # Make sure the sed took.
-               grep -q '^int do_flags = DO_SANDBOX;' main.c || die "forcing sandbox failed"
-       fi
 }
 
 src_configure() {
index 58cec04bdcb0d5e48c6c645be1d634f34e1f592f..3fa1f988999130ca86d52ecf11390d970c7952a5 100644 (file)
@@ -6,7 +6,6 @@
        <name>Gentoo Base System</name>
 </maintainer>
 <use>
-       <flag name="forced-sandbox">Always enable --sandbox mode for simpler/secure runtime (disables e/r/w commands)</flag>
        <flag name="mpfr">use mpfr for high precision arithmetic (-M / --bignum)</flag>
 </use>
 </pkgmetadata>