public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [BZ 24106] Remove all usage of @BASH@ or ${BASH} in installed files, and hardcode /bin/bash instead
@ 2019-07-16 19:16 Romain Geissler
  2019-07-18 17:37 ` Adhemerval Zanella
  0 siblings, 1 reply; 5+ messages in thread
From: Romain Geissler @ 2019-07-16 19:16 UTC (permalink / raw)
  To: libc-alpha

Hi,

This trivial patch attemps to fix BZ 24106, basically the bash locally used when
building glibc on the host shall not leak on the installed glibc, as the system
where it is installed might be different and use another bash location.

So I have looked for all occurences of @BASH@ or $(BASH) in installed files, and
replaced it by /bin/bash. This was suggested by Florian Weimer in the bug report.

Note: I have no copyright assignment and I know it. I hope this patch is trivial
and small enough to be accepted even without such legal paper signed.

Cheers,
Romain

2019-07-16  Romain Geissler  <romain.geissler@amadeus.com>

	* debug/Makefile: ($(objpfx)xtrace): Don't replace @BASH@.
	* elf/Makefile: ($(objpfx)sotruss): Likewise.
	(ldd-rewrite): Likewise.
	* malloc/Makefile: ($(objpfx)memusage): Likewise.
	* timezone/Makefile: ($(objpfx)tzselect): Don't replace /bin/bash.
	* debug/xtrace.sh: Hardcode /bin/bash instead of @BASH@.
	* elf/ldd.bash.in: Likewise.
	* elf/sotruss.sh: Likewise.
	* malloc/memusage.sh: Likewise.


From 6adceb3cc65aaa100b2368fd17b4d1d609b37de6 Mon Sep 17 00:00:00 2001
From: Romain Geissler <romain.geissler@amadeus.com>
Date: Tue, 16 Jul 2019 17:14:54 +0000
Subject: [PATCH] Remove all usage of @BASH@ or ${BASH} in installed files, and
 hardcode /bin/bash instead.

---
 debug/Makefile     | 5 ++---
 debug/xtrace.sh    | 2 +-
 elf/Makefile       | 4 +---
 elf/ldd.bash.in    | 2 +-
 elf/sotruss.sh     | 2 +-
 malloc/Makefile    | 5 ++---
 malloc/memusage.sh | 2 +-
 timezone/Makefile  | 3 +--
 8 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/debug/Makefile b/debug/Makefile
index 6351b7e9f48..c5714c29db1 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -205,8 +205,7 @@ $(objpfx)pcprofiledump: $(objpfx)pcprofiledump.o

 $(objpfx)xtrace: xtrace.sh
 	rm -f $@.new
-	sed -e 's|@BASH@|$(BASH)|' -e 's|@VERSION@|$(version)|' \
-	    -e 's|@SLIBDIR@|$(sLIBdir)|' -e 's|@BINDIR@|$(bindir)|' \
-	    -e 's|@PKGVERSION@|$(PKGVERSION)|' \
+	sed -e 's|@VERSION@|$(version)|' -e 's|@SLIBDIR@|$(sLIBdir)|' \
+	    -e 's|@BINDIR@|$(bindir)|' -e 's|@PKGVERSION@|$(PKGVERSION)|' \
 	    -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|' $^ > $@.new \
 	&& rm -f $@ && mv $@.new $@ && chmod +x $@
diff --git a/debug/xtrace.sh b/debug/xtrace.sh
index dad16113754..34fe00a0b2d 100755
--- a/debug/xtrace.sh
+++ b/debug/xtrace.sh
@@ -1,4 +1,4 @@
-#! @BASH@
+#!/bin/bash
 # Copyright (C) 1999-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Ulrich Drepper <drepper@gnu.org>, 1999.
diff --git a/elf/Makefile b/elf/Makefile
index a3eefd1b1f4..e80aac2519b 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -132,8 +132,7 @@ $(objpfx)sotruss-lib.so: $(common-objpfx)libc.so $(objpfx)ld.so \
 	$(common-objpfx)libc_nonshared.a

 $(objpfx)sotruss: sotruss.sh $(common-objpfx)config.make
-	sed -e 's%@BASH@%$(BASH)%g' \
-	    -e 's%@VERSION@%$(version)%g' \
+	sed -e 's%@VERSION@%$(version)%g' \
 	    -e 's%@TEXTDOMAINDIR@%$(localedir)%g' \
 	    -e 's%@PREFIX@%$(prefix)%g' \
 	    -e 's|@PKGVERSION@|$(PKGVERSION)|g' \
@@ -563,7 +562,6 @@ ldd-rewrite = -e 's%@RTLD@%$(rtlddir)/$(rtld-installed-name)%g' \
 	      -e 's%@VERSION@%$(version)%g' \
 	      -e 's|@PKGVERSION@|$(PKGVERSION)|g' \
 	      -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|g' \
-	      -e 's%@BASH@%$(BASH)%g' \
 	      -e 's%@TEXTDOMAINDIR@%$(localedir)%g'

 ifeq ($(ldd-rewrite-script),no)
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index 32ec62eda61..2cbf1a3795d 100644
--- a/elf/ldd.bash.in
+++ b/elf/ldd.bash.in
@@ -1,4 +1,4 @@
-#! @BASH@
+#!/bin/bash
 # Copyright (C) 1996-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.

diff --git a/elf/sotruss.sh b/elf/sotruss.sh
index 6e06eae00cf..d6bdafe9e65 100755
--- a/elf/sotruss.sh
+++ b/elf/sotruss.sh
@@ -1,4 +1,4 @@
-#! @BASH@
+#!/bin/bash
 # Copyright (C) 2011-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.

diff --git a/malloc/Makefile b/malloc/Makefile
index d2fba29953c..b55256f03ae 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -216,9 +216,8 @@ $(objpfx)mtrace: mtrace.pl

 $(objpfx)memusage: memusage.sh
 	rm -f $@.new
-	sed -e 's|@BASH@|$(BASH)|' -e 's|@VERSION@|$(version)|' \
-	    -e 's|@SLIBDIR@|$(sLIBdir)|' -e 's|@BINDIR@|$(bindir)|' \
-	    -e 's|@PKGVERSION@|$(PKGVERSION)|' \
+	sed -e 's|@VERSION@|$(version)|' -e 's|@SLIBDIR@|$(sLIBdir)|' \
+	    -e 's|@BINDIR@|$(bindir)|' -e 's|@PKGVERSION@|$(PKGVERSION)|' \
 	    -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|' $^ > $@.new \
 	&& rm -f $@ && mv $@.new $@ && chmod +x $@

diff --git a/malloc/memusage.sh b/malloc/memusage.sh
index ee080a2ece5..e9396f09e73 100755
--- a/malloc/memusage.sh
+++ b/malloc/memusage.sh
@@ -1,4 +1,4 @@
-#! @BASH@
+#!/bin/bash
 # Copyright (C) 1999-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Ulrich Drepper <drepper@gnu.org>, 1999.
diff --git a/timezone/Makefile b/timezone/Makefile
index 493deca7904..0c077e5c3d7 100644
--- a/timezone/Makefile
+++ b/timezone/Makefile
@@ -122,8 +122,7 @@ $(testdata)/XT%: testdata/XT%
 	cp $< $@

 $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make
-	sed -e 's|/bin/bash|$(BASH)|' \
-	    -e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \
+	sed -e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \
 	    -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \
 	    -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \
 	    -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \
-- 
2.17.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BZ 24106] Remove all usage of @BASH@ or ${BASH} in installed files, and hardcode /bin/bash instead
  2019-07-16 19:16 [BZ 24106] Remove all usage of @BASH@ or ${BASH} in installed files, and hardcode /bin/bash instead Romain Geissler
@ 2019-07-18 17:37 ` Adhemerval Zanella
  2019-07-18 19:57   ` Carlos O'Donell
  0 siblings, 1 reply; 5+ messages in thread
From: Adhemerval Zanella @ 2019-07-18 17:37 UTC (permalink / raw)
  To: libc-alpha



On 16/07/2019 16:13, Romain Geissler wrote:
> Hi,
> 
> This trivial patch attemps to fix BZ 24106, basically the bash locally used when
> building glibc on the host shall not leak on the installed glibc, as the system
> where it is installed might be different and use another bash location.
> 
> So I have looked for all occurences of @BASH@ or $(BASH) in installed files, and
> replaced it by /bin/bash. This was suggested by Florian Weimer in the bug report.
> 
> Note: I have no copyright assignment and I know it. I hope this patch is trivial
> and small enough to be accepted even without such legal paper signed.

Path looks ok, I am not sure about if it can be categorized as 'trivial' though. 

> 
> Cheers,
> Romain
> 
> 2019-07-16  Romain Geissler  <romain.geissler@amadeus.com>
> 
> 	* debug/Makefile: ($(objpfx)xtrace): Don't replace @BASH@.
> 	* elf/Makefile: ($(objpfx)sotruss): Likewise.
> 	(ldd-rewrite): Likewise.
> 	* malloc/Makefile: ($(objpfx)memusage): Likewise.
> 	* timezone/Makefile: ($(objpfx)tzselect): Don't replace /bin/bash.
> 	* debug/xtrace.sh: Hardcode /bin/bash instead of @BASH@.
> 	* elf/ldd.bash.in: Likewise.
> 	* elf/sotruss.sh: Likewise.
> 	* malloc/memusage.sh: Likewise.
> 
> 
> From 6adceb3cc65aaa100b2368fd17b4d1d609b37de6 Mon Sep 17 00:00:00 2001
> From: Romain Geissler <romain.geissler@amadeus.com>
> Date: Tue, 16 Jul 2019 17:14:54 +0000
> Subject: [PATCH] Remove all usage of @BASH@ or ${BASH} in installed files, and
>  hardcode /bin/bash instead.
> 
> ---
>  debug/Makefile     | 5 ++---
>  debug/xtrace.sh    | 2 +-
>  elf/Makefile       | 4 +---
>  elf/ldd.bash.in    | 2 +-
>  elf/sotruss.sh     | 2 +-
>  malloc/Makefile    | 5 ++---
>  malloc/memusage.sh | 2 +-
>  timezone/Makefile  | 3 +--
>  8 files changed, 10 insertions(+), 15 deletions(-)
> 
> diff --git a/debug/Makefile b/debug/Makefile
> index 6351b7e9f48..c5714c29db1 100644
> --- a/debug/Makefile
> +++ b/debug/Makefile
> @@ -205,8 +205,7 @@ $(objpfx)pcprofiledump: $(objpfx)pcprofiledump.o
> 
>  $(objpfx)xtrace: xtrace.sh
>  	rm -f $@.new
> -	sed -e 's|@BASH@|$(BASH)|' -e 's|@VERSION@|$(version)|' \
> -	    -e 's|@SLIBDIR@|$(sLIBdir)|' -e 's|@BINDIR@|$(bindir)|' \
> -	    -e 's|@PKGVERSION@|$(PKGVERSION)|' \
> +	sed -e 's|@VERSION@|$(version)|' -e 's|@SLIBDIR@|$(sLIBdir)|' \
> +	    -e 's|@BINDIR@|$(bindir)|' -e 's|@PKGVERSION@|$(PKGVERSION)|' \
>  	    -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|' $^ > $@.new \
>  	&& rm -f $@ && mv $@.new $@ && chmod +x $@
> diff --git a/debug/xtrace.sh b/debug/xtrace.sh
> index dad16113754..34fe00a0b2d 100755
> --- a/debug/xtrace.sh
> +++ b/debug/xtrace.sh
> @@ -1,4 +1,4 @@
> -#! @BASH@
> +#!/bin/bash
>  # Copyright (C) 1999-2019 Free Software Foundation, Inc.
>  # This file is part of the GNU C Library.
>  # Contributed by Ulrich Drepper <drepper@gnu.org>, 1999.
> diff --git a/elf/Makefile b/elf/Makefile
> index a3eefd1b1f4..e80aac2519b 100644
> --- a/elf/Makefile
> +++ b/elf/Makefile
> @@ -132,8 +132,7 @@ $(objpfx)sotruss-lib.so: $(common-objpfx)libc.so $(objpfx)ld.so \
>  	$(common-objpfx)libc_nonshared.a
> 
>  $(objpfx)sotruss: sotruss.sh $(common-objpfx)config.make
> -	sed -e 's%@BASH@%$(BASH)%g' \
> -	    -e 's%@VERSION@%$(version)%g' \
> +	sed -e 's%@VERSION@%$(version)%g' \
>  	    -e 's%@TEXTDOMAINDIR@%$(localedir)%g' \
>  	    -e 's%@PREFIX@%$(prefix)%g' \
>  	    -e 's|@PKGVERSION@|$(PKGVERSION)|g' \
> @@ -563,7 +562,6 @@ ldd-rewrite = -e 's%@RTLD@%$(rtlddir)/$(rtld-installed-name)%g' \
>  	      -e 's%@VERSION@%$(version)%g' \
>  	      -e 's|@PKGVERSION@|$(PKGVERSION)|g' \
>  	      -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|g' \
> -	      -e 's%@BASH@%$(BASH)%g' \
>  	      -e 's%@TEXTDOMAINDIR@%$(localedir)%g'
> 
>  ifeq ($(ldd-rewrite-script),no)
> diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
> index 32ec62eda61..2cbf1a3795d 100644
> --- a/elf/ldd.bash.in
> +++ b/elf/ldd.bash.in
> @@ -1,4 +1,4 @@
> -#! @BASH@
> +#!/bin/bash
>  # Copyright (C) 1996-2019 Free Software Foundation, Inc.
>  # This file is part of the GNU C Library.
> 
> diff --git a/elf/sotruss.sh b/elf/sotruss.sh
> index 6e06eae00cf..d6bdafe9e65 100755
> --- a/elf/sotruss.sh
> +++ b/elf/sotruss.sh
> @@ -1,4 +1,4 @@
> -#! @BASH@
> +#!/bin/bash
>  # Copyright (C) 2011-2019 Free Software Foundation, Inc.
>  # This file is part of the GNU C Library.
> 
> diff --git a/malloc/Makefile b/malloc/Makefile
> index d2fba29953c..b55256f03ae 100644
> --- a/malloc/Makefile
> +++ b/malloc/Makefile
> @@ -216,9 +216,8 @@ $(objpfx)mtrace: mtrace.pl
> 
>  $(objpfx)memusage: memusage.sh
>  	rm -f $@.new
> -	sed -e 's|@BASH@|$(BASH)|' -e 's|@VERSION@|$(version)|' \
> -	    -e 's|@SLIBDIR@|$(sLIBdir)|' -e 's|@BINDIR@|$(bindir)|' \
> -	    -e 's|@PKGVERSION@|$(PKGVERSION)|' \
> +	sed -e 's|@VERSION@|$(version)|' -e 's|@SLIBDIR@|$(sLIBdir)|' \
> +	    -e 's|@BINDIR@|$(bindir)|' -e 's|@PKGVERSION@|$(PKGVERSION)|' \
>  	    -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|' $^ > $@.new \
>  	&& rm -f $@ && mv $@.new $@ && chmod +x $@
> 
> diff --git a/malloc/memusage.sh b/malloc/memusage.sh
> index ee080a2ece5..e9396f09e73 100755
> --- a/malloc/memusage.sh
> +++ b/malloc/memusage.sh
> @@ -1,4 +1,4 @@
> -#! @BASH@
> +#!/bin/bash
>  # Copyright (C) 1999-2019 Free Software Foundation, Inc.
>  # This file is part of the GNU C Library.
>  # Contributed by Ulrich Drepper <drepper@gnu.org>, 1999.
> diff --git a/timezone/Makefile b/timezone/Makefile
> index 493deca7904..0c077e5c3d7 100644
> --- a/timezone/Makefile
> +++ b/timezone/Makefile
> @@ -122,8 +122,7 @@ $(testdata)/XT%: testdata/XT%
>  	cp $< $@
> 
>  $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make
> -	sed -e 's|/bin/bash|$(BASH)|' \
> -	    -e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \
> +	sed -e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \
>  	    -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \
>  	    -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \
>  	    -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BZ 24106] Remove all usage of @BASH@ or ${BASH} in installed files, and hardcode /bin/bash instead
  2019-07-18 17:37 ` Adhemerval Zanella
@ 2019-07-18 19:57   ` Carlos O'Donell
  0 siblings, 0 replies; 5+ messages in thread
From: Carlos O'Donell @ 2019-07-18 19:57 UTC (permalink / raw)
  To: Adhemerval Zanella, libc-alpha

On 7/18/19 1:37 PM, Adhemerval Zanella wrote:
> 
> 
> On 16/07/2019 16:13, Romain Geissler wrote:
>> Hi,
>>
>> This trivial patch attemps to fix BZ 24106, basically the bash locally used when
>> building glibc on the host shall not leak on the installed glibc, as the system
>> where it is installed might be different and use another bash location.
>>
>> So I have looked for all occurences of @BASH@ or $(BASH) in installed files, and
>> replaced it by /bin/bash. This was suggested by Florian Weimer in the bug report.
>>
>> Note: I have no copyright assignment and I know it. I hope this patch is trivial
>> and small enough to be accepted even without such legal paper signed.
> 
> Path looks ok, I am not sure about if it can be categorized as 'trivial' though.
I agree. This class of change is best done when the branch opens in August 1st.

-- 
Cheers,
Carlos.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BZ 24106] Remove all usage of @BASH@ or ${BASH} in installed files, and hardcode /bin/bash instead
  2021-05-02 12:17 Romain GEISSLER
@ 2021-05-12  2:14 ` Siddhesh Poyarekar
  0 siblings, 0 replies; 5+ messages in thread
From: Siddhesh Poyarekar @ 2021-05-12  2:14 UTC (permalink / raw)
  To: Romain GEISSLER, libc-alpha

On 5/2/21 5:47 PM, Romain GEISSLER via Libc-alpha wrote:
> Hi,
> 
> (FYI, this is a repost of https://sourceware.org/pipermail/libc-alpha/2019-July/105035.html
> now that FSF papers have been signed and confirmed on FSF side).
> 
> This trivial patch attemps to fix BZ 24106. Basically the bash locally used when
> building glibc on the host shall not leak on the installed glibc, as the system
> where it is installed might be different and use another bash location.
> 
> So I have looked for all occurences of @BASH@ or $(BASH) in installed files, and
> replaced it by /bin/bash. This was suggested by Florian Weimer in the bug report.

This is fine.  I verified that Debian also uses /bin/bash for these and 
not dash as I had suspected earlier.  I'll push it for you.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [BZ 24106] Remove all usage of @BASH@ or ${BASH} in installed files,  and hardcode /bin/bash instead
@ 2021-05-02 12:17 Romain GEISSLER
  2021-05-12  2:14 ` Siddhesh Poyarekar
  0 siblings, 1 reply; 5+ messages in thread
From: Romain GEISSLER @ 2021-05-02 12:17 UTC (permalink / raw)
  To: libc-alpha

Hi,

(FYI, this is a repost of https://sourceware.org/pipermail/libc-alpha/2019-July/105035.html
now that FSF papers have been signed and confirmed on FSF side).

This trivial patch attemps to fix BZ 24106. Basically the bash locally used when
building glibc on the host shall not leak on the installed glibc, as the system
where it is installed might be different and use another bash location.

So I have looked for all occurences of @BASH@ or $(BASH) in installed files, and
replaced it by /bin/bash. This was suggested by Florian Weimer in the bug report.

Cheers,
Romain


commit 6ae46cca1f851b9d271a6761e0d1427665649e47
Author: Romain Geissler <romain.geissler@amadeus.com>
Date:   Tue Jul 16 17:14:54 2019 +0000

    Remove all usage of @BASH@ or ${BASH} in installed files, and hardcode /bin/bash instead.

diff --git a/debug/Makefile b/debug/Makefile
index 3f66666c6c1..6893111cbfa 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -216,8 +216,7 @@ $(objpfx)pcprofiledump: $(objpfx)pcprofiledump.o
 
 $(objpfx)xtrace: xtrace.sh
 	rm -f $@.new
-	sed -e 's|@BASH@|$(BASH)|' -e 's|@VERSION@|$(version)|' \
-	    -e 's|@SLIBDIR@|$(sLIBdir)|' -e 's|@BINDIR@|$(bindir)|' \
-	    -e 's|@PKGVERSION@|$(PKGVERSION)|' \
+	sed -e 's|@VERSION@|$(version)|' -e 's|@SLIBDIR@|$(sLIBdir)|' \
+	    -e 's|@BINDIR@|$(bindir)|' -e 's|@PKGVERSION@|$(PKGVERSION)|' \
 	    -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|' $^ > $@.new \
 	&& rm -f $@ && mv $@.new $@ && chmod +x $@
diff --git a/debug/xtrace.sh b/debug/xtrace.sh
index 279fe59ac61..9697fbe0b41 100755
--- a/debug/xtrace.sh
+++ b/debug/xtrace.sh
@@ -1,4 +1,4 @@
-#! @BASH@
+#!/bin/bash
 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Ulrich Drepper <drepper@gnu.org>, 1999.
diff --git a/elf/Makefile b/elf/Makefile
index f09988f7d2d..a9dc4533b97 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -143,8 +143,7 @@ $(objpfx)sotruss-lib.so: $(common-objpfx)libc.so $(objpfx)ld.so \
 	$(common-objpfx)libc_nonshared.a
 
 $(objpfx)sotruss: sotruss.sh $(common-objpfx)config.make
-	sed -e 's%@BASH@%$(BASH)%g' \
-	    -e 's%@VERSION@%$(version)%g' \
+	sed -e 's%@VERSION@%$(version)%g' \
 	    -e 's%@TEXTDOMAINDIR@%$(localedir)%g' \
 	    -e 's%@PREFIX@%$(prefix)%g' \
 	    -e 's|@PKGVERSION@|$(PKGVERSION)|g' \
@@ -651,7 +650,6 @@ ldd-rewrite = -e 's%@RTLD@%$(rtlddir)/$(rtld-installed-name)%g' \
 	      -e 's%@VERSION@%$(version)%g' \
 	      -e 's|@PKGVERSION@|$(PKGVERSION)|g' \
 	      -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|g' \
-	      -e 's%@BASH@%$(BASH)%g' \
 	      -e 's%@TEXTDOMAINDIR@%$(localedir)%g'
 
 ifeq ($(ldd-rewrite-script),no)
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index 57442bc3f23..ba736464ac5 100644
--- a/elf/ldd.bash.in
+++ b/elf/ldd.bash.in
@@ -1,4 +1,4 @@
-#! @BASH@
+#!/bin/bash
 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
diff --git a/elf/sotruss.sh b/elf/sotruss.sh
index fd4da802440..003cf4d8253 100755
--- a/elf/sotruss.sh
+++ b/elf/sotruss.sh
@@ -1,4 +1,4 @@
-#! @BASH@
+#!/bin/bash
 # Copyright (C) 2011-2021 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
diff --git a/malloc/Makefile b/malloc/Makefile
index 641967c5127..afcd296ef6b 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -238,9 +238,8 @@ $(objpfx)mtrace: mtrace.pl
 
 $(objpfx)memusage: memusage.sh
 	rm -f $@.new
-	sed -e 's|@BASH@|$(BASH)|' -e 's|@VERSION@|$(version)|' \
-	    -e 's|@SLIBDIR@|$(sLIBdir)|' -e 's|@BINDIR@|$(bindir)|' \
-	    -e 's|@PKGVERSION@|$(PKGVERSION)|' \
+	sed -e 's|@VERSION@|$(version)|' -e 's|@SLIBDIR@|$(sLIBdir)|' \
+	    -e 's|@BINDIR@|$(bindir)|' -e 's|@PKGVERSION@|$(PKGVERSION)|' \
 	    -e 's|@REPORT_BUGS_TO@|$(REPORT_BUGS_TO)|' $^ > $@.new \
 	&& rm -f $@ && mv $@.new $@ && chmod +x $@
 
diff --git a/malloc/memusage.sh b/malloc/memusage.sh
index c1cd4e23b73..0645f09911d 100755
--- a/malloc/memusage.sh
+++ b/malloc/memusage.sh
@@ -1,4 +1,4 @@
-#! @BASH@
+#!/bin/bash
 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Ulrich Drepper <drepper@gnu.org>, 1999.
diff --git a/timezone/Makefile b/timezone/Makefile
index 395abfeebde..c624a189b32 100644
--- a/timezone/Makefile
+++ b/timezone/Makefile
@@ -123,8 +123,7 @@ $(testdata)/XT%: testdata/XT%
 	cp $< $@
 
 $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make
-	sed -e 's|/bin/bash|$(BASH)|' \
-	    -e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \
+	sed -e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \
 	    -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \
 	    -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \
 	    -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-12  2:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-16 19:16 [BZ 24106] Remove all usage of @BASH@ or ${BASH} in installed files, and hardcode /bin/bash instead Romain Geissler
2019-07-18 17:37 ` Adhemerval Zanella
2019-07-18 19:57   ` Carlos O'Donell
2021-05-02 12:17 Romain GEISSLER
2021-05-12  2:14 ` Siddhesh Poyarekar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).