[Bug 1036320] Review Request: nftables - Netfilter Tables userspace utillites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1036320



--- Comment #2 from Michael Schwendt <bugs.michael@xxxxxxx> ---
Starting with "fedora-review -b 1036320", which finds a few issues:

GPL (v2 or later) (with incorrect FSF address)
----------------------------------------------
/var/lib/mock/fedora-rawhide-x86_64/root/builddir/build/BUILD/nftables-20131202/include/rbtree.h
/var/lib/mock/fedora-rawhide-x86_64/root/builddir/build/BUILD/nftables-20131202/src/rbtree.c


A closer look (at the file COPYING) reveals:

| nftables is distributed under the terms of the GPL version 2.
| Note that *only* version 2 of the GPL applies, not "any later
| version".

So, that trumps the "or later" clause in the rbtree.* source files and the spec
file ought to be "License: GPLv2".

 *
https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#.22or_later_version.22_licenses

 *
https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Clarification

 * https://fedoraproject.org/wiki/Common_Rpmlint_issues#incorrect-fsf-address


> nftables.x86_64: W: incoherent-version-in-changelog 0-0.2
> ['0-0.2.20131202git.fc21', '0-0.2.20131202git']

True.


> nftables.x86_64: E: executable-marked-as-config-file /etc/nftables/ipv6-filter
> nftables.x86_64: E: wrong-script-interpreter /etc/nftables/ipv6-filter nft
> nftables.x86_64: E: executable-marked-as-config-file /etc/nftables/ipv6-nat
> nftables.x86_64: E: wrong-script-interpreter /etc/nftables/ipv6-nat nft
> nftables.x86_64: E: executable-marked-as-config-file /etc/nftables/ipv4-mangle
> nftables.x86_64: E: wrong-script-interpreter /etc/nftables/ipv4-mangle nft
> nftables.x86_64: E: executable-marked-as-config-file /etc/nftables/bridge-filter
> nftables.x86_64: E: wrong-script-interpreter /etc/nftables/bridge-filter nft
> nftables.x86_64: E: executable-marked-as-config-file /etc/nftables/ipv4-filter
> nftables.x86_64: E: wrong-script-interpreter /etc/nftables/ipv4-filter nft
> nftables.x86_64: E: executable-marked-as-config-file /etc/nftables/ipv6-mangle
> nftables.x86_64: E: wrong-script-interpreter /etc/nftables/ipv6-mangle nft
> nftables.x86_64: E: executable-marked-as-config-file /etc/nftables/ipv4-nat
> nftables.x86_64: E: wrong-script-interpreter /etc/nftables/ipv4-nat nft

Tough ones by design. Rpmlint tells:

'''Executables must not be marked as config files because that may
prevent upgrades from working correctly. If you need to be able to
customize an executable, make it for example read a config file in
/etc/sysconfig.''',


The interpreter "nft" without path /usr/sbin is fragile.


> nftables.x86_64: W: no-manual-page-for-binary nft

build.log contains something that could be related:

checking for docbook2x-man... n
configure: WARNING: docbookx2-man not found, no manpages will be built
checking for db2pdf... n
configure: WARNING: db2pdf not found, no PDF manpages will be built


> %install
> rm -rf $RPM_BUILD_ROOT

Killing buildroot is only needed for EL5:
https://fedoraproject.org/wiki/Packaging:Guidelines#BuildRoot_tag


> %config(noreplace) %{_sysconfdir}/nftables

A growing number of packagers add a trailing slash to such lines in %files to
be explicit that this is not a single file but a directory:

%config(noreplace) %{_sysconfdir}/nftables/


> build.log

Build output is non-verbose, so one cannot see/verify preprocessor definitions
and compiler optflags. This is because in Makefile.rules (at the very bottom)
it explicitly calls "$(MAKE) -s" for the subdirs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]