<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>165982</bug_id>
          
          <creation_ts>2007-02-08 19:33 0000</creation_ts>
          <short_desc>app-shells/ksh-93.20060214-r1 emerge hangs w/ sys-apps/ed-0.4</short_desc>
          <delta_ts>2007-04-29 02:11:11 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>serserb@bk.ru</reporter>
          <assigned_to>taviso@gentoo.org</assigned_to>
          <cc>dhp_gentoo@doublehp.org</cc>
    
    <cc>dirtyepic@gentoo.org</cc>
    
    <cc>serserb@bk.ru</cc>

      

      
          <long_desc isprivate="0">
            <who>serserb@bk.ru</who>
            <bug_when>2007-02-08 19:33:36 0000</bug_when>
            <thetext>emerge ksh hangs

Reproducible: Always

Steps to Reproduce:
1. emerge ksh

Actual Results:  
log:

# emerge ksh
Calculating dependencies... done!

&gt;&gt;&gt; Emerging (1 of 1) app-shells/ksh-93.20060214-r1 to /
 * ast-ksh-locale.2006-02-14.tgz MD5 ;-) ...                              [ ok ]
 * ast-ksh-locale.2006-02-14.tgz RMD160 ;-) ...                           [ ok ]
 * ast-ksh-locale.2006-02-14.tgz SHA1 ;-) ...                             [ ok ]
 * ast-ksh-locale.2006-02-14.tgz SHA256 ;-) ...                           [ ok ]
 * ast-ksh-locale.2006-02-14.tgz size ;-) ...                             [ ok ]
 * INIT.2006-02-14.tgz MD5 ;-) ...                                        [ ok ]
 * INIT.2006-02-14.tgz RMD160 ;-) ...                                     [ ok ]
 * INIT.2006-02-14.tgz SHA1 ;-) ...                                       [ ok ]
 * INIT.2006-02-14.tgz SHA256 ;-) ...                                     [ ok ]
 * INIT.2006-02-14.tgz size ;-) ...                                       [ ok ]
 * ast-ksh.2006-02-14.tgz MD5 ;-) ...                                     [ ok ]
 * ast-ksh.2006-02-14.tgz RMD160 ;-) ...                                  [ ok ]
 * ast-ksh.2006-02-14.tgz SHA1 ;-) ...                                    [ ok ]
 * ast-ksh.2006-02-14.tgz SHA256 ;-) ...                                  [ ok ]
 * ast-ksh.2006-02-14.tgz size ;-) ...                                    [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking ast-ksh-locale.2006-02-14.tgz ;-) ...                         [ ok ]
 * checking INIT.2006-02-14.tgz ;-) ...                                   [ ok ]
 * checking ast-ksh.2006-02-14.tgz ;-) ...                                [ ok ]
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking INIT.2006-02-14.tgz to /var/tmp/portage/app-shells/ksh-93.20060214-r1/work
package: update /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/bin/execrate
README
share/lib/locale/C/LC_MESSAGES/errlist
share/lib/locale/C/LC_MESSAGES/libshell
share/lib/locale/C/LC_TIME
share/lib/locale/chef/LC_MESSAGES/errlist
share/lib/locale/chef/LC_MESSAGES/libshell
share/lib/locale/chef/LC_TIME
share/lib/locale/de/LC_MESSAGES/errlist
share/lib/locale/de/LC_MESSAGES/libshell
share/lib/locale/de/LC_TIME
share/lib/locale/es/LC_MESSAGES/errlist
share/lib/locale/es/LC_MESSAGES/libshell
share/lib/locale/es/LC_TIME
share/lib/locale/fr/LC_MESSAGES/errlist
share/lib/locale/fr/LC_MESSAGES/libshell
share/lib/locale/fr/LC_TIME
share/lib/locale/fudd/LC_MESSAGES/errlist
share/lib/locale/fudd/LC_MESSAGES/libshell
share/lib/locale/fudd/LC_TIME
share/lib/locale/it/LC_MESSAGES/errlist
share/lib/locale/it/LC_MESSAGES/libshell
share/lib/locale/it/LC_TIME
share/lib/locale/piglatin/LC_MESSAGES/errlist
share/lib/locale/piglatin/LC_MESSAGES/libshell
share/lib/locale/piglatin/LC_TIME
share/lib/locale/pt/LC_MESSAGES/errlist
share/lib/locale/pt/LC_MESSAGES/libshell
share/lib/locale/pt/LC_TIME
share/lib/locale/valley/LC_MESSAGES/errlist
share/lib/locale/valley/LC_MESSAGES/libshell
share/lib/locale/valley/LC_TIME
lib/package/ast-ksh-locale.README
lib/package/ast-ksh-locale.html
lib/package/ast-ksh-locale.pkg
lib/package/ast-ksh-locale.req
lib/package/ast-ksh-locale.ver
README
lib/package/LICENSES/ast
lib/package/ast-ksh.README
lib/package/ast-ksh.html
lib/package/ast-ksh.pkg
lib/package/ast-ksh.req
lib/package/ast-ksh.ver
lib/package/ast.lic
lib/package/ksh.pkg
lib/package/ksh.req
lib/package/ksh.ver
src/cmd/ksh93/COMPATIBILITY
..........................
src/lib/libdll/features/dll
 * Applying ksh-20050202-uname.patch ...
  [ ok ]
 * Applying ksh-20060124-syntax.patch ...
  [ ok ]
&gt;&gt;&gt; Source unpacked.
&gt;&gt;&gt; Compiling source in /var/tmp/portage/app-shells/ksh-93.20060214-r1/work ...
package: initialize the /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386 view
package: update /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386/lib/probe/C/make/probe
package: update /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386/bin/proto
package: update /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386/bin/mamake
package: update /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386/bin/ratz
package: update /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386/bin/release
package: make output captured in /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386/lib/package/gen/make.out
package: make start at Чтв Фев  8 22:23:18 MSK 2007 in /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386
+ mamake -r &apos;*/*&apos; -k install ksh93
+ mamake -C cmd/INIT -k install
probing C language processor /var/tmp/portage/app-shells/ksh-93.20060214-r1/work/arch/linux.i386/bin/cc for mam information</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-02-08 19:39:58 0000</bug_when>
            <thetext>emerge --info please.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>serserb@bk.ru</who>
            <bug_when>2007-02-08 19:51:06 0000</bug_when>
            <thetext>emerge --info
Portage 2.1.2-r8 (default-linux/x86/no-nptl, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 06 Feb 2007 16:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r2
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium4 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=pentium4 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;ru_RU.UTF-8&quot;
LC_ALL=&quot;&quot;
LINGUAS=&quot;ru&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;7zip X alsa apm automount bitmap-fonts cli cracklib crypt cups dlloader dri dvdr eds emboss encode foomaticdb gif gstreamer gtk2 hal iconv imlib isdnlog jpeg kde libg++ libwww mad midi mikmod mmx mp3 mpeg nis nls ogg opengl oss pam pcre png pppd qt qt3 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode usb userlocales vorbis x86 xorg xv zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;ru&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;radeon&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>serserb@bk.ru</who>
            <bug_when>2007-02-08 19:57:32 0000</bug_when>
            <thetext>cat /etc/make.conf

CFLAGS=&quot;-O2 -march=pentium4 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CXXFLAGS=&quot;${CFLAGS}&quot;
USE=&quot;dvdr mmx usb 7zip automount X kde qt qt3 alsa nptl nptlonly userlocales nis unicode hal -arts -xml -gpm -python -perl -gnome -gtk -java -slang -ipv6 -ncurses -fortran -gdbm -berkdb -motif -qt4&quot;
STAGE1_USE=&quot;nptl nptlonly&quot;
ACCEPT_KEYWORDS=&quot;~x86&quot;
LINGUAS=&quot;ru&quot;
VIDEO_CARDS=&quot;radeon&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>serserb@bk.ru</who>
            <bug_when>2007-02-13 12:44:33 0000</bug_when>
            <thetext>WORKAROUND:
That has earned emerge ksh it is necessary to make emerge-C ed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kevquinn@gentoo.org</who>
            <bug_when>2007-03-25 10:20:37 0000</bug_when>
            <thetext>Created an attachment (id=114329)
Add &apos;-V&apos; to ed invocation, to ensure it terminates

Well spotted, that &apos;emerge -C ed&apos; works around it.  The problem is that the mamprobe.sh script assumes that &apos;ed&apos; terminates when given /dev/null as input, and uses it thus to test for its existence.  Obviously it&apos;s not the case (presumably it used to be).  This patch changes the &apos;ed&apos; invocation in mamprobe.sh to be &apos;ed -V&apos; - which always terminates, thus allowing the test to complete successfully.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-04-16 04:34:40 0000</bug_when>
            <thetext>looks like this is fixed in 2007-03-28 too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-04-29 02:11:03 0000</bug_when>
            <thetext>Fixed in 93.20060214-r1.  Thanks for the patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>114329</attachid>
            <date>2007-03-25 10:20 0000</date>
            <desc>Add &apos;-V&apos; to ed invocation, to ensure it terminates</desc>
            <filename>ksh-mamprobe-ed-termination.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNyYy9jbWQvSU5JVC9tYW1wcm9iZS5zaC5vcmlnCTIwMDctMDMtMjUgMTI6MDA6NTUuMDAw
MDAwMDAwICswMjAwCisrKyBzcmMvY21kL0lOSVQvbWFtcHJvYmUuc2gJMjAwNy0wMy0yNSAxMjow
NDoxMy4wMDAwMDAwMDAgKzAyMDAKQEAgLTIxOSw3ICsyMTksNyBAQAogCiAjIFNURCogYXJlIHN0
YW5kYXJkIGNvbW1hbmRzL2ZsYWdzIHdpdGggcG9zc2libGUgZXhlY3JhdGUoMSkKIAotaWYJKCBl
ZCApIDwgL2Rldi9udWxsID4gL2Rldi9udWxsIDI+JjEKK2lmCSggZWQgLVYgKSA8IC9kZXYvbnVs
bCA+IC9kZXYvbnVsbCAyPiYxCiB0aGVuCVNUREVEPWVkCiBlbHNlCVNUREVEPWV4CiBmaQo=
</data>        

          </attachment>
    </bug>

</bugzilla>