symlink juggling failures
Edwin Groothuis
edwin at mavetju.org
Thu Dec 1 02:48:57 EST 2005
While juggling between RC's, and waiting to do some work too, I had
symlinked /space/scripts-2.1.1 to /space/scripts. On which I ended
up with:
[~] root at tinderbox>/space/scripts/tinderbuild -nullfs -b 6.0-FreeBSD www/gallery2
.: Can't open /usr/space/scripts-2.1.1/scripts/lib/tinderbox_shlib.sh: No such file or directory
This code:
[ -z "$(echo "${pb}" | sed 's![^/]!!g')" ] && \
pb=$(type "$pb" | sed 's/^.* //g')
pb=$(realpath $(dirname $pb))
pb=${pb%%/scripts}
. ${pb}/scripts/lib/tinderbox_shlib.sh
With symlinks:
[~] root at tinderbox>sh -x /space/scripts/tinderbuild -nullfs -b 6.0-FreeBSD www/gallery2
+ pb=/space/scripts/tinderbuild
+ echo /space/scripts/tinderbuild
+ sed s![^/]!!g
+ [ -z /// ]
+ dirname /space/scripts/tinderbuild
+ realpath /space/scripts
+ pb=/usr/space/scripts-2.1.1
+ pb=/usr/space/scripts-2.1.1
+ . /usr/space/scripts-2.1.1/scripts/lib/tinderbox_shlib.sh
.: Can't open /usr/space/scripts-2.1.1/scripts/lib/tinderbox_shlib.sh: No such file or directory
Without symlinks:
[~] root at tinderbox>sh -x /space/scripts/tinderbuild -nullfs -b 6.0-FreeBSD www/gallery2
+ pb=/space/scripts/tinderbuild
+ echo /space/scripts/tinderbuild
+ sed s![^/]!!g
+ [ -z /// ]
+ dirname /space/scripts/tinderbuild
+ realpath /space/scripts
+ pb=/usr/space/scripts
+ pb=/usr/space
+ . /usr/space/scripts/lib/tinderbox_shlib.sh
+ /usr/space/scripts/tc listBuilds
+ _builds=4.11-FreeBSD
6.0-FreeBSD
5.4-FreeBSD
It's related to the pb=${pb%%/scripts}, when pb doesn't contact
/scripts at the end.
Not that I know how to resolve this, nor what to do about it, but
just want to give you a heads up that this can happen.
Edwin
--
Edwin Groothuis | Personal website: http://www.mavetju.org
edwin at mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/
More information about the tinderbox-list
mailing list