Skip to content

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

@cwrau

Description

@cwrau

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions