[Bug 1062808] Review Request: cvechecker - Command-line utility to scan the system based on CVE data

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

 



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



--- Comment #1 from Pavel Alexeev (aka Pahan-Hubbitus) <pahan@xxxxxxxxxxxxx> ---
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated


Issues:
=======
1) Package installs properly.
  Note: Installation errors (see attachment)
  See: https://fedoraproject.org/wiki/Packaging:Guidelines

  Requires xsltproc wrong and not found in Fedora 20 and rawhide repos
  You should instead require libxslt (prefferable) or direct file
/usr/bin/xsltproc from it

2) GPL licens is incorrect: https://fedoraproject.org/wiki/Licensing:Main
According to site https://sourceforge.net/projects/cvechecker/ it should be
GPLv3 but I'm strictly engourage you to clarify it from author. Also ask them
put correct not empty COPYING file in tarball.

3) Rpmlint also said about it among others:
Checking: cvechecker-3.5-1.fc20.x86_64.rpm
          cvechecker-3.5-1.fc20.src.rpm
cvechecker.x86_64: W: invalid-license GPL
cvechecker.x86_64: E: zero-length /usr/share/doc/cvechecker/COPYING
cvechecker.src: W: invalid-license GPL
cvechecker.src:1: W: mixed-use-of-spaces-and-tabs (spaces: line 1, tab: line 1)
2 packages and 0 specfiles checked; 1 errors, 3 warnings.
4) In %check
make %{?_smp_mflags} check
should be, of comment about justification why parallel make can't be used.

4) userguide.xml recommend use separate group and user. It is on you choose 
but please consider.

5) For what installed userguide.xml? Shouldn't be it converted into something
like html?

6) [-]: Requires correct, justified where necessary.
gawk requires missing, binarie used in scripts cvereport, cvegenversdat,
pullcves (also present file /usr/share/cvechecker/csv2xml.awk)

7) Package functions as described.
(after remove requires xsltproc see before)
$ cvechecker -i
Can't open database /var/cvechecker/local/main.db: unable to open database file

So config should be changed to point on something like
/var/run/cvechecker/main.db, and that ghost file with dir included.

===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[!]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses found:
     "Unknown or generated".

Noone file contain license string.
According to site https://sourceforge.net/projects/cvechecker/ it should be
GPLv3 but I'm strictly engourage you to clarify it from author. Also ask them
put correct not empty COPYING file in tarball.

[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[!]: Package consistently uses macros (instead of hard-coded directory names).

In %check
make %{?_smp_mflags} check
should be, of comment about justification why parrallel make can't be used.

[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[-]: Requires correct, justified where necessary.
gawk requires missing, binarie used in scripts cvereport, cvegenversdat,
pullcves (also present file /usr/share/cvechecker/csv2xml.awk)

[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[-]: Useful -debuginfo package or justification otherwise.
[-]: Package is not known to require an ExcludeArch tag.
     Note: Test run failed
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Test run failed
[x]: Packages must not store files under /srv, /opt or /usr/local
     Note: Test run failed
[+/-]: Package complies to the Packaging Guidelines
Mostly. See other notes.

[x]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the license(s)
     in its own file, then that file, containing the text of the license(s)
     for the package is included in %doc.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: %config files are marked noreplace or the reason is justified.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package use %makeinstall only when make install' ' DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: No %config files under /usr.
[x]: Package do not use a name that already exist
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.

===== SHOULD items =====

Generic:
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[!]: If the source package does not include license text(s) as a separate file
     from upstream, the packager SHOULD query upstream to include it.
Please request fill empty COPYING file.

[x]: Final provides and requires are sane (see attachments).
[!]: Package functions as described.
(after remove requires xsltproc see before)
$ cvechecker -i
Can't open database /var/cvechecker/local/main.db: unable to open database file

So config should be changed to point on something like
/var/run/cvechecker/main.db, and that ghost file with dir included.

[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed files.
[x]: Sources can be downloaded from URI in Source: tag
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: Dist tag is present (not strictly required in GL).
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Uses parallel make %{?_smp_mflags} macro.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.


Requires
--------
cvechecker (rpmlib, GLIBC filtered):
    /bin/bash
    /bin/sh
    config(cvechecker)
    libc.so.6()(64bit)
    libconfig.so.9()(64bit)
    libcrypto.so.10()(64bit)
    libdl.so.2()(64bit)
    libm.so.6()(64bit)
    libmysqlclient.so.18()(64bit)
    libmysqlclient.so.18(libmysqlclient_16)(64bit)
    libpthread.so.0()(64bit)
    libsqlite3.so.0()(64bit)
    libssl.so.10()(64bit)
    libz.so.1()(64bit)
    rtld(GNU_HASH)
    wget
    xsltproc



Provides
--------
cvechecker:
    config(cvechecker)
    cvechecker
    cvechecker(x86-64)



Source checksums
----------------
http://sourceforge.net/projects/cvechecker/files/cvechecker-3.5.tar.gz :
  CHECKSUM(SHA256) this package     :
7d3e0becf23ca3897a3a89c3f913e3b112adda39792417a659684534063c14b9
  CHECKSUM(SHA256) upstream package :
7d3e0becf23ca3897a3a89c3f913e3b112adda39792417a659684534063c14b9

-- 
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]