* [gentoo-commits] repo/gentoo:master commit in: sys-devel/bc/files/
@ 2021-02-06 20:45 Mike Gilbert
0 siblings, 0 replies; only message in thread
From: Mike Gilbert @ 2021-02-06 20:45 UTC (permalink / raw
To: gentoo-commits
commit: 10cbdd8b9b6be5244678b7f9d5cbed118c41906a
Author: Patrick Steinhardt <ps <AT> pks <DOT> im>
AuthorDate: Thu Feb 4 15:26:05 2021 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Feb 6 20:38:53 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10cbdd8b
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 <AT> pks.im>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/19320
sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 ce8e456186b..2fc7519191f 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/\$/",/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-06 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-06 20:45 [gentoo-commits] repo/gentoo:master commit in: sys-devel/bc/files/ Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox