Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#27544 - [devtools] mkarchroot should use mirror specified in chroot

Attached to Project: Arch Linux
Opened by Bryce Nordgren (bnordgren) - Monday, 12 December 2011, 19:12 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 13 May 2015, 20:13 GMT
Task Type Bug Report
Category Arch Projects
Status Assigned
Assigned To Pierre Schmitz (Pierre)
Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


When initially making a chroot, mkarchroot allows you to specify a makepkg.conf and pacman.conf, as well as a package cache. Subsequent invocations of makechrootpkg should respect the choice of mirror articulated in the custom pacman.conf. Instead, subsequent makechrootpkg invocations always examines the mirror used by the host.

In my situation, the "host" has been held back at a repository snapshot, and I'm trying to recompile the packages I need from the AUR against a more recent snapshot before upgrading.

It's an ez fix: on the first line which attempts to guess at a mirror to use, run pacman inside the chroot instead of on the host system.

Additional info:
* package version(s) = git repo trunk

Steps to reproduce:
* make a pacman.conf which specifies the use of different repositories than what the host uses
* use this custom pacman.conf to create a chroot
* build a package using makechrootpkg.

Note that packages from step 2 come from the repositories you specified in the pacman.conf, and packages installed in step 3 come from the repositories specified by the host.
This task depends upon

Comment by Jelle van der Waa (jelly) - Sunday, 15 September 2013, 11:07 GMT
It might help to rebase the patch and send it to using for example this script
./git-archprojects devtools master
git send-mail patch