Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67075 - bash-3.x doesnt expand some expressions properly
Summary: bash-3.x doesnt expand some expressions properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 97580 103448 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-11 04:00 UTC by Lisa Seelye (RETIRED)
Modified: 2005-08-23 12:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch-14 is now "official" (diff against bash-3.0-r7.ebuild) (bash-3.0-r7.diff,813 bytes, text/plain)
2004-10-24 18:57 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lisa Seelye (RETIRED) gentoo-dev 2004-10-11 04:00:29 UTC
The default function creates a directory structure that looks like:

root@dev dhcp # ls /chroot/dhcp/
{dev,etc,var  etc

Clearly that is not the desired effect.  I changed the file to:

--- dhcp-3.0.1.ebuild.dist   2004-10-02 17:11:11.000000000 +0000
+++ dhcp-3.0.1.ebuild   2004-10-11 10:42:49.621739048 +0000
@@ -109,8 +109,12 @@
        CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/dhcp 2>/dev/null`

        if [ ! -d "${CHROOT:=/chroot/dhcp}" ] ; then
+               local d dirs='dev etc var/lib var/run/dhcp'
                ebegin "Setting up the chroot directory"
-               mkdir -m 0755 -p "${CHROOT}/"{dev,etc,var/lib,var/run/dhcp}
+               for d in ${dirs}
+               do
+                       mkdir -m 0755 -p "${CHROOT}/${d}"
+               done
                cp -R /etc/dhcp "${CHROOT}/etc/"
                cp -R /var/lib/dhcp "${CHROOT}/var/lib"
                chown -R dhcp:dhcp "${CHROOT}/var/lib" "${CHROOT}/var/run/dhcp"
Comment 1 SpanKY gentoo-dev 2004-10-11 19:16:18 UTC
this is a bug in bash, not the ebuild
Comment 2 SpanKY gentoo-dev 2004-10-11 19:21:54 UTC
here's a test case:
$ D=blah
$ echo ${D}/{a,b,c}
blah/a blah/b blah/c
$ echo "${D}"/{a,b,c}
blah/{a,b,c}
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-10-13 17:13:42 UTC
Fixed in bash-3.0-r7, thanks
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-10-24 18:57:58 UTC
Created attachment 42528 [details]
patch-14 is now "official" (diff against bash-3.0-r7.ebuild)

Hi,

just a "cosmetic" fix. Thought telling you it's out :)

Poly
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-10-24 19:58:54 UTC
thanks.  patch is same as what we have so I'll wait until patch 15 to bother changing anything.
Comment 6 SpanKY gentoo-dev 2005-07-02 07:29:22 UTC
*** Bug 97580 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2005-08-23 12:50:30 UTC
*** Bug 103448 has been marked as a duplicate of this bug. ***