summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Tilley <lv@gentoo.org>2004-09-28 09:30:43 +0000
committerTravis Tilley <lv@gentoo.org>2004-09-28 09:30:43 +0000
commita5549bf372c6c96b6ab10f030e168c232c59fcf9 (patch)
tree7dad87db2463c581c5b2ea5760551286ca0c6cee /app-shells/bash
parentforgot -j1 as per prev bug report. Added inherit eutils too (diff)
downloadhistorical-a5549bf372c6c96b6ab10f030e168c232c59fcf9.tar.gz
historical-a5549bf372c6c96b6ab10f030e168c232c59fcf9.tar.bz2
historical-a5549bf372c6c96b6ab10f030e168c232c59fcf9.zip
fixed using bash with post-20040808 glibc snapshots
Diffstat (limited to 'app-shells/bash')
-rw-r--r--app-shells/bash/ChangeLog7
-rw-r--r--app-shells/bash/Manifest30
-rw-r--r--app-shells/bash/bash-2.05b-r10.ebuild4
-rw-r--r--app-shells/bash/bash-2.05b-r9.ebuild4
-rw-r--r--app-shells/bash/bash-3.0-r5.ebuild5
-rw-r--r--app-shells/bash/bash-3.0-r6.ebuild5
-rw-r--r--app-shells/bash/files/bash-2.05b-jobs.patch27
-rw-r--r--app-shells/bash/files/bash-3.0-jobs.patch35
8 files changed, 98 insertions, 19 deletions
diff --git a/app-shells/bash/ChangeLog b/app-shells/bash/ChangeLog
index 837edc4eab9a..274b01d64b47 100644
--- a/app-shells/bash/ChangeLog
+++ b/app-shells/bash/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-shells/bash
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.51 2004/09/28 02:41:26 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.52 2004/09/28 09:30:43 lv Exp $
+
+ 28 Sep 2004; Travis Tilley <lv@gentoo.org> +files/bash-2.05b-jobs.patch,
+ +files/bash-3.0-jobs.patch, bash-2.05b-r10.ebuild, bash-2.05b-r9.ebuild,
+ bash-3.0-r5.ebuild, bash-3.0-r6.ebuild:
+ fixed using bash with post-20040808 glibc snapshots
*bash-3.0-r6 (27 Sep 2004)
diff --git a/app-shells/bash/Manifest b/app-shells/bash/Manifest
index 6f960e78aa95..4ad2e354180a 100644
--- a/app-shells/bash/Manifest
+++ b/app-shells/bash/Manifest
@@ -1,21 +1,23 @@
-MD5 c1674384d19540e8bea5cd7e1640bda2 bash-3.0-r6.ebuild 3819
-MD5 d1bf77177df5f58074ee982ee4a59a5e bash-2.05b-r9.ebuild 3411
-MD5 5ce4734f573226c9477dce271de47b1f bash-3.0-r5.ebuild 4891
-MD5 9ef5bf51221ad0b0500dbd844e41a825 ChangeLog 10830
+MD5 3fd3db4f1ab5bdd93e683269e3c09f43 ChangeLog 11071
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 3a2a59cfbf7586feb791fc089ab15b47 bash-2.05b-r10.ebuild 3547
-MD5 4a3ebcb995491c2730d156b314cbab0b files/bash-3.0-etc-inputrc.patch 1223
+MD5 a01b71462f6a40b7f01bc220b2bdafc1 bash-2.05b-r10.ebuild 3630
+MD5 21202810fe236fb3d3818ec8a3148a55 bash-3.0-r5.ebuild 4975
+MD5 01d819655c6278aedf499c899c8953ec bash-3.0-r6.ebuild 3901
+MD5 4900004f337f11b5ce393c180bcf393e bash-2.05b-r9.ebuild 3494
+MD5 edf95b873162f4548435c379e4998b4e files/bash-2.05b-empty-herestring.patch 836
+MD5 90ba92c981c1d26e45d88ecd23a1fbf5 files/bash-2.05b-multibyte-locale.patch 1897
+MD5 4383b25cd54b24b9f459e338f06d096c files/bash-2.05b-parallel-build.patch 459
MD5 3b905c7c9341c9009bd68f14c047815e files/bash-2.05b-rbash.patch 804
+MD5 96238e7d942d091ca71574ba7392e847 files/bash-3.0-array-stripping.patch 294
+MD5 4a3ebcb995491c2730d156b314cbab0b files/bash-3.0-etc-inputrc.patch 1223
+MD5 28c9d7407d5332c29dddb656a4a1f1ce files/bash-3.0-invisible.patch 705
+MD5 0392b634a7a02302d24ccc4a4b349423 files/bash-3.0-local-array.patch 275
MD5 694b8b1e47e4743e78ee5f7515f76542 files/bash-3.0-posixtrap.patch 789
MD5 8424d47516cd474034c956a1cde0cafa files/bashrc 1335
-MD5 4383b25cd54b24b9f459e338f06d096c files/bash-2.05b-parallel-build.patch 459
MD5 582fb9ed0ca44627978ce6836a5000dc files/config-top.h.diff 487
-MD5 96238e7d942d091ca71574ba7392e847 files/bash-3.0-array-stripping.patch 294
-MD5 0392b634a7a02302d24ccc4a4b349423 files/bash-3.0-local-array.patch 275
-MD5 30a9ff1b688e79f59376a47d882f3419 files/digest-bash-3.0-r5 128
-MD5 1fbe0324b1b5778d693d82cddcabeb9e files/digest-bash-3.0-r6 817
-MD5 28c9d7407d5332c29dddb656a4a1f1ce files/bash-3.0-invisible.patch 705
MD5 1894aaae72806c410d851d046d13dd32 files/digest-bash-2.05b-r10 461
MD5 1894aaae72806c410d851d046d13dd32 files/digest-bash-2.05b-r9 461
-MD5 edf95b873162f4548435c379e4998b4e files/bash-2.05b-empty-herestring.patch 836
-MD5 90ba92c981c1d26e45d88ecd23a1fbf5 files/bash-2.05b-multibyte-locale.patch 1897
+MD5 30a9ff1b688e79f59376a47d882f3419 files/digest-bash-3.0-r5 128
+MD5 05f32594822720a84f58197c1535fc82 files/bash-3.0-jobs.patch 1064
+MD5 ca64aff9caa582e07e0b34ed87d60d80 files/bash-2.05b-jobs.patch 876
+MD5 1fbe0324b1b5778d693d82cddcabeb9e files/digest-bash-3.0-r6 817
diff --git a/app-shells/bash/bash-2.05b-r10.ebuild b/app-shells/bash/bash-2.05b-r10.ebuild
index 142458560425..0e87a279ae88 100644
--- a/app-shells/bash/bash-2.05b-r10.ebuild
+++ b/app-shells/bash/bash-2.05b-r10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-2.05b-r10.ebuild,v 1.8 2004/09/25 04:10:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-2.05b-r10.ebuild,v 1.9 2004/09/28 09:30:43 lv Exp $
inherit gcc eutils flag-o-matic gnuconfig
@@ -44,6 +44,8 @@ src_unpack() {
epatch ${FILESDIR}/${P}-rbash.patch
# Fix parallel make, bug #41002.
epatch ${FILESDIR}/${P}-parallel-build.patch
+ # Fix using bash with post-20040808 glibc ebuilds
+ epatch ${FILESDIR}/${P}-jobs.patch
# Enable SSH_SOURCE_BASHRC (#24762)
echo '#define SSH_SOURCE_BASHRC' >> config-top.h
diff --git a/app-shells/bash/bash-2.05b-r9.ebuild b/app-shells/bash/bash-2.05b-r9.ebuild
index 76415fabf3ce..467db50c35a0 100644
--- a/app-shells/bash/bash-2.05b-r9.ebuild
+++ b/app-shells/bash/bash-2.05b-r9.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-2.05b-r9.ebuild,v 1.22 2004/09/25 04:10:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-2.05b-r9.ebuild,v 1.23 2004/09/28 09:30:43 lv Exp $
inherit eutils flag-o-matic gnuconfig
@@ -44,6 +44,8 @@ src_unpack() {
epatch ${FILESDIR}/${P}-rbash.patch
# Fix parallel make, bug #41002.
epatch ${FILESDIR}/${P}-parallel-build.patch
+ # Fix using bash with post-20040808 glibc ebuilds
+ epatch ${FILESDIR}/${P}-jobs.patch
# Enable SSH_SOURCE_BASHRC (#24762)
sed -e 's:^.*\(#define SSH_SOURCE_BASHRC\).*$:\1:' \
diff --git a/app-shells/bash/bash-3.0-r5.ebuild b/app-shells/bash/bash-3.0-r5.ebuild
index 361bb87e71a0..d0e0ba90c67d 100644
--- a/app-shells/bash/bash-3.0-r5.ebuild
+++ b/app-shells/bash/bash-3.0-r5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.0-r5.ebuild,v 1.6 2004/09/25 04:10:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.0-r5.ebuild,v 1.7 2004/09/28 09:30:43 lv Exp $
inherit eutils flag-o-matic gnuconfig gcc
@@ -75,6 +75,9 @@ src_unpack() {
# bug 60127 (bash 3 breaks array stripping)
epatch ${FILESDIR}/${P}-array-stripping.patch
+ # Fix using bash with post-20040808 glibc ebuilds
+ epatch ${FILESDIR}/${P}-jobs.patch
+
# Enable SSH_SOURCE_BASHRC (#24762)
echo '#define SSH_SOURCE_BASHRC' >> config-top.h
diff --git a/app-shells/bash/bash-3.0-r6.ebuild b/app-shells/bash/bash-3.0-r6.ebuild
index 1382c332d7a9..764d36f24820 100644
--- a/app-shells/bash/bash-3.0-r6.ebuild
+++ b/app-shells/bash/bash-3.0-r6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.0-r6.ebuild,v 1.1 2004/09/28 02:41:26 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.0-r6.ebuild,v 1.2 2004/09/28 09:30:43 lv Exp $
inherit eutils flag-o-matic gnuconfig gcc
@@ -52,6 +52,9 @@ src_unpack() {
# user creates a ~/.inputrc
epatch ${FILESDIR}/${P}-etc-inputrc.patch
+ # Fix using bash with post-20040808 glibc ebuilds
+ epatch ${FILESDIR}/${P}-jobs.patch
+
# Enable SSH_SOURCE_BASHRC (#24762)
echo '#define SSH_SOURCE_BASHRC' >> config-top.h
diff --git a/app-shells/bash/files/bash-2.05b-jobs.patch b/app-shells/bash/files/bash-2.05b-jobs.patch
new file mode 100644
index 000000000000..6d68059535f2
--- /dev/null
+++ b/app-shells/bash/files/bash-2.05b-jobs.patch
@@ -0,0 +1,27 @@
+diff -Nru bash-2.05b.old/jobs.c bash-2.05b/jobs.c
+--- bash-2.05b.old/jobs.c 2004-09-28 04:24:20.656378576 -0400
++++ bash-2.05b/jobs.c 2004-09-28 04:24:30.586868912 -0400
+@@ -2423,6 +2423,7 @@
+ PROCESS *child;
+ pid_t pid;
+ int call_set_current, last_stopped_job, job, children_exited, waitpid_flags;
++ static int wcontinued_not_supported = 0;
+
+ call_set_current = children_exited = 0;
+ last_stopped_job = NO_JOB;
+@@ -2436,7 +2437,15 @@
+ : 0;
+ if (sigchld || block == 0)
+ waitpid_flags |= WNOHANG;
++ retry:
++ if (wcontinued_not_supported)
++ waitpid_flags &= ~WCONTINUED;
+ pid = WAITPID (-1, &status, waitpid_flags);
++ if (pid == -1 && errno == EINVAL)
++ {
++ wcontinued_not_supported = 1;
++ goto retry;
++ }
+
+ /* The check for WNOHANG is to make sure we decrement sigchld only
+ if it was non-zero before we called waitpid. */
diff --git a/app-shells/bash/files/bash-3.0-jobs.patch b/app-shells/bash/files/bash-3.0-jobs.patch
new file mode 100644
index 000000000000..b5d1ed4c7768
--- /dev/null
+++ b/app-shells/bash/files/bash-3.0-jobs.patch
@@ -0,0 +1,35 @@
+--- bash-3.0/tests/jobs4.sub.jobs 2004-05-06 14:02:41.000000000 +0100
++++ bash-3.0/tests/jobs4.sub 2004-09-08 16:07:25.305385245 +0100
+@@ -18,5 +18,5 @@
+
+ wait
+
+-cat &
++sleep 100 &
+ kill -1 %% && echo i killed it || echo could not kill it
+--- bash-3.0/jobs.c.jobs 2004-09-08 16:07:25.081427747 +0100
++++ bash-3.0/jobs.c 2004-09-08 16:18:06.698604033 +0100
+@@ -2475,6 +2475,7 @@
+ PROCESS *child;
+ pid_t pid;
+ int call_set_current, last_stopped_job, job, children_exited, waitpid_flags;
++ static int wcontinued_not_supported = 0;
+
+ call_set_current = children_exited = 0;
+ last_stopped_job = NO_JOB;
+@@ -2488,7 +2489,15 @@
+ : 0;
+ if (sigchld || block == 0)
+ waitpid_flags |= WNOHANG;
++ retry:
++ if (wcontinued_not_supported)
++ waitpid_flags &= ~WCONTINUED;
+ pid = WAITPID (-1, &status, waitpid_flags);
++ if (pid == -1 && errno == EINVAL)
++ {
++ wcontinued_not_supported = 1;
++ goto retry;
++ }
+
+ /* The check for WNOHANG is to make sure we decrement sigchld only
+ if it was non-zero before we called waitpid. */