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

PKGDEST modification prevents to update the configuration #199

Open
Anarky opened this issue Jul 30, 2024 · 1 comment
Open

PKGDEST modification prevents to update the configuration #199

Anarky opened this issue Jul 30, 2024 · 1 comment
Labels

Comments

@Anarky
Copy link
Contributor

Anarky commented Jul 30, 2024

General description of the problem:

If the PKGDEST variable is modified in the makepkg configuration, aconfmgr fails to find the first AUR package it compiles, preventing to update the configuration.

I found the offending line in common.bash#L1415, the directory path is hardcoded.

I can fix the issue and send a PR, but since 6.1.0 makepkg can have drop-ins inside /etc/makepkg.conf.d, it would mean to parse them too?

Steps to reproduce the problem:

  1. Edit /etc/makepkg.conf
  2. Change the PKGDEST variable e.g. /tmp/makepkg/_pkg
  3. Check the configuration $ aconfmgr save

Configuration:

No response

Expected result:

aconfmgr updates the configuration.

Actual result:

aconfmgr stops after the first compiled AUR package.

Log:

Unable to find package file for package foo!

Additional context:

No response

@Anarky Anarky added the bug label Jul 30, 2024
@CyberShadow
Copy link
Owner

Maybe makepkg provides a facility to dump its parsed configuration? Or, we can override this configuration value for builds done by aconfmgr?

makepkg support is really only there to bootstrap the user's preferred AUR helper.

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

No branches or pull requests

2 participants