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

paru not using $XDG_CONFIG_HOME/pacman/makepkg.conf inside CHROOT #1283

Open
cwrau opened this issue Nov 29, 2024 · 2 comments · May be fixed by #1289
Open

paru not using $XDG_CONFIG_HOME/pacman/makepkg.conf inside CHROOT #1283

cwrau opened this issue Nov 29, 2024 · 2 comments · May be fixed by #1289

Comments

@cwrau
Copy link

cwrau commented Nov 29, 2024

Affected Version

paru v2.0.3.rebuild.1.r1.g90656a9 - libalpm v15.0.0

Description

I've successfully setup building inside the chroot, but paru doesn't use my $XDG_CONFIG_HOME/pacman/makepkg.conf for building.

This leads to errors, as I've set e.g. PKGEXT='.pkg.tar' which is used locally but not for building, which in turn fails with failed to run: repo-add -R /var/cache/aur-repo/aur.db.tar /var/cache/aur-repo/$package.pkg.tar

As far as I can tell paru mounts /etc/pacman.conf and /etc/makepkg.conf but nothing more.

I know about /etc/makepkg.conf.d/*.conf but putting my makepkg.conf in there doesn't work by itself (I guess it won't be copied?).

Setting the paru.conf option MakepkgConf = /etc/makepkg.conf.d/custom.conf fails completely because this flag expects a full makepkg.conf and not just the changes to the default. (I found this out as I don't have CARCH set, which is set by default).

Manually copying the config inside the chroot to /etc/makepkg.conf.d/custom.conf works a little bit, but ultimately fails because I changed the BUILDDIR inside my makepkg.conf which is not picked up by whatever runs inside the chroot.

paru.conf
makepkg.conf

@Morganamilo
Copy link
Owner

paru-git should also support the .d drop in files. But there's no logic to currently handle makepkg.conf in the home directory.

romanstingler pushed a commit to romanstingler/paru that referenced this issue Dec 12, 2024
Allow users to override makepkg.conf settings by placing a config file
in $XDG_CONFIG_HOME/pacman/makepkg.conf. When present, this config
will be mounted read-only in the chroot at /etc/makepkg.conf.d/xdg.conf,
allowing its settings to take precedence over the base config.

Closes Morganamilo#1283
@romanstingler
Copy link

@cwrau maybe you can try to compile my version and see if it works for you

romanstingler pushed a commit to romanstingler/paru that referenced this issue Dec 17, 2024
Allow users to override makepkg.conf settings by placing a config file
in $XDG_CONFIG_HOME/pacman/makepkg.conf. When present, this config
will be mounted read-only in the chroot at /etc/makepkg.conf.d/xdg.conf,
allowing its settings to take precedence over the base config.

Closes Morganamilo#1283
romanstingler pushed a commit to romanstingler/paru that referenced this issue Dec 17, 2024
Allow users to override makepkg.conf settings by placing a config file
in $XDG_CONFIG_HOME/pacman/makepkg.conf. When present, this config
will be mounted read-only in the chroot at /etc/makepkg.conf.d/xdg.conf,
allowing its settings to take precedence over the base config.

Closes Morganamilo#1283
romanstingler pushed a commit to romanstingler/paru that referenced this issue Dec 25, 2024
Allow users to override makepkg.conf settings by placing a config file
in $XDG_CONFIG_HOME/pacman/makepkg.conf. When present, this config
will be mounted read-only in the chroot at /etc/makepkg.conf.d/xdg.conf,
allowing its settings to take precedence over the base config.

Closes Morganamilo#1283
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

Successfully merging a pull request may close this issue.

3 participants