[arch-general] makepkgchroot

Ionut Biru ibiru at archlinux.org
Fri Jun 17 13:53:07 EDT 2011

On 06/17/2011 08:38 PM, Myra Nelson wrote:
> I'm attempting to set up a clean chroot to build packages in. I've followed the
> instructions on the wiki page
> https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot.
> I've read all the posts on the forum, than man pages, and the mailing lists
> (I may have missed something) and haven't found any answer to my problem;
> Steps to recreate:

<wipe everything>

quick todo. simple way

sudo extra-x86-64-build or sudo extra-i686-build

does the clean chroots in /var/tmp and it does two things
1) if chroot doesn't exists it will create and start compiling
2) if chroot exists, clean the chroot and start compilation.

the schemas for chroots are like this:
/path/to/chroot/root - the clean one
/path/to/chroot/$usr - the one that is used for compilation and gets clean

now, if you want to modify mirrorlist from chroot take in consideration 
that is taken from system /etc/pacman.d/mirrorlist first mirror.

now depending of what you want to modify in makepkg.conf some variables 
can be read and exported inside chroot from ~/.makepkg.conf like 

for pacman.conf you should edit /path/to/chroot/root/etc/pacman.conf

to use makechrootpkg use makechrootpkg -rc /path/to/chroot without 
specify anything else and  mkarchroot wants a /path/to/chroot/root as 


More information about the arch-general mailing list