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 Kristian (klausenbusk) - Saturday, 03 June 2023, 18:07 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
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

Closed by  Kristian (klausenbusk)
Saturday, 03 June 2023, 18:07 GMT
Reason for closing:  Upstream
Additional comments about closing:  Please report upstream if this is still relevant: https://gitlab.archlinux.org/archlinux/d evtools.
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 arch-projects@archlinux.org using for example this script https://github.com/falconindy/bin-scripts/blob/master/git-archprojects
./git-archprojects devtools master
git send-mail patch
Comment by Eli Schwartz (eschwartz) - Tuesday, 01 August 2017, 22:09 GMT
This is now relevant to arch-nspawn, and more generally we should have an option to *not* copy the host configuration.  FS#38641  is a related problem.

Loading...