diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-05-16 06:06:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-05-16 06:06:00 +0000 |
commit | 7db653817d07632c10569373afd2c6d82f96dc97 (patch) | |
tree | b5c64202a85da0bf25ff754d542493cf720f9240 /sys-apps/attr/files | |
parent | Fix building when /bin/sh is not functional enough #365397 by Piotr Karbowski. (diff) | |
download | historical-7db653817d07632c10569373afd2c6d82f96dc97.tar.gz historical-7db653817d07632c10569373afd2c6d82f96dc97.tar.bz2 historical-7db653817d07632c10569373afd2c6d82f96dc97.zip |
Fix building when /bin/sh is not functional enough #366671 by Alec Moskvin.
Package-Manager: portage-2.2.0_alpha32/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/attr/files')
-rw-r--r-- | sys-apps/attr/files/attr-2.4.46-config-shell.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sys-apps/attr/files/attr-2.4.46-config-shell.patch b/sys-apps/attr/files/attr-2.4.46-config-shell.patch new file mode 100644 index 000000000000..b6660e63c03c --- /dev/null +++ b/sys-apps/attr/files/attr-2.4.46-config-shell.patch @@ -0,0 +1,53 @@ +https://bugs.gentoo.org/366671 + +From 10bfb16245ec4b55c1f5b6dc5554913bc9b13c9c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 16 May 2011 01:59:52 -0400 +Subject: [PATCH] use SHELL from configure + +If /bin/sh is not a functional enough shell, configure will select a +SHELL of /bin/bash or better. But the current build helpers always +hardcode /bin/sh, so if libtool itself configures itself for /bin/bash, +things will fail when it attempts to do: + SHELL = /bin/sh + LIBTOOL = $(SHELL) .../libtool + ... + eval: 1: base_compile+= -pipe: not found + ... + +So rather than hardcoding SHELL to /bin/sh, set it to @SHELL@ and let +configure find a good value for us. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + include/builddefs.in | 1 + + include/buildmacros | 1 - + 2 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/builddefs.in b/include/builddefs.in +index d054a56..434ce95 100644 +--- a/include/builddefs.in ++++ b/include/builddefs.in +@@ -46,6 +46,7 @@ MAKE = @make@ + ECHO = @echo@ + SORT = @sort@ + LN_S = @LN_S@ ++SHELL = @SHELL@ + LIBTOOL = @LIBTOOL@ + MAKEDEPEND = @makedepend@ + +diff --git a/include/buildmacros b/include/buildmacros +index ab89182..8efb32e 100644 +--- a/include/buildmacros ++++ b/include/buildmacros +@@ -42,7 +42,6 @@ OBJECTS = $(ASFILES:.s=.o) \ + + INSTALL = $(TOPDIR)/include/install-sh -o $(PKG_USER) -g $(PKG_GROUP) + +-SHELL = /bin/sh + IMAGES_DIR = $(TOPDIR)/all-images + DIST_DIR = $(TOPDIR)/dist + +-- +1.7.5.rc3 + |