RPM Community Forums

Mailing List Message of <rpm-devel>

Re: rpm5 incompatibility with old rpm: globs no longer include dangling symlinks

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 25 Jun 2008 - 14:17:10 CEST
Message-id: <BDA4689A-AD38-4301-BE1F-387C8EC14A09@mac.com>

On Jun 25, 2008, at 8:00 AM, Bernhard Rosenkränzer wrote:

> In older rpm versions, this spec fragment would cause %_bindir/ 
> someapp to be
> included:
>
> %install
> make install
> # consolehelper comes from a different package, therefore the symlink
> # being created here is dangling
> ln -s consolehelper $RPM_BUILD_ROOT%_bindir/someapp
>
> %files
> %_bindir/*
>
>
> In 5.1.4 (and probably older rpm5 versions), the dangling symlink  
> is omitted
> and listed in "warning: Installed (but unpackaged) file(s) found".
> Probably an lstat() somewhere was changed to stat()...
>
> Listing %_bindir/someapp explicitly still packages it.
>
> Is this an intentional change (because dangling symlinks can be rather
> unwanted), or a bug?
>

RPM uses internal glob to maintain compatibility, not for portability.

The incompatibility was introduced several years ago when glibc, not  
rpm, changed.

73 de Jeff
Received on Wed Jun 25 14:17:32 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.