summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-16 06:06:00 +0000
committerMike Frysinger <vapier@gentoo.org>2011-05-16 06:06:00 +0000
commited916f50135339a945b6546c2c13c78986c765af (patch)
tree74f9d7abe8d3c10bc5d41f6961a4b472fa760d5a /sys-apps
parentFix building when /bin/sh is not functional enough #365397 by Piotr Karbowski. (diff)
downloadgentoo-2-ed916f50135339a945b6546c2c13c78986c765af.tar.gz
gentoo-2-ed916f50135339a945b6546c2c13c78986c765af.tar.bz2
gentoo-2-ed916f50135339a945b6546c2c13c78986c765af.zip
Fix building when /bin/sh is not functional enough #366671 by Alec Moskvin.
(Portage version: 2.2.0_alpha32/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/attr/ChangeLog6
-rw-r--r--sys-apps/attr/attr-2.4.46.ebuild3
-rw-r--r--sys-apps/attr/files/attr-2.4.46-config-shell.patch53
3 files changed, 60 insertions, 2 deletions
diff --git a/sys-apps/attr/ChangeLog b/sys-apps/attr/ChangeLog
index acbdf6d82c19..d9015befe41b 100644
--- a/sys-apps/attr/ChangeLog
+++ b/sys-apps/attr/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/attr
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/attr/ChangeLog,v 1.126 2011/05/09 19:11:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/attr/ChangeLog,v 1.127 2011/05/16 06:06:00 vapier Exp $
+
+ 16 May 2011; Mike Frysinger <vapier@gentoo.org> attr-2.4.46.ebuild,
+ +files/attr-2.4.46-config-shell.patch:
+ Fix building when /bin/sh is not functional enough #366671 by Alec Moskvin.
*attr-2.4.46 (09 May 2011)
diff --git a/sys-apps/attr/attr-2.4.46.ebuild b/sys-apps/attr/attr-2.4.46.ebuild
index 350f9b5d3105..74aba0e6ad20 100644
--- a/sys-apps/attr/attr-2.4.46.ebuild
+++ b/sys-apps/attr/attr-2.4.46.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/attr/attr-2.4.46.ebuild,v 1.1 2011/05/09 19:11:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/attr/attr-2.4.46.ebuild,v 1.2 2011/05/16 06:06:00 vapier Exp $
EAPI="4"
@@ -21,6 +21,7 @@ RDEPEND=""
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.4.44-gettext.patch
+ epatch "${FILESDIR}"/${PN}-2.4.46-config-shell.patch #366671
sed -i \
-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
-e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
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
+