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"
this is a bug in bash, not the ebuild
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}
Fixed in bash-3.0-r7, thanks
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
thanks. patch is same as what we have so I'll wait until patch 15 to bother changing anything.
*** Bug 97580 has been marked as a duplicate of this bug. ***
*** Bug 103448 has been marked as a duplicate of this bug. ***