You are not logged in.

#1 2009-09-07 11:39:47

shaurz
Member
Registered: 2004-02-02
Posts: 360

Pacman feature request: Rebuild dependencies

Every time I install a new kernel, I have to rebuild the catalyst package (if I forget I have to use a Live CD to disable KDM to boot my system). The same is true for any kernel module package that links into the kernel. I believe this is a flaw in the kernel design (and Linus furiously insists it isn't), but this is not something Arch can fix.

It would be nice if a package could support "rebuild dependencies" so that when a package it depends on is updated, it will be automatically rebuilt and installed. For example, the catalyst package could specify:

rebuilddeps=(kernel26)

And pacman would automatically rebuild it when a new kernel26 is installed. Obviously you would need to keep the PKGBUILD and the downloaded files around so this isn't a quick and easy thing to add, but I believe it would be a great unique feature for Arch to have, and you wouldn't have to update every module package for every minor kernel release.

Offline

#2 2009-09-07 11:57:09

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Pacman feature request: Rebuild dependencies

pacman is a package manager. Having it rebuild, or build in the first place, is outside of scope of pacman.

Perhaps part of the .install script could check for packages that are known to require rebuilding after upgrade and print an alert to you as a reminder?

Offline

#3 2009-09-07 12:07:31

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

Re: Pacman feature request: Rebuild dependencies

May be possible if this ever gets implemented: http://wiki.archlinux.org/index.php/Use … cman_Hooks

Offline

#4 2009-09-07 13:03:44

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Pacman feature request: Rebuild dependencies

fukawi2 wrote:

pacman is a package manager. Having it rebuild, or build in the first place, is outside of scope of pacman...

pacman, though, also handles dependencies.  I don't think that this is unreasonable.  On Gentoo there is a program called module-rebuild that would install any modules linked to the kernel.  I like it.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2009-09-07 13:08:33

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Pacman feature request: Rebuild dependencies

Gen2ly wrote:
fukawi2 wrote:

pacman is a package manager. Having it rebuild, or build in the first place, is outside of scope of pacman...

pacman, though, also handles dependencies.  I don't think that this is unreasonable.  On Gentoo there is a program called module-rebuild that would install any modules linked to the kernel.  I like it.

An external utility sounds fine.

But maybe the existing wrappers to makepkg/abs/etc are already quite close to automate that.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2009-09-07 15:23:32

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

Re: Pacman feature request: Rebuild dependencies

There was DKMS from Dell - actually, seems there still is. It was packaged in the AUR, but it never really caught on here.

Offline

#7 2009-09-07 22:28:32

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Pacman feature request: Rebuild dependencies

Allan wrote:

May be possible if this ever gets implemented: http://wiki.archlinux.org/index.php/Use … cman_Hooks

This would probably be the best solution IMHO.

Gen2ly wrote:

pacman, though, also handles dependencies.  I don't think that this is unreasonable.  On Gentoo there is a program called module-rebuild that would install any modules linked to the kernel.  I like it.

pacman handles dependencies as a package. It doesn't handle the building of dependencies. Building is a job for makepkg, which could be utilized through a pacman hook as per Allan's post.

And this isn't Gentoo wink

Offline

Board footer

Powered by FluxBB