El Wed, 02 May 2007 12:01:11 +0200
"Jonas Karlsson" <[EMAIL PROTECTED]> escribió

> On Wed, 02 May 2007 11:46:23 +0200, Aitor Pérez Iturri  
> <[EMAIL PROTECTED]> wrote:
> 
> > Hi all.
> >
> > I'm looking the code for ChrootCompile.
> >
> > Function create_root tries to create at the end a symlink to a non
> > existent directory:
> >
> >      ln -nfs .. $rootdir/$prefix
> >
> > rootdir as been yet set to $1/$2 where $1 is set to:
> >     "/Mount/HDB1/Epia/Bootstrap/chroot/Area-UClibc-0.9.26-r2/"
> > and $2 is set to:
> >     "/Mount/HDB2/System/Epia-C3/"
> >
> > Is this a type and the symlink should be created as:
> >      ln -nfs .. `echo $rootdir | cut -d"/" -f2-`
> >
> > or the command is fine, the should exec before the ln command:a
> >     local tmp=$rootdir/$prefix
> >     mkdir -p ${tmp%/*}
> >     ln -nfs .. $rootdir/$prefix
> >
> > I think the problem comes because i'm not using standard places to
> > make the compile.
> >
> The problem comes from that you probably have configured the  
> 'cross_prefix_dir' setting in your cross compilation configure file
> to be an absolute path, while it's supposed to be a _prefix_.
> 

I think that the default value for prefix is /System/ArchName
("/System/ARM") and when the last symlink is created $rootdir/System
exists yet (it has been created by create_root) so the symlink is
created as $rootdir/System/ARM and everything works fine.

In my case $prefix is not directly under "/System", it's under a more
complicated tree (/Mount/HDB2/System), and the path does not exists.
I need to add this command:
        mkdir -p ${rootdir}/${prefix%/*}

and now i get the next symlink:
 ${rootdir}/Mount/HDB2/System/Epia-C3 -> ..

where rootdir == ${root}/${prefix}a
and ${prefix} == ${crossprefixdir}

Greets,
Aitor
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to