[gobolinux-users] RootLess on FreeBSD

Benjamin Bruheim grolgh at gmail.com
Fri Mar 9 17:50:46 UTC 2007


Heh, it makes perfect sense. If PATH is not included in the python
source CheckDependencies.py generates those errors. The shellscripts
works fine (or should set PATH). Without PATH existing they generate
those errors since "dependencies_cache" depends on the input of
$goboUserSetting whatever that is? Not sure quite. But ensuring PATH
always is set (in .bashrc?) seems right.



On 3/9/07, marco.cagnoli at oltrelinux.com <marco.cagnoli at oltrelinux.com> wrote:
> >> > What happens when you run 'basename
> >> > lib/python2.3/site-packages/GuessLatest.py' from inside your Scripts
> >> > dir?
> >>
> >> [phed at web ~/Programs/Scripts/Current]$ basename
> >> lib/python2.3/site-packages/GuessLatest.py
> >> GuessLatest.py
> >
> > Strange, maybe the problem is in '*.py'? I don't know.
>
> Why is it strange, Lucas?
> I am experimenting very similar problems with Rootless (in linux) and I
> have the same result from the basename command.
> I am investigating the problem and I discovered something very strange:
>
> - if I try to compile Scripts (cvs version) with "make all", with a
> previous version of Rootless installed (my base system is not gobo), I can
> compile it
>
> - if I disable Rootless (I comment the StartRootless line in .bashrc) I
> obtain following errors from "make all"
>
> gobo at mcagnoli-laptop:~/Desktop/Scripts$ make all
> for f in FindPackage GetAvailable GuessLatest CheckDependencies
> DescribeProgram; \
>         do libf=lib/python2.3/site-packages/$f.py; \
>            rm -f $libf; ln -nfs ../../../bin/$f $libf; \
>         done
> cd lib/python2.3/site-packages && \
>         for f in *.py; \
>         do python -c "import `basename $f .py`"; \
>         done
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "CheckDependencies.py", line 43, in ?
>     os.makedirs(global_dependencies_cache_dir)
>   File "/usr/lib/python2.4/os.py", line 159, in makedirs
>     mkdir(name, mode)
> OSError: [Errno 13] Permission denied: '/dependencies_cache/'
> sed -i~ "s/CURRENT_SCRIPTS_VERSION=.*#/CURRENT_SCRIPTS_VERSION="" #/g"
> bin/CreateRootlessEnvironment
> rm -f bin/CreateRootlessEnvironment~
> cd src; make all
> make[1]: Entering directory `/home/gobo/Desktop/Scripts/src'
> gcc -O2 -Wall -o SuperUserName SuperUserName.c
> gcc -O2 -Wall -o IsExecutable IsExecutable.c
> gcc -O2 -Wall -o usleep usleep.c
>
> - after some investigation, I discovered that everything works fine if I
> manually export PATH containing gobo directories (I needn't all Previous
> Rootless but only path)
>
> PATH=/home/gobo/Rootless/System/Links/Executables:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:.
>
> Any idea?
>
> Marco
>
> this is the
> > On 3/8/07, Benjamin Bruheim <grolgh at gmail.com> wrote:
> >> > > $libf; ln -nfs ../../../bin/$f $libf;  done
> >> > > cd lib/python2.3/site-packages &&  for f in *.py;  do python -c
> >> > > "import `basename $f .py`";  done
> >> > > Syntax error: Bad substitution
> >> > > Syntax error: Bad substitution
> >> > > Syntax error: Bad substitution
> >> >
> >> > What happens when you run 'basename
> >> > lib/python2.3/site-packages/GuessLatest.py' from inside your Scripts
> >> > dir?
> >>
> >> [phed at web ~/Programs/Scripts/Current]$ basename
> >> lib/python2.3/site-packages/GuessLatest.py
> >> GuessLatest.py
> >
> > Strange, maybe the problem is in '*.py'? I don't know.
> >
> >> > > gcc -O2 -Wall -o List List.c
> >> > > List.c:32:27: sys/statfs.h: No such file or directory
> >> > > List.c:33:24: sys/vfs.h: No such file or directory
> >> > List.c is very Linux dependent now. I would need access to a BSD
> >> > account to have it ported, or you can try to do that yourself if you
> >> > want to. I just don't have the time right now to do that.
> >>
> >> Is it required for operation of rootless?
> >
> > No, it's just a fancy "ls".
> >
> > --
> > Lucas
> > powered by /dev/dsp
> > _______________________________________________
> > gobolinux-users mailing list
> > gobolinux-users at lists.gobolinux.org
> > http://lists.gobolinux.org/mailman/listinfo/gobolinux-users
> >
>
>
> _______________________________________________
> gobolinux-users mailing list
> gobolinux-users at lists.gobolinux.org
> http://lists.gobolinux.org/mailman/listinfo/gobolinux-users
>


More information about the gobolinux-users mailing list