This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 4/4] stop supporting bash-1.x


We've stopped supporting toolchain packages older than 2009, so punting
bash-1.x is reasonable when bash-2 was released almost 20 years ago.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2014-01-23  Mike Frysinger  <vapier@gentoo.org>

	* config.make.in (have-bash2): Delete.
	* configure.ac (libc_cv_have_bash2): Delete.
	* configure: Regenerate.
	* elf/Makefile (common-ldd-rewrite): Rename to ...
	(ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
	(sh-ldd-rewrite): Delete.
	(bash-ldd-rewrite): Delete.
	(have-bash2): Delete checks.
	[ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to ldd-rewrite.
---
 config.make.in |  2 --
 configure      |  9 ---------
 configure.ac   |  8 --------
 elf/Makefile   | 23 ++++++++---------------
 4 files changed, 8 insertions(+), 34 deletions(-)

diff --git a/config.make.in b/config.make.in
index ecd56ca..d876bf0 100644
--- a/config.make.in
+++ b/config.make.in
@@ -73,8 +73,6 @@ multi-arch = @multi_arch@
 
 mach-interface-list = @mach_interface_list@
 
-have-bash2 = @libc_cv_have_bash2@
-
 sizeof-long-double = @sizeof_long_double@
 
 nss-crypt = @libc_cv_nss_crypt@
diff --git a/configure b/configure
index 82591ed..7c82b63 100755
--- a/configure
+++ b/configure
@@ -616,7 +616,6 @@ libc_cv_cc_with_libunwind
 BISON
 INSTALL_INFO
 PERL
-libc_cv_have_bash2
 BASH_SHELL
 libc_cv_gcc_static_libgcc
 CXX_SYSINCLUDES
@@ -5318,14 +5317,6 @@ $as_echo "no" >&6; }
 fi
 
 
-if test "$BASH_SHELL" != no &&
-   $BASH_SHELL -c 'test "$BASH_VERSINFO" \
-	     && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
-  libc_cv_have_bash2=yes
-else
-  libc_cv_have_bash2=no
-fi
-
 
 # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2
diff --git a/configure.ac b/configure.ac
index 414aaea..7813b0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1099,14 +1099,6 @@ fi])
 AC_SUBST(libc_cv_gcc_static_libgcc)
 
 AC_PATH_PROG(BASH_SHELL, bash, no)
-if test "$BASH_SHELL" != no &&
-   $BASH_SHELL -c 'test "$BASH_VERSINFO" \
-	     && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
-  libc_cv_have_bash2=yes
-else
-  libc_cv_have_bash2=no
-fi
-AC_SUBST(libc_cv_have_bash2)
 
 AC_PATH_PROG(PERL, perl, no)
 if test "$PERL" != no &&
diff --git a/elf/Makefile b/elf/Makefile
index ad275f7..e466abb 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -377,27 +377,20 @@ ldso_install: $(inst_rtlddir)/$(rtld-installed-name)
 endif
 
 
-common-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'
-sh-ldd-rewrite = $(common-ldd-rewrite) -e 's%@BASH@%/bin/sh%g;s/\$$"/"/g'
-bash-ldd-rewrite = $(common-ldd-rewrite) -e 's%@BASH@%$(BASH)%g' \
-		   -e 's%@TEXTDOMAINDIR@%$(msgcatdir)%g'
-
-ifneq ($(have-bash2),yes)
-ldd-shell = sh
-else
-ldd-shell = bash
-endif
+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@%$(msgcatdir)%g'
 
 ifeq ($(ldd-rewrite-script),no)
 define gen-ldd
-LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< > $@.new
+LC_ALL=C sed $(ldd-rewrite) < $< > $@.new
 endef
 else
 define gen-ldd
-LC_ALL=C sed $($(ldd-shell)-ldd-rewrite) < $< \
+LC_ALL=C sed $(ldd-rewrite) < $< \
 | LC_ALL=C sed -f $(patsubst $(..)/%,/%,$(..)$(ldd-rewrite-script)) > $@.new
 endef
 endif
-- 
1.8.5.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]