Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/bc/files/
Date: Sat, 06 Feb 2021 20:45:48
Message-Id: 1612643933.10cbdd8b9b6be5244678b7f9d5cbed118c41906a.floppym@gentoo
1 commit: 10cbdd8b9b6be5244678b7f9d5cbed118c41906a
2 Author: Patrick Steinhardt <ps <AT> pks <DOT> im>
3 AuthorDate: Thu Feb 4 15:26:05 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 6 20:38:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10cbdd8b
7
8 sys-devel/bc: fix building with locked account
9
10 The build of bc fails when building it with a user whose shell is set to
11 `/sbin/nologin`. The root cause is that the "fix-libmath_h" script does
12 not have a shebang, so it'll instead just use the user's configured
13 shell.
14
15 Fix this issue by patching the script to have a shebang.
16
17 Signed-off-by: Patrick Steinhardt <ps <AT> pks.im>
18 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
19 Closes: https://github.com/gentoo/gentoo/pull/19320
20
21 sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch | 3 ++-
22 1 file changed, 2 insertions(+), 1 deletion(-)
23
24 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
25 index ce8e456186b..2fc7519191f 100644
26 --- a/sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch
27 +++ b/sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch
28 @@ -6,8 +6,9 @@ to use sed instead of ed. the changes are straight forward:
29
30 --- a/bc/fix-libmath_h
31 +++ b/bc/fix-libmath_h
32 -@@ -1,9 +1,6 @@
33 +@@ -1,9 +1,7 @@
34 -ed libmath.h <<EOS-EOS
35 ++#!/bin/sh
36 +sed -i libmath.h -e '
37 1,1s/^/{"/
38 -1,\$s/\$/",/