On Sun, May 31, 2009 at 8:48 AM, Baho Utot <baho-utot@xxxxxxxxxxxxxxx> wrote: > On Sun, 2009-05-31 at 23:37 +1000, Allan McRae wrote: >> Allan McRae wrote: >> > Baho Utot wrote: >> >> I am Building in a clean chroot according to the wiki >> >> >> >> The Chroot sub-directory is /home/Chroot/root >> >> >> >> I have set SRCDEST="/sources" in the makepkg in /home/Chroot/root/etc >> >> and then >> >> mkdir /home/Chroot/root/sources chmod 777 /home/Chroot/root/sources >> >> >> >> Is this correct to get makepkg to store the sources in that >> >> sub-directory? >> >> >> >> It presently doesn't work for me or I did something wrong. >> >> >> >> Can anyone help? >> >> >> > >> > As far as makepkg goes, it should store the sources in /sources. But >> > my guess is makechrootpkg is moving the source files from there to the >> > directory you launched it from. Have not actually looked at this though. >> >> Or an even better explanation (which also could be wrong), it puts them >> in the rw portion of the union filesystem and that gets cleared. >> >> I think the message to take from this is that this setup will probably >> not work... >> >> Allan >> >> > > Ok I'll have to fix my build script to do it makechrootpkg is setup to handle this OUTSIDE the chroot. That is, if you want to use the above paths, you can set SRCDEST=/home/Chroot/root/sources in /etc/makepkg.conf Then you don't need to touch the makepkg.conf under the chroot at all (except for the PACKAGER variable, heh)