Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159655

Summary: app-shells/bash-3.2_p9-r1 fails to apply a patch
Product: Gentoo Linux Reporter: lkml_ccc
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description lkml_ccc 2007-01-01 16:07:39 UTC
* Failed Patch: bash-3.2-dev-fd-test-as-user.patch !
 *  ( /usr/portage/app-shells/bash/files/bash-3.2-dev-fd-test-as-user.patch )

cat /usr/portage/app-shells/bash/files/bash-3.2-dev-fd-test-as-user.patch
diff -ur bash-3.2.orig/aclocal.m4 bash-3.2/aclocal.m4
--- bash-3.2.orig/aclocal.m4    2006-12-30 20:00:31 +0000
+++ bash-3.2/aclocal.m4 2006-12-30 20:02:02 +0000
@@ -1544,7 +1544,8 @@
 if test -d /dev/fd  && test -r /dev/fd/0 < /dev/null; then
 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
    exec 3</dev/null
-   if test -r /dev/fd/3; then
+   # bash test builtin always works here, so we use the test binary
+   if `which test || echo test` -e /dev/fd/3; then
      bash_cv_dev_fd=standard
    else
      bash_cv_dev_fd=absent
diff -ur bash-3.2.orig/configure bash-3.2/configure
--- bash-3.2.orig/configure     2006-12-30 20:03:24 +0000
+++ bash-3.2/configure  2006-12-30 20:01:50 +0000
@@ -27179,7 +27179,8 @@
 if test -d /dev/fd  && test -r /dev/fd/0 < /dev/null; then
 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
    exec 3</dev/null
-   if test -r /dev/fd/3; then
+   # bash test builtin always works here, so we use the test binary
+   if `which test || echo test` -e /dev/fd/3; then
      bash_cv_dev_fd=standard
    else
      bash_cv_dev_fd=absent

emerge --info
Portage 2.1.1-r2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.17.13-rsbac i686)
=================================================================
System uname: 2.6.17.13-rsbac i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.6
Last Sync: Sun, 31 Dec 2006 23:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /var/bind /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="allpackagers autoconfig buildpkg ccache distlocks fixpackages metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.ngi.it/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.blueyonder.co.uk"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.utf8"
LINGUAS="it"
MAKEOPTS="-j1"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 bash-completion berkdb bzip2 caps cracklib crypt curl dlloader doc elibc_glibc fam gdbm gpm hardened hardened-php idn input_devices_keyboard input_devices_mouse ipv6 kerberos kernel_linux ldap linguas_it logrotate maildir memlimit mmx nls nptl pam perl pic pie python quotas readline samba sasl snmp ssl tcpd tetex unicode userland_GNU userlocales x86 xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-01 16:09:18 UTC

*** This bug has been marked as a duplicate of 159632 ***