<?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>151108</bug_id>
          
          <creation_ts>2006-10-13 00:14 0000</creation_ts>
          <short_desc>app-shells/bash-3.2 changes =~ semantics and breaks baselayout</short_desc>
          <delta_ts>2006-11-02 02:31:20 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>baselayout</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://lists.gnu.org/archive/html/bug-bash/2006-10/msg00045.html</bug_file_loc>
          
          
          <priority>P1</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>151149</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>sebastian@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>dushistov@mail.ru</cc>
    
    <cc>jakub@gentoo.org</cc>
    
    <cc>jokey@gentoo.org</cc>
    
    <cc>m.debruijne@matrict.nl</cc>
    
    <cc>pva@gentoo.org</cc>
    
    <cc>teidakankan@gmail.com</cc>
    
    <cc>zlin@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>sebastian@gentoo.org</who>
            <bug_when>2006-10-13 00:14:36 0000</bug_when>
            <thetext>After upgrading to app-shells/bash-3.2 my laptop stopped booting. At the start of sysvinit the system tells me that the kernel is missing support for tmpfs, which it does not.

Downgrading to app-shells/bash-3.1_p17 solved the issue.

-- 

Portage 2.1.2_pre2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 Genuine Intel(R) CPU           L2400  @ 1.66GHz
Gentoo Base System version 1.13.0_alpha1
Last Sync: Fri, 13 Oct 2006 06:00:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium-m -O2 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-march=pentium-m -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig cvs digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms sign strict&quot;
GENTOO_MIRRORS=&quot;http://mirror.gentoo.no/ ftp://ftp.du.se/pub/os/gentoo ftp://trumpetti.atm.tut.fi/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.oregonstate.edu&quot;
MAKEOPTS=&quot;-j3&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;x86 X a52 aac acpi alsa asf berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo cli crypt cups dbus dga divx4linux dlloader dri dvd dvdread eds elibc_glibc exif fame firefox flac foomaticdb fortran gaim galago gdbm gif glitz gnome gpm graphviz gstreamer gtk hal input_devices_evdev input_devices_keyboard input_devices_mouse iproute2 ipv6 isdnlog java jpeg kdeenablefinal kdehiddenvisibility kernel_linux libg++ libnotify libsexy lzo mad matroska mjpeg mmx mmxext mng mono moznocompose moznoirc moznomail mozsvg mp3 mpeg ncurses nls nomotif nptl nptlonly nsplugin ogg oggvorbis opengl pam pam_console pcre pdf perl png ppds pppd python quicktime readline reflection samba session smp spl sse sse2 ssl startup-notification svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_i810 vorbis win32codecs wmf xcb xml xml2 xorg xv xvid xvmc zlib&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-10-13 02:06:06 0000</bug_when>
            <thetext>In bash 3.2 the binary operator =~ is broken.

[[ &quot;one two three&quot; =~ &quot;one (.*) three&quot; ]] &amp;&amp; echo $? ${BASH_REMATCH[1]} || echo $?
bash 3.1_p17 gives 0 two
bash 3,2     gives 1

The exact call in baselayout that is failing is this

local filesystems=$(&lt;/proc/filesystems)
if [[ ${filesystems} =~ &quot;[[:space:]]tmpfs&quot;$&apos;\n&apos; ]] ; then
  fs=&quot;tmpfs&quot;
else
  &lt;work out ramfs, etc&gt;
fi

baelayout-1.12 shouldn&apos;t be affected by this as we use these tests in 1.13 (currently alpha, unstable and p.masked)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-10-13 02:18:05 0000</bug_when>
            <thetext>3.2 Changelog

f.  Quoting the string argument to the [[ command&apos;s  =~ operator now forces
    string matching, as with the other pattern-matching operators.

match=&quot;one (.*) three&quot;
[[ &quot;one two three&quot; =~ ${match} ]] &amp;&amp; echo $? ${BASH_REMATCH[1]} || echo $?

now gives
0 two

in bash 3.2

That sucks

I suppose we could do
match=&quot;one (.*) three&quot;
[[ &quot;one two three&quot; =~ ${dummyvar:-one (.*) three} ]] &amp;&amp; echo $? ${BASH_REMATCH[1]} || echo $?
which works also, but that sucks too.

Hmmmmmm</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-10-13 02:28:16 0000</bug_when>
            <thetext>Problem is under discussion here
http://lists.gnu.org/archive/html/bug-bash/2006-10/msg00045.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dushistov@mail.ru</who>
            <bug_when>2006-10-13 23:03:39 0000</bug_when>
            <thetext>I have another problem with bash and baselayout,
related with reboot and poweroff,
after their run
/sbin/reboot or /sbin/poweroff
I got something
INIT: no more processes left on runlevel

and root filesystem not unmounted correctly, and machine was not rebooted, or halted, I have to do it manualy,
downgrade to &lt; bash-3.2 was solved the problem.
baselayout 1.12.5-r2
bash 3.2
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2006-10-16 11:22:46 0000</bug_when>
            <thetext>Although this bug is only about =~ semantics, I&apos;d like to note (just not to forgive about this) that there are some other problems with bash-3.2. Fex, compilation of kate and some other packages became broken. And I have not checked but may be this error also exist:

http://lists.gnu.org/archive/html/bug-bash/2006-10/msg00046.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-10-16 17:06:19 0000</bug_when>
            <thetext>the KDE issue is tracked in another bug ... it&apos;s a different issue so it gets a different bug</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-11-02 02:31:20 0000</bug_when>
            <thetext>baselayout-1.12.6 works with all bash versions.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>