[gobolinux-users] rootless, osx, and having to manually set up
Lucas C. Villa Real
lucasvr at gobolinux.org
Sun Feb 11 14:01:34 UTC 2007
On 2/8/07, Erick Tryzelaar <erickt at dslextreme.com> wrote:
> Erick Tryzelaar wrote:
> > Hello again,
> >
> > I'm now running into an issue getting Compile to work on the mac. First
> > off, it appears that the Compile.conf file isn't getting put into the
> > ~/System/Settings/Compile directory. Is this expected, or a consequence
> > of me running rootless on a mac? Second, even after I copy
> > ~/Programs/Compile/Current/Resources/Defaults/Settings/Compile/Compile.conf
> > into ~/.Settings/Compile, it errors out with this:
>
> I found my problem. CreateRootlessEnvironment installs Scripts version
> 2.5.6, but the Compile that "InstallPackage Compile" installs depends on
> Scripts version 2.6.2. Is there any way "Compile" could depend on a
> later version of "Scripts" so that this would be automatically updated?
>
> I've also found that I need a couple more of the gnu commands, instead
> of the bsd / mac ones:
>
> chmod, chown, cp, find, md5sum, readlink, sed, seq, sha1sum
>
> I've also found an issue trying to run "Compile Mtail". This is because
> of the case insensitivity but preserving mac os filesystem. When Compile
> tries to run "SignPackage Mtail 1.1.1", it does it in the directory
> "${goboPrefix}/Files/Compile/Sources/mtail-1.1.1". In this directory is
> the file "mtail". In the script SignPackage, there's this code block:
>
> if [ -f "$(Arg 1)" ]
> then
> filepath=`readlink -f $(Arg 1)`
> bn=`basename $filepath`
> package=`Get_Token "$bn" "--" "0"`
> version=`Get_Token "$bn" "--" "1"`
> prefix=$goboTemp
> [ -d $prefix/$package/$version ] && rm -rf $prefix/$package/$version
> Log_Normal "Unpacking $filepath at $prefix..."
> tar -C$prefix -xvjf $filepath
> sudo_exec=""
> sudo_validate=""
> [ -d $prefix/$package/$version ] || Die "Error unpacking $filepath
> ($package $version)"
> else
> ...
>
> The problem is that while Arg 1 is "Mtail", because the filesystem is
> case insensitive, it's finding the script "mtail", and going into this
> branch instead of the other. Anyone have any idea how to do a test that
> fails if the found file has a different case?
Hmmm.. what if we do "filepath=`readlink -f $goboPrograms/$(Arg 1)`"
instead? Does it work for you?
--
Lucas
powered by /dev/dsp
More information about the gobolinux-users
mailing list