commit:     16089d5cef7ce3a9f636f22fdd9b2a0dbb373322
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Jun  4 04:22:13 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 29 16:28:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=16089d5c

scripts/bootstrap-prefix.sh: fix bash build on OpenBSD

SYS_BASHRC must be a string, not a multi-character constant.
https://lists.gnu.org/archive/html/bug-bash/2022-06/msg00015.html

Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index f14872f6d5..1ab204b0e9 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -959,8 +959,9 @@ bootstrap_gnu() {
        # contain cruft, bug #650284
        [[ ${PN} == "bash" ]] && \
                export CPPFLAGS="${CPPFLAGS} \
-                       -DSYS_BASHRC=\'\"${ROOT}/etc/bash/bashrc\"\' \
-                       -DSYS_BASH_LOGOUT=\'\"${ROOT}/etc/bash/bash_logout\"\'"
+                       -DSYS_BASHRC=\\\"${ROOT}/etc/bash/bashrc\\\" \
+                       -DSYS_BASH_LOGOUT=\\\"${ROOT}/etc/bash/bash_logout\\\" \
+               "
 
        # Don't do ACL stuff on Darwin, especially Darwin9 will make
        # coreutils completely useless (install failing on everything)

Reply via email to