RPM Community Forums

Mailing List Message of <rpm-devel>

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

From: Bernhard Rosenkränzer <bero@arklinux.org>
Date: Wed 25 Jun 2008 - 14:00:56 CEST
Message-Id: <200806251401.19746.bero@arklinux.org>
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?

ttyl
bero
Received on Wed Jun 25 14:05:19 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.