summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2021-02-04 16:26:05 +0100
committerMike Gilbert <floppym@gentoo.org>2021-02-06 15:38:53 -0500
commit10cbdd8b9b6be5244678b7f9d5cbed118c41906a (patch)
treeffd165003fc20cbb7d4d626c0e05dbbe60e67558 /sys-devel/bc
parentwww-client/chromium: stable channel bump to 88.0.4324.150 (diff)
downloadgentoo-10cbdd8b9b6be5244678b7f9d5cbed118c41906a.tar.gz
gentoo-10cbdd8b9b6be5244678b7f9d5cbed118c41906a.tar.bz2
gentoo-10cbdd8b9b6be5244678b7f9d5cbed118c41906a.zip
sys-devel/bc: fix building with locked account
The build of bc fails when building it with a user whose shell is set to `/sbin/nologin`. The root cause is that the "fix-libmath_h" script does not have a shebang, so it'll instead just use the user's configured shell. Fix this issue by patching the script to have a shebang. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Mike Gilbert <floppym@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/19320
Diffstat (limited to 'sys-devel/bc')
-rw-r--r--sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch b/sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch
index ce8e456186b7..2fc7519191fb 100644
--- a/sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch
+++ b/sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch
@@ -6,8 +6,9 @@ to use sed instead of ed. the changes are straight forward:
--- a/bc/fix-libmath_h
+++ b/bc/fix-libmath_h
-@@ -1,9 +1,6 @@
+@@ -1,9 +1,7 @@
-ed libmath.h <<EOS-EOS
++#!/bin/sh
+sed -i libmath.h -e '
1,1s/^/{"/
-1,\$s/\$/",/