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

If build directory already exists, makepkg fails when trying to creating the build directory again #964

Open
wreedb opened this issue Dec 10, 2024 · 1 comment

Comments

@wreedb
Copy link

wreedb commented Dec 10, 2024

Version: Aura 4.0.8 - installed with the aura package

I was installing an (aur) package today, however I erroneously pressed 'u' at the
:: Proceed with installation? [Y/n] prompt instead of Y or N. Whoops, happens to the best of us.
(This prompt was to install the AUR package directly after being built, the last step in the process)
This caused aura to fail citing:
aura :: A call to pacman -U failed.
Which of course makes perfect sense, that is exactly what happened.

So I ran the installation command again, which was aura -A ov
At this stage the command failed as makepkg was trying to create the build directory again, during the prepare() function.

This makes sense since it's just makepkg failing the build because of the directory already being there.
This happens seemingly regardless of using aura -Ac, which I'm guessing is because it removes the build directory after installation is completed?

The remedy is to go to ~/.cache/aura/builds (or your makepkg.conf BUILDDIR) and remove the directory corresponding to the package.

I think this could be handled a lot more gracefully, but if you disagree, feel free to close the issue (I wont argue).

@fosskers
Copy link
Owner

makepkg is supposed to be invoked in a way that forces the package to be built, but some packages have certain configure steps that violate this assumption. Perhaps -Ac should also clear the build dir before building as well.

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