[Scratchbox-devel] sb-adduser broken in 1.0.8

Jussi Hakala jussi.hakala at movial.fi
Fri Aug 24 10:45:08 EEST 2007


A snapshot in which the problem has been resolved is available (core, 
libs, toolchain-host) from [1]. There are other goodies as well, like a 
snapshot of the cputransp devkit containing cvs version of qemu.

The original problem occurs only if you use the symlinks in debian 
package and/or your /scratchbox directory is a symlink which points to 
another location.

Regards,

   Jussi

[1] http://scratchbox.org/~jhakala/unofficial/

Jussi Hakala wrote:
> 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
> 
> _______________________________________________
> 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