You are not logged in.

#1 2010-07-22 06:49:42

Natanji
Member
Registered: 2009-09-22
Posts: 134

Upgrading certain AUR packages when specific official packages change

I'm having some trouble with updating. As many Archers, I use some packages from AUR. In my case, I'm using bauerbill specifically to update packages from AUR just like I would with pacman. Quite convenient (thx, xyne!)

But I have some packages that need to be rebuild from AUR when certain official packages are updated, e.g. compiling thinkhdaps against the new kernel version, or updating Lightning and Enigmail from AUR when I update my Thunderbird. However, so far I have not yet found a way to do this: calling specific commands when certain packages are changed.

Is there any way to do this in pacman or one of the other arch package managers? Or do you have a clue about how to write a script that could do this? Any help would be greatly appreciated.

Last edited by Natanji (2010-07-22 06:49:54)

Offline

#2 2010-07-22 07:52:43

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Upgrading certain AUR packages when specific official packages change

pacman hooks aren't implemented yet AFAIK. You'd have to do this manually, shouldn't be too many packages anyway.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-07-22 08:01:03

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Upgrading certain AUR packages when specific official packages change

No hooks yet...  we only have a rough design document: http://wiki.archlinux.org/index.php/Use … cman_Hooks

Offline

#4 2010-07-22 09:51:35

Natanji
Member
Registered: 2009-09-22
Posts: 134

Re: Upgrading certain AUR packages when specific official packages change

Okay, then I'll wait till that's added to pacman. wink Good thing you're working on it!

Offline

#5 2010-07-22 13:29:30

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Upgrading certain AUR packages when specific official packages change

Natanji wrote:

Okay, then I'll wait till that's added to pacman. wink Good thing you're working on it!

Not exactly what he said.... but yes, all we can do is wait.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2010-07-22 13:42:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Upgrading certain AUR packages when specific official packages change

Not exactly. Waiting is one of two options - turning the design into code and submitting a patch is the other. smile

Offline

#7 2010-07-22 14:00:49

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: Upgrading certain AUR packages when specific official packages change

You could watch (with inotify) the pacman log for specific applications and events. Turn this into a daemon, and execute relevant commands when application X is updated.

Offline

#8 2010-07-22 17:06:01

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Upgrading certain AUR packages when specific official packages change

dmz wrote:

You could watch (with inotify) the pacman log for specific applications and events. Turn this into a daemon, and execute relevant commands when application X is updated.

But I think that seems to be a problem as you wouldn't know which applications to keep watching since some might need to be re-built, and others might not.

I guess watching every package installed outside of pacman (pacman -Qm) would be the only way to see which AUR package needs to be re-built. Depending on how many packages you have installed from AUR or external sources, this could be very fast to extremely slow.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB