[opensuse-packaging] Weird rpmlint warnings
![](https://seccdn.libravatar.org/avatar/1d9647aea6c3224f85cf1f361035d660.jpg?s=120&d=mm&r=g)
Hi, with new rpmlint, I started getting some new warnings, some of them are quite weird IMO: -------- 1) prereq is deprecated: PreReq: info This comes from PreReq: %install_info_prereq , which is suggested by packaging conventions. [1] Does the warning mean that the PreReq: could be safely replaced with Requires: ? [2] If so, the packaging conventions should be updated to reflect this. -------- 2) W: source-or-patch-not-compressed bz2 parted-mac.patch I really doubt it makes any sense to compress most of the patches. I think this warning should be disabled (or at least applied only if the patch is bigger than some treshold). -------- 3) W: manpage-not-compressed bz2 /usr/share/man/man8/parted.8.gz W: infopage-not-compressed bz2 /usr/share/info/parted.info.gz These two are really funny especially given it is some RPM/build magic that (AFAIK) does the compression - apparently using gzip. [1] http://en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Macros#3.11._.... [2] http://www.rpm.org/max-rpm-snapshot/s1-rpm-depend-manual-dependencies.html Petr -- Petr Uzel, openSUSE Boosters Team IRC: ptr_uzl @ freenode -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/3a766c4a0b64a5d1b06b4a786d5e3a9e.jpg?s=120&d=mm&r=g)
On Friday 02 April 2010 10:18:39 am Petr Uzel wrote:
Hi,
with new rpmlint, I started getting some new warnings, some of them are quite weird IMO:
-------- 1) prereq is deprecated: PreReq: info
This comes from PreReq: %install_info_prereq , which is suggested by packaging conventions. [1]
Does the warning mean that the PreReq: could be safely replaced with Requires: ? [2]
If so, the packaging conventions should be updated to reflect this.
The correct form is Requires(pre): - even if it's not documented (but what is in rpm packaging world :-/) so the packaging documentation should be updated.
-------- 2) W: source-or-patch-not-compressed bz2 parted-mac.patch
I really doubt it makes any sense to compress most of the patches. I think this warning should be disabled (or at least applied only if the patch is bigger than some treshold).
Agree, I don't see any big reason to have bzipped patches - the saved amount of storage will be minimal.
-------- 3) W: manpage-not-compressed bz2 /usr/share/man/man8/parted.8.gz W: infopage-not-compressed bz2 /usr/share/info/parted.info.gz
These two are really funny especially given it is some RPM/build magic that (AFAIK) does the compression - apparently using gzip.
+1 - why rpmlint complains about something done by rpmbuild internally? Regards Michal Vyskocil
![](https://seccdn.libravatar.org/avatar/a769262fe9a53e49df65ec5fbf8f5de9.jpg?s=120&d=mm&r=g)
On Friday 02 April 2010, Petr Uzel wrote:
with new rpmlint, I started getting some new warnings, some of them are quite weird IMO:
Those are bugs, now fixed. Thanks for your report ! Greetings, Dirk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/e59fceda04e2c8d8c993a975a5657d9e.jpg?s=120&d=mm&r=g)
On 04/02/2010 10:18 AM, Petr Uzel wrote:
1) prereq is deprecated: PreReq: info
This comes from PreReq: %install_info_prereq , which is suggested by packaging conventions. [1]
Does the warning mean that the PreReq: could be safely replaced with Requires: ? [2]
You should replace it with Requires(phase) where "phase" is pre/post/preun/postun/whatever phase requires the package.
If so, the packaging conventions should be updated to reflect this.
The document you linked is unmaintained since 2005. Please use http://en.opensuse.org/Packaging/Scriptlet_Snippets and other pages in /Packaging namespace.
W: source-or-patch-not-compressed bz2 parted-mac.patch
I really doubt it makes any sense to compress most of the patches. I think this warning should be disabled (or at least applied only if the patch is bigger than some treshold).
I'm pretty sure there is some threshold (maybe 50k, not sure). -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Boosters Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/a769262fe9a53e49df65ec5fbf8f5de9.jpg?s=120&d=mm&r=g)
On Friday 02 April 2010, Pavol Rusnak wrote:
The document you linked is unmaintained since 2005. Please use http://en.opensuse.org/Packaging/Scriptlet_Snippets and other pages in /Packaging namespace.
. which are also not mentioning how to correctly handle info pages.
W: source-or-patch-not-compressed bz2 parted-mac.patch I'm pretty sure there is some threshold (maybe 50k, not sure).
There wasn't as the patch for that wasn't rediffed. Fixed now. Greetings, Dirk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Dirk Müller
-
Michal Vyskocil
-
Pavol Rusnak
-
Petr Uzel