[opensuse-buildservice] Problems with rpmlint?
I really do not understand a lot of the rpmlint junk. For example in Package python-postfix-policyd-spf (Project home:gerberb) I have in my spec file. # Requires: python cron I have also tried # Requires: python # Requires: cron But I get this error message. python-policyd-spf.noarch: W: missing-dependency-to-cron for logrotate script /etc/cron.d/policyd-spf This package installs a file in /etc/logrotate.d/ or in /etc/cron.*/ but doesn't require cron to be installed. as cron is not part of the essential packages, your package should explicitely require cron to make sure that your logrotate or cron job is executed. But as you can see it does require cron.. There are others, but I just changed the spec file back to the first one above. I am also confused about shbang? Thanks, -- Boyd Gerber <gerberb@zenez.com> ZENEZ 1042 East Fort Union #135, Midvale Utah 84047 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, 14 Aug 2008, Boyd Lynn Gerber wrote:
I really do not understand a lot of the rpmlint junk. For example in
Package python-postfix-policyd-spf (Project home:gerberb)
I have in my spec file.
# Requires: python cron
I have also tried
# Requires: python # Requires: cron
But I get this error message. python-policyd-spf.noarch: W: missing-dependency-to-cron for logrotate script /etc/cron.d/policyd-spf
This package installs a file in /etc/logrotate.d/ or in /etc/cron.*/ but doesn't require cron to be installed. as cron is not part of the essential packages, your package should explicitely require cron to make sure that your logrotate or cron job is executed.
But as you can see it does require cron..
I get ... missing-dependency-to-cron for logrotate script /etc/cron.d/policyd-spf, but I have a Require cron in the spec file as noted above. It seems I am always getting the opposite of what I try to fix. It is like there is no way to appease these rpmlint requirements. For example I get hardcoded-packager-tag Boyd, but when I remove it I get an error that it is missing. The packager tag. There is no %changelog tag in your spec file. To insert it, just insert a '%changelog' in your spec file and rebuild it. but there is a %changelog in my spec file. I get a lot of these. script-without-shebang /usr/lib/policyd-spf/policydspfsupp.py ... I want /usr/share/doc/packages/python-policyd-spf/ directory only with 755 but then I get the files being +x. Forcing a chmod does not seem to fix the rpmlint problem. I want files g+r,o+r in the directories. I get errors no matter what I do, My source untared is exactly the way I want them. I want just a cp -p to be done. what ever I do to fix the error reported, I get the opposite when I do the fix. I am really frustrated with the rpmlint stuff. Any ideas? I have even a bigger problem with games:vultures. I think if I can understand in my playground I can fix them in the other locations. Thanks. -- Boyd Gerber <gerberb@zenez.com> ZENEZ 1042 East Fort Union #135, Midvale Utah 84047 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, 14 Aug 2008 17:01:56 -0600, Boyd Lynn Gerber wrote:
python-policyd-spf.noarch: W: missing-dependency-to-cron for logrotate script /etc/cron.d/policyd-spf
File a bug if you think this to be a real bug.
I get hardcoded-packager-tag Boyd, but when I remove it I get an error that it is missing. The packager tag.
Seems like another bug in rpmlint. I'd suggest to file a second bug report for this.
There is no %changelog tag in your spec file. To insert it, just insert a '%changelog' in your spec file and rebuild it.
but there is a %changelog in my spec file.
That message is misleading. What it does want is a separate file named <pkg_name>.changes containing the changes. See the sources of any official package for the format.
I get a lot of these. script-without-shebang /usr/lib/policyd-spf/policydspfsupp.py
That's because the scripts are missing a #! /usr/bin/python at the top.
I want /usr/share/doc/packages/python-policyd-spf/ directory only with 755 but then I get the files being +x. Forcing a chmod does not seem to fix the rpmlint problem.
Use %attr in your spec. See http://docs.fedoraproject.org/drafts/rpm-guide-en/ch09s05.html#id2972829 for an explanation.
I am really frustrated with the rpmlint stuff.
Yeah, rpmlint can be frustrating at times. Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Philipp Thomas wrote:
On Thu, 14 Aug 2008 17:01:56 -0600, Boyd Lynn Gerber wrote:
python-policyd-spf.noarch: W: missing-dependency-to-cron for logrotate script /etc/cron.d/policyd-spf
File a bug if you think this to be a real bug.
https://bugzilla.novell.com/show_bug.cgi?id=400921 Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, 15 Aug 2008, Philipp Thomas wrote:
I get hardcoded-packager-tag Boyd, but when I remove it I get an error that it is missing. The packager tag.
Seems like another bug in rpmlint. I'd suggest to file a second bug report for this.
https://bugzilla.novell.com/show_bug.cgi?id=401971 Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, 15 Aug 2008, Philipp Thomas wrote:
Use %attr in your spec. See http://docs.fedoraproject.org/drafts/rpm-guide-en/ch09s05.html#id2972829 for an explanation.
I had that at the very start. It does not work. Here is how the stuff unpacks. + /usr/bin/gzip -dc /usr/src/packages/SOURCES/pypolicyd-spf-0.7.1.tar.gz + tar -xvvf - drwxr-xr-x scott/scott 0 2008-07-26 04:01 pypolicyd-spf-0.7.1/ -rw-r--r-- scott/scott 6712 2008-07-26 03:58 pypolicyd-spf-0.7.1/CHANGES -rwxr-xr-x scott/scott 1241 2008-07-26 03:58 pypolicyd-spf-0.7.1/setup.py -rw-r--r-- scott/scott 222 2008-07-26 03:58 pypolicyd-spf-0.7.1/TODO -rw-r--r-- scott/scott 276 2008-07-26 03:58 pypolicyd-spf-0.7.1/policyd-spf.conf -rw-r--r-- scott/scott 5692 2008-07-26 03:58 pypolicyd-spf-0.7.1/policydspfsupp.py -rw-r--r-- scott/scott 1595 2008-07-26 03:58 pypolicyd-spf-0.7.1/README -rw-r--r-- scott/scott 17987 2008-07-26 03:58 pypolicyd-spf-0.7.1/LICENSE -rw-r--r-- scott/scott 9588 2008-07-26 03:58 pypolicyd-spf-0.7.1/policyd-spf.1 -rw-r--r-- scott/scott 16453 2008-07-26 03:58 pypolicyd-spf-0.7.1/policyd-spf.conf.5 -rwxr-xr-x scott/scott 21455 2008-07-26 03:58 pypolicyd-spf-0.7.1/policyd-spf -rw-r--r-- scott/scott 3121 2008-07-26 03:58 pypolicyd-spf-0.7.1/policyd-spf.conf.commented -rw-r--r-- scott/scott 2687 2008-07-26 03:58 pypolicyd-spf-0.7.1/README.per_user_whitelisting + STATUS=0 + '[' 0 -ne 0 ']'
I am really frustrated with the rpmlint stuff.
Yeah, rpmlint can be frustrating at times.
This is a real pain in the ... I can not seem to get past rpmlint %attr(644,nobody,root)%config/usr/lib/policyd-spf/config/policyd-spf.conf %attr(644,nobody,root)%config/usr/lib/policyd-spf/config/policyd-spf.conf.commented %attr(644,nobody,root)%doc README README.per_user_whitelisting LICENSE CHANGES TODO %attr(644,nobody,root)%{_mandir}/man1/policyd-spf.1.gz %attr(644,nobody,root)%{_mandir}/man5/policyd-spf.conf.5.gz and every variation that I could generate. I tried using chmod as below as well. %if 0%{?suse_version} %if %suse_version >= 1100 chmod ugo+X /etc/cron.d/policyd-spf chmod ugo+X /usr/lib/policyd-spf/config/* chmod ugo+X /usr/share/doc/packages/python-policyd-spf/README chmod ugo+X /usr/share/doc/packages/python-policyd-spf/README.per_user_whitelist ing chmod ugo+X /usr/share/doc/packages/python-policyd-spf/LICENSE chmod ugo+X /usr/share/doc/packages/python-policyd-spf/CHANGES chmod ugo+X /usr/share/doc/packages/python-policyd-spf/TODO chmod ugo+X /usr/share/man/man1/policyd-spf.1.gz chmod ugo+X /usr/share/man/man5/policyd-spf.conf.5.gz #README README.per_user_whitelisting LICENSE CHANGES TODO %endif %endif I really do not know what else to try. Any ideas? Thanks, -- Boyd Gerber <gerberb@zenez.com> ZENEZ 1042 East Fort Union #135, Midvale Utah 84047 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
I do not know what changed, but all I did was trigger a rebuild with my last spec file change that was flagged as failed and everything worked. Thanks for all the assistance. -- Boyd Gerber <gerberb@zenez.com> ZENEZ 1042 East Fort Union #135, Midvale Utah 84047 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Boyd Lynn Gerber
-
Dirk Stöcker
-
Michal Marek
-
Philipp Thomas