RPM Community Forums

Mailing List Message of <rpm-lsb>

Re: FILERDEVS contains FILEMODES

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 26 Jan 2008 - 04:19:27 CET
Message-Id: <0530FAA5-EE58-4AD9-987A-BEF1E443B277@mac.com>

On Jan 25, 2008, at 9:20 PM, Jeff Johnson wrote:

>
> I shall re-add (conditioned on --lsb)
>     Requires: rpmlib(PayloadFilesHavePrefix)
> so that lsbpkgchk as distributed by LSB spews less.
>

With this rather modest patch (to be included in rpm-5.0.1),
the lsbpkgchk spew is much reduced (attached):

Index: build/files.c
===================================================================
RCS file: /v/rpm/cvs/rpm/build/files.c,v
retrieving revision 1.312
diff -u -b -B -w -p -r1.312 files.c
--- build/files.c       18 Jan 2008 23:04:05 -0000      1.312
+++ build/files.c       26 Jan 2008 03:14:12 -0000
@@ -1609,6 +1609,11 @@ if (!(_rpmbuildFlags & 4))
      xx = headerPut(h, he, 0);
      he->append = 0;

+if (_rpmbuildFlags & 4) {
+(void) rpmlibNeedsFeature(h, "PayloadFilesHavePrefix", "4.0-1");
+(void) rpmlibNeedsFeature(h, "CompressedFileNames", "3.0.4-1");
+}
+
      compressFilelist(h);

    { int scareMem = 0;

On to diagnose the header+payload md5 check, and perhaps
implement the header-only sha1 test.

73 de Jeff



Received on Sat Jan 26 04:19:35 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.