[Rpm-maint] RPM 4.9.1 released!

Panu Matilainen pmatilai at laiskiainen.org
Fri Jul 22 07:10:51 UTC 2011


On 07/21/2011 03:25 PM, Michael Schroeder wrote:
> On Thu, Jul 21, 2011 at 10:53:02AM +0200, Michael Schroeder wrote:
>> Sine commit 23167c3e, everything tagged %dir will get a trailing
>> slash in the file list, breaking lots of things. I've worked around
>> this in the suse package, but a clean fix is probably to pass
>> a "RPMGLOB_ONLYDIR" flag to rpmGlob() instead of adding a trailing
>> slash. (Or change addFile() to strip trailing slashes.)
>
> Update: That
>
> +    if (trailing_slash&&  !fl->isDir)
> +       fl->isDir = -1;
>
> also broke some packages, as fl->isDir != 0 means that rpm
> will not call recurseDir(). Thus a filelist entry like
>
>      /usr/lib/rpm/
>
> will no longer put everything under /usr/lib/rpm in the file
> list.

Yup, it's because this commit is missing from 4.9.1:
http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=27c56c58209ee7c890f34429e030bfdb39105084

As it happens, none of my test-packages happened to have the trailing 
slash so the breakage wasn't caught in time :-/

	- Panu -


More information about the Rpm-maint mailing list