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

Feature request: Recompile aur packages that depend on updated packages (dependent recompilation) #840

Closed
TheK0tYaRa opened this issue Sep 5, 2024 · 4 comments

Comments

@TheK0tYaRa
Copy link

$ pikaur -Vq
Pikaur v1.27
Pacman v6.1.0 - libalpm v14.0.0 - pyalpm v0.10.6
Description:

For example recently hyprland-git had a dependency update, aquamarine-git, which required the recompilation of hyprland-git for hyprland to run. That is one of many examples why it is needed. I just don't have many personally.

@actionless
Copy link
Owner

such situations should be handled by packager by using versioned dependencies or adding post-upgrade hook

@actionless actionless closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2024
@actionless
Copy link
Owner

@TheK0tYaRa
Copy link
Author

TheK0tYaRa commented Sep 5, 2024

It seems that a hook can't run pacman or something that runs pacman as it runs into the lockfile. Unfortunate.

Please reconsider the feature request as it's kinda impossible to do via hooks. A notification that the package broke doesn't really cut it. Observe my cursed, broken hook:

[Trigger]
Operation = Upgrade
Type = Package
Target = aquamarine-git
Target = hyprutils-git
Target = hyprcursor-git
Target = hyprlang-git

[Action]
Description = Recompile hyprland with current aquamarine
When = PostTransaction
Depends = hyprland
Exec = /usr/bin/sudo -u thek0tyara pikaur -Sa hyprland-git --rebuild --noconfirm

@actionless
Copy link
Owner

yeah, that's the expected behavior

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