[Scratchbox-devel] sb-adduser broken in 1.0.8

Jussi Hakala jussi.hakala at movial.fi
Thu Aug 23 17:50:52 EEST 2007


You're right.

I'll try to fix this as soon as possible. After 1.0.7, the ugly path 
handling in the sbin/* scripts was refactored (the was breakages in 
other situations), but the new one does not handle properly situations 
in which the script is called from some other path than the scratchbox 
installation path or the path relative to it.

The solution is to use the scripts from their physical location, [1].

Thank you for the information.

In the future, however, I'd encourage you to use bugzilla for these kind 
of reports... :)

Regards,

   Jussi

[1] /scratchbox/sbin/sbox_adduser

Eugene San wrote:
> Hi,
> 
> 
> I was installing scratchbox on fresh machine with Ubuntu when realized 
> that sb-adduser is not working.
> 
> SBOX_DIR guessing is not working in new version of sb-adduser.
> 
> 
> Simple script editing solved the problem:
> 
> 
> Before:
> 
> -----------------------------------------------------
> -sbinpath=`dirname "$0"`
> -if [ "z$sbinpath" = 'z.' ] ; then
> -       sbinpath=`pwd`
> -fi
> 
> -sboxrel=`dirname "$sbinpath"`
> -echo "[$sboxrel]"
> -SBOX_DIR=`readlink -f $sboxrel`
> -echo "[$SBOX_DIR]"
> 
> 
> After:
> 
> -----------------------------------------------------
> 
> +sboxrel=`readlink -f "$0"`
> 
> +SBOX_DIR=`dirname $sboxrel`
> +SBOX_DIR=`dirname $SBOX_DIR`
> 
> 
> P.S. I know it's ugly but working :-)
> 
> 
> Eugene
> 
> _______________________________________________
> Scratchbox-devel mailing list
> Scratchbox-devel at lists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel



More information about the Scratchbox-devel mailing list