sys-kernel/genkernel: rev bump
authorThomas Deutschmann <whissi@gentoo.org>
Sat, 11 Apr 2020 23:18:14 +0000 (01:18 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sat, 11 Apr 2020 23:25:32 +0000 (01:25 +0200)
Cherry-pick commit 2948a542da6964a4f61a71fd5253c97f803eac34.

Package-Manager: Portage-2.3.98, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
sys-kernel/genkernel/files/genkernel-4.0.7-fix-unquoted-SANDBOX_ON-check.patch [new file with mode: 0644]
sys-kernel/genkernel/genkernel-4.0.7-r1.ebuild [moved from sys-kernel/genkernel/genkernel-4.0.7.ebuild with 99% similarity]

diff --git a/sys-kernel/genkernel/files/genkernel-4.0.7-fix-unquoted-SANDBOX_ON-check.patch b/sys-kernel/genkernel/files/genkernel-4.0.7-fix-unquoted-SANDBOX_ON-check.patch
new file mode 100644 (file)
index 0000000..be7bcf1
--- /dev/null
@@ -0,0 +1,26 @@
+commit 2948a542da6964a4f61a71fd5253c97f803eac34
+Author:     Thomas Deutschmann <whissi@gentoo.org>
+AuthorDate: Sun Apr 12 01:12:38 2020 +0200
+Commit:     Thomas Deutschmann <whissi@gentoo.org>
+CommitDate: Sun Apr 12 01:12:38 2020 +0200
+
+    gen_determineargs.sh: determine_real_args(): Quote $SANDBOX_ON
+    
+    $SANDBOX_ON can be unset causing 'unary operator expected' error.
+    
+    Fixes c0e013c ("gen_determineargs.sh: determine_real_args(): Error out early when already running within a sandbox")
+    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
+
+diff --git a/gen_determineargs.sh b/gen_determineargs.sh
+index 95ec4021..b1c038d3 100755
+--- a/gen_determineargs.sh
++++ b/gen_determineargs.sh
+@@ -1012,7 +1012,7 @@ determine_real_args() {
+               SANDBOX_COMMAND=
+               if isTrue "${SANDBOX}"
+               then
+-                      if [ ${SANDBOX_ON} -eq 1 ]
++                      if [[ "${SANDBOX_ON}" == "1" ]]
+                       then
+                               gen_die "SANDBOX_ON=1 detected -- You cannot use --sandbox when already running within a sandbox!"
+                       fi
similarity index 99%
rename from sys-kernel/genkernel/genkernel-4.0.7.ebuild
rename to sys-kernel/genkernel/genkernel-4.0.7-r1.ebuild
index 1014ca6dd1159db729a4f43a51a0049eea084503..8847cf2242fce9acb094d2e1653a16603c9fd6b6 100644 (file)
@@ -111,6 +111,8 @@ if [[ ${PV} == 9999* ]]; then
        DEPEND="${DEPEND} app-text/asciidoc"
 fi
 
+PATCHES=( "${FILESDIR}"/${P}-fix-unquoted-SANDBOX_ON-check.patch )
+
 src_unpack() {
        if [[ ${PV} == 9999* ]]; then
                git-r3_src_unpack