From 10cbdd8b9b6be5244678b7f9d5cbed118c41906a Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Thu, 4 Feb 2021 16:26:05 +0100 Subject: 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 Signed-off-by: Mike Gilbert 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(-) (limited to 'sys-devel') 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 <