Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf files overwritten in chroot #905

Open
slmb3 opened this issue Dec 6, 2022 · 4 comments
Open

conf files overwritten in chroot #905

slmb3 opened this issue Dec 6, 2022 · 4 comments

Comments

@slmb3
Copy link

slmb3 commented Dec 6, 2022

I set up a chroot env following https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot
When creating the chroot, I used custom config files with mkarchroot -C <pacman.conf> -M <makepkg.conf>

  • When building a package with makechrootpkg -c -r $CHROOT, makepkg uses my custom config files in the chroot with no issue.
  • When building a package with paru -U --chroot=$CHROOT, paru overwrites my config files in the chroot (pacman.conf and makepkg.conf) with those from my system config (/etc/)

Goal: don't have paru overwrite these config files so I can use the ones already existing in my chroot env.

I can workaround the makepkg.conf getting overwritten with --makepkgconf <makepkg.conf> arg with paru command.

But ideally we wouldn't have to re-declare the config file locations every time, and paru should just use the ones existing in the chroot, if available. Or at least paru should have a flag and config to tell it to never copy config files from the system.

@Morganamilo
Copy link
Owner

What reason in particular do you want in the config that's different from your system's config?

@slmb3
Copy link
Author

slmb3 commented Dec 7, 2022

Building packages for other systems mainly. do you have any better recommendations to accomplish the same?

@Morganamilo
Copy link
Owner

Not really. If you mean building for a different arch. Well that doesn't really work iirc. Paru always uses the current config as the local repos are needed to pull in aur depends. So it doesn't allow you to specify your own.

@slmb3
Copy link
Author

slmb3 commented Jan 3, 2023

No I mean building for same arch, just different makepkg.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants