Bug 1321455 - Review Request: knot-resolver - Caching full DNS Resolver
Summary: Review Request: knot-resolver - Caching full DNS Resolver
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomáš Hozza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-27 11:38 UTC by Jan Včelák
Modified: 2016-05-23 11:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-23 11:32:37 UTC
Type: ---
Embargoed:
thozza: fedora-review+


Attachments (Terms of Use)

Comment 1 Tomáš Hozza 2016-04-05 08:23:38 UTC
Package Review
==============

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


Issues:
=======
- Package does not contain duplicates in %files.
  Note: warning: File listed twice: /var/lib/kresd/root.keys
  See: http://fedoraproject.org/wiki/Packaging/Guidelines#DuplicateFiles

  - I think this is because %files section contains line:
  %attr(755,kresd,kresd) %{_sharedstatedir}/kresd
  but should instead contain
  %attr(755,kresd,kresd) %dir %{_sharedstatedir}/kresd


- Packages should try to preserve timestamps of original installed
  files.
  
  - Consider using "-p" option when calling install command


- Files outside of /usr SHOULD be owned by root:root
  (https://fedoraproject.org/wiki/Packaging:Guidelines#File_Permissions)

  - Please explain why is UID and GID of files and dirs in /etc and /var/lib/
  set to kresd. Usually other DNS daemons have files installed in these locations
  with UID root and GID specific to that daemon. Please consider changing the
  UID of files and directories to root.


- Fully versioned dependency in subpackages if applicable.
  Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in knot-
  resolver-devel

  - %{?isa} is used instead of %{?_isa}. Please fix this.


- Once you resolve issues with building the documentation, please package is
  as well, because currently there is no man page for the daemon.


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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
     - This is OK, since these are just modules not in ld path!
[x]: Header files in -devel subpackage, if present.
[x]: ldconfig called in %post and %postun if required.
[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.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "MIT/X11 (BSD like)", "GPL (v3 or later)", "Unknown or
     generated", "*No copyright* MIT/X11 (BSD like)". 66 files have unknown
     license. Detailed output of licensecheck in /home/thozza/tmp/1321455
     -knot-resolver/licensecheck.txt
     - This is OK, since these are pieces of code with less strict license
     as GPLv3. Most of them are from CCAN repository.
[x]: License file installed when any subpackage combination is installed.
[x]: %build honors applicable compiler flags or justifies otherwise.
     - Not using -Wp, but it is justified.
[x]: Package contains no bundled libraries without FPC exception.
     - Only small snippets from CCAN are included, these are not and can not
     be packaged as separate software in Fedora. Direct use of the code is expected.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[x]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
     - %{alphatag} macro could be used also in Release, since it is used
     in Source0
[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.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[x]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 4 files.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
[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 %license.
[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]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[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]: Package does not use a name that already exists.
[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.
[x]: Packages must not store files under /srv, /opt or /usr/local

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

Generic:
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[!]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in knot-
     resolver-devel
     - %{?isa} is used instead of %{?_isa}
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: SourceX tarball generation or download is documented.
     Note: Package contains tarball without URL, check comments
     - creation of tarball is documented
[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.
[!]: Packages should try to preserve timestamps of original installed
     files.
     - Consider using "-p" option when calling install command
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[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]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Uses parallel make %{?_smp_mflags} macro.
[x]: The placement of pkgconfig(.pc) files are correct.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: knot-resolver-1.0.0-0.1.beta3.fc25.x86_64.rpm
          knot-resolver-devel-1.0.0-0.1.beta3.fc25.x86_64.rpm
          knot-resolver-1.0.0-0.1.beta3.fc25.src.rpm
knot-resolver.x86_64: W: non-standard-uid /etc/kresd kresd
knot-resolver.x86_64: W: non-standard-gid /etc/kresd kresd
knot-resolver.x86_64: W: non-standard-uid /var/lib/kresd kresd
knot-resolver.x86_64: W: non-standard-gid /var/lib/kresd kresd
knot-resolver.x86_64: W: non-standard-uid /var/lib/kresd/root.keys kresd
knot-resolver.x86_64: W: non-standard-gid /var/lib/kresd/root.keys kresd
knot-resolver.x86_64: W: non-standard-uid /etc/kresd/config kresd
knot-resolver.x86_64: W: non-standard-gid /etc/kresd/config kresd
knot-resolver.x86_64: W: no-manual-page-for-binary kresd
knot-resolver-devel.x86_64: W: only-non-binary-in-usr-lib
knot-resolver-devel.x86_64: W: no-documentation
knot-resolver.src: W: strange-permission config 640
knot-resolver.src: W: invalid-url Source0: knot-resolver-1.0.0-beta3.tar.xz
3 packages and 0 specfiles checked; 0 errors, 13 warnings.

- FILES OUTSIDE OF /usr SHOULD BE OWNED BY root:root (https://fedoraproject.org/wiki/Packaging:Guidelines#File_Permissions)


Rpmlint (debuginfo)
-------------------
Checking: knot-resolver-debuginfo-1.0.0-0.1.beta3.fc25.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.





Rpmlint (installed packages)
----------------------------
sh: /usr/bin/python: No such file or directory
knot-resolver.x86_64: W: non-standard-uid /etc/kresd/config kresd
knot-resolver.x86_64: W: non-standard-gid /etc/kresd/config kresd
knot-resolver.x86_64: W: non-standard-uid /var/lib/kresd/root.keys kresd
knot-resolver.x86_64: W: non-standard-gid /var/lib/kresd/root.keys kresd
knot-resolver.x86_64: W: non-standard-uid /etc/kresd kresd
knot-resolver.x86_64: W: non-standard-gid /etc/kresd kresd
knot-resolver.x86_64: W: non-standard-uid /var/lib/kresd kresd
knot-resolver.x86_64: W: non-standard-gid /var/lib/kresd kresd
knot-resolver.x86_64: W: no-manual-page-for-binary kresd
knot-resolver-devel.x86_64: W: only-non-binary-in-usr-lib
knot-resolver-devel.x86_64: W: no-documentation
3 packages and 0 specfiles checked; 0 errors, 11 warnings.



Requires
--------
knot-resolver (rpmlib, GLIBC filtered):
    /bin/sh
    config(knot-resolver)
    libc.so.6()(64bit)
    libdl.so.2()(64bit)
    libdnssec.so.1()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libhiredis.so.0.13()(64bit)
    libknot.so.2()(64bit)
    libkres.so.1()(64bit)
    libluajit-5.1.so.2()(64bit)
    libmemcached.so.11()(64bit)
    libmemcachedutil.so.2()(64bit)
    libnsl.so.1()(64bit)
    libpthread.so.0()(64bit)
    librt.so.1()(64bit)
    libuv.so.1()(64bit)
    libzscanner.so.1()(64bit)
    rtld(GNU_HASH)
    shadow-utils
    systemd

knot-resolver-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    knot-resolver
    libkres.so.1()(64bit)



Provides
--------
knot-resolver:
    config(knot-resolver)
    knot-resolver
    knot-resolver(x86-64)
    libkres.so.1()(64bit)

knot-resolver-devel:
    knot-resolver-devel
    knot-resolver-devel(x86-64)
    pkgconfig(libkres)



Unversioned so-files
--------------------
knot-resolver: /usr/lib64/kdns_modules/cachectl.so
knot-resolver: /usr/lib64/kdns_modules/hints.so
knot-resolver: /usr/lib64/kdns_modules/kmemcached.so
knot-resolver: /usr/lib64/kdns_modules/redis.so
knot-resolver: /usr/lib64/kdns_modules/stats.so

- THIS IS OK, SINCE THESE ARE JUST MODULES FOR THE DAEMON

Generated by fedora-review 0.6.0 (3c5c9d7) last change: 2015-05-20
Command line :/usr/bin/fedora-review -v -b 1321455 -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Shell-api, C/C++
Disabled plugins: Java, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP, Ruby
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Comment 2 Jan Včelák 2016-04-09 06:37:47 UTC
Thank you. Updated.

Spec URL: https://jvcelak.fedorapeople.org/review/knot-resolver/1.0.0-0.2.79a8440/knot-resolver.spec
SRPM URL: https://jvcelak.fedorapeople.org/review/knot-resolver/1.0.0-0.2.79a8440/knot-resolver-1.0.0-0.2.79a8440.fc23.src.rpm


(In reply to Tomas Hozza from comment #1)
> - Package does not contain duplicates in %files.
>   Note: warning: File listed twice: /var/lib/kresd/root.keys
>   See: http://fedoraproject.org/wiki/Packaging/Guidelines#DuplicateFiles

Fixed.
 
> - Packages should try to preserve timestamps of original installed
>   files.

Fixed.
   
> - Files outside of /usr SHOULD be owned by root:root
>   (https://fedoraproject.org/wiki/Packaging:Guidelines#File_Permissions)

I've changed UID to root where possible. And kept GID to kresd where necessary. Files inside /var/lib are state information and have to be writable by the daemon.

> - Fully versioned dependency in subpackages if applicable.
>   Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in knot-
>   resolver-devel

Fixed.

> - Once you resolve issues with building the documentation, please package is
>   as well, because currently there is no man page for the daemon.

The documentation building can't be fixed easily. The RTD theme cannot be loaded by Python 2 Sphinx on Fedora, and Breathe is incompatible with Python 3.

I've updated the package to current git master because some of the building issues were resolved. The manual page is now installed. And unit tests results are temporarily ignored (one failure is present and should be fixed in the gold release).

Comment 3 Tomáš Hozza 2016-04-15 15:16:05 UTC
(In reply to Jan Včelák from comment #2)
> Thank you. Updated.
> 
> Spec URL:
> https://jvcelak.fedorapeople.org/review/knot-resolver/1.0.0-0.2.79a8440/knot-
> resolver.spec
> SRPM URL:
> https://jvcelak.fedorapeople.org/review/knot-resolver/1.0.0-0.2.79a8440/knot-
> resolver-1.0.0-0.2.79a8440.fc23.src.rpm
> 
> 
> (In reply to Tomas Hozza from comment #1)
> > - Package does not contain duplicates in %files.
> >   Note: warning: File listed twice: /var/lib/kresd/root.keys
> >   See: http://fedoraproject.org/wiki/Packaging/Guidelines#DuplicateFiles
> 
> Fixed.
>  
> > - Packages should try to preserve timestamps of original installed
> >   files.
> 
> Fixed.
>    
> > - Files outside of /usr SHOULD be owned by root:root
> >   (https://fedoraproject.org/wiki/Packaging:Guidelines#File_Permissions)
> 
> I've changed UID to root where possible. And kept GID to kresd where
> necessary. Files inside /var/lib are state information and have to be
> writable by the daemon.
> 
> > - Fully versioned dependency in subpackages if applicable.
> >   Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in knot-
> >   resolver-devel
> 
> Fixed.
> 
> > - Once you resolve issues with building the documentation, please package is
> >   as well, because currently there is no man page for the daemon.
> 
> The documentation building can't be fixed easily. The RTD theme cannot be
> loaded by Python 2 Sphinx on Fedora, and Breathe is incompatible with Python
> 3.
> 
> I've updated the package to current git master because some of the building
> issues were resolved. The manual page is now installed. And unit tests
> results are temporarily ignored (one failure is present and should be fixed
> in the gold release).

Thank you for resolving the issues.

The package is APPROVED for Fedora.

Comment 4 Gwyn Ciesla 2016-05-03 12:26:33 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/knot-resolver

Comment 5 Fedora Update System 2016-05-05 12:32:08 UTC
knot-resolver-1.0.0-0.3.4f463d7.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-efe8c69614

Comment 6 Fedora Update System 2016-05-05 12:32:17 UTC
knot-resolver-1.0.0-0.3.4f463d7.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-436db6426f

Comment 7 Fedora Update System 2016-05-06 11:27:51 UTC
knot-resolver-1.0.0-0.3.4f463d7.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-436db6426f

Comment 8 Fedora Update System 2016-05-06 20:57:03 UTC
knot-resolver-1.0.0-0.3.4f463d7.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-efe8c69614

Comment 9 Fedora Update System 2016-05-10 11:47:03 UTC
knot-resolver-1.0.0-0.3.4f463d7.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2016-05-20 23:53:53 UTC
knot-resolver-1.0.0-0.3.4f463d7.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.