SPECS: kernel-desktop.spec - removed source symlink from -module-b...

Elan Ruusamäe glen at delfi.ee
Mon Feb 11 23:08:00 CET 2008


On Monday 11 February 2008 23:51, Jakub Bogusz wrote:
> On Mon, Feb 11, 2008 at 11:37:58PM +0200, Elan Ruusamäe wrote:
> > On Monday 11 February 2008 23:03, hawk wrote:
> > > Author: hawk                         Date: Mon Feb 11 21:03:48 2008 GMT
> > > Module: SPECS                         Tag: HEAD
> > > ---- Log message:
> > > - removed source symlink from -module-build, causes unfixable broken
> > > deps like: /home/users/builder/rpm/BUILD/linux-2.6.22 is needed by
> > > kernel-desktop-module-build-2.6.22.18-1.i68 - build symlink back to
> > > kernel package otherwise -module-build requires main kernel package to
> > > be installed which is IMO overkill
> > > - release 2
> >
> > so now main kernel package requires kernel-module-build, kernel-headers
> > which is another overkill....
>
> That symlink should exist only if both packages are installed.
> It could be %ghost created in %post, but unfortunately (if things didn't
> change since rpm 4.0.x) there is no support for %ghost(missingok) or so...

package them as %ghost (regular files) and creating symlinks in -module-build 
package (so removing will be done by rpm)

this should do, but creates dead symlinks if kernel package doesn't exist.

but maybe triggerin on to module-build package? can there strict 
name-version-release dep be used?

and yeah, somewhy symlinks if packaged as %ghost require linkto exist. once 
asked about this on #rpm and jbj said to use regular files for %ghost.

-- 
glen


More information about the pld-devel-en mailing list