Bug 1019603 - Review Request: openlmi-scripts - Client-side python modules and command line utilities
Summary: Review Request: openlmi-scripts - Client-side python modules and command line...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Stephen Gallagher
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1020166
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-16 06:55 UTC by Michal Minar
Modified: 2014-01-10 09:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-10 09:29:13 UTC
Type: ---
Embargoed:
sgallagh: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Michal Minar 2013-10-16 06:55:31 UTC
Spec URL: http://miminar.fedorapeople.org/openlmi-scripts.spec
SRPM URL: http://miminar.fedorapeople.org/openlmi-scripts-0.2.3-1.fc20.src.rpm
Description: Client-side python modules and command line utilities.
Fedora Account System Username: miminar

Comment 1 Stephen Gallagher 2013-10-16 17:51:20 UTC
Sorry, took me longer than I expected to get to this today.

First comment: it doesn't build in mock/Koji. Among other things, the 'make -C doc html' step fails because it's trying to access the internet to pull down 'docopt' and 'lmi'. The 'docopt' issue is easy: you need to add "BuildRequires: python-docopt". The 'lmi' issue is puzzling. You have BuildRequires: openlmi-tools, which pulls in openlmi-python-base, so the 'lmi' module should be available.

After performing a few tests, this looks like a bug in the openlmi-python-base package. It's not registering the 'lmi' module correctly, and thus setuptools doesn't know it is present on the system. I've filed BZ #1019977 to track this.

Other comments:
I'm not sure that the bash completion script should be %config(noreplace). Under what circumstances do we expect a user to modify this?


Nitpicks:
These are all noarch packages. The %{?isa} parts aren't required (though it won't hurt).

Comment 2 Michal Minar 2013-10-17 05:31:25 UTC
Actually this is a bug in openlmi-tools. Their setup.py script has wrong entry in install_requires list. It contains 'lmi' instead of 'openlmi'. Since openlmi-scripts depend on them and all dependencies are checked recursively, it issues this error ('lmi' is not a valid name of any python egg). It's already fixed in upstream. We just have to wait for a release, Until then the /usr/lib/python2.7/site-packages/openlmi_tools-0.7-py2.7.egg-info/requires.txt file needs to be modified to contain 'openlmi' instead of 'lmi'.

Regarding the %config(noreplace), I've just wanted to avoid rpmlint warning. And I've checked with other packages providing completion files. Some of them do declare these files as configs and others not. I agree with you, that marking them as configs is weird. I'll remove those macros.

Thanks for review! I'm gonna fix those issues later today.

Comment 3 Michal Minar 2013-10-17 08:22:42 UTC
Check out new SRPM: http://miminar.fedorapeople.org/openlmi-scripts-0.2.3-3.fc20.src.rpm

All the above errors except for the 'lmi' one should be fixed.

Comment 4 Peter Hatina 2013-10-23 12:35:30 UTC
'lmi' issue should be fixeed by rebase; openlmi-tools-0.8-1.fc21

http://koji.fedoraproject.org/koji/taskinfo?taskID=6090003

Comment 5 Stephen Gallagher 2013-10-25 15:00:49 UTC
Package Review
==============

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


Issues:
=======
- Package installs properly.
  Note: Installation errors (see attachment)
  See: https://fedoraproject.org/wiki/Packaging:Guidelines
  Reviewer's Note: the %{version} macros being used here are evaluating to the
  subpackage version and not the SRPM version. You need to be more explicit and
  create an %{openlmi_script_version} macro.
  
- Source location does not match github guidelines
  See: http://fedoraproject.org/wiki/Packaging:SourceURL#Github

- BuildRequires and Requires must include 'openlmi-tools >= 0.8'

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

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:
     "BSD (2 clause)", "Unknown or generated". 19 files have unknown license.
     Detailed output of licensecheck in /dev/shm/review/openlmi-
     scripts/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package requires other packages for directories it uses.
     Note: No known owner of /etc/openlmi, /usr/share/doc/openlmi-scripts
     Reviewer's note: not the fault of this package
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/doc/openlmi-scripts,
     /etc/openlmi
[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.
[x]: Package consistently uses macros (instead of hard-coded directory names).
[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.
[-]: Package contains systemd file(s) if in need.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 61440 bytes in 11 files.
[!]: Package complies to the Packaging Guidelines
     Reviewer's note: See issues above
[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 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]: Each %files section contains %defattr if rpm < 4.4
[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]: 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.
[x]: Packages must not store files under /srv, /opt or /usr/local

Python:
[x]: Python eggs must not download any dependencies during the build process.
[x]: A package which is used by another package via an egg interface should
     provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Package contains BR: python2-devel or python3-devel
[x]: Binary eggs must be removed in %prep

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

Generic:
[!]: Uses parallel make %{?_smp_mflags} macro.
[-]: If the source package does not include license text(s) as a separate file
     from upstream, the packager SHOULD query upstream to include it.
[!]: Final provides and requires are sane (see attachments).
[-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in openlmi-
     scripts-doc , openlmi-scripts-logicalfile , openlmi-scripts-service ,
     openlmi-scripts-software , openlmi-scripts-storage
[?]: 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
[-]: 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.
[-]: %check is present and all tests pass.
[?]: Packages should try to preserve timestamps of original installed files.
[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]: Dist tag is present (not strictly required in GL).
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

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

Generic:
[!]: Rpmlint is run on all installed packages.
     Note: Mock build failed
     See: http://fedoraproject.org/wiki/Packaging/Guidelines#rpmlint
[x]: Large data in /usr/share should live in a noarch subpackage if package is
     arched.


Installation errors
-------------------
INFO: mock.py version 1.1.33 starting...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Mock Version: 1.1.33
INFO: Mock Version: 1.1.33
Start: lock buildroot
INFO: installing package(s): /dev/shm/review/openlmi-scripts/results/openlmi-scripts-0.2.3-3.fc21.1.noarch.rpm /dev/shm/review/openlmi-scripts/results/openlmi-scripts-doc-0.2.3-3.fc21.1.noarch.rpm /dev/shm/review/openlmi-scripts/results/openlmi-scripts-logicalfile-0.0.1-3.fc21.1.noarch.rpm /dev/shm/review/openlmi-scripts/results/openlmi-scripts-service-0.1.0-3.fc21.1.noarch.rpm /dev/shm/review/openlmi-scripts/results/openlmi-scripts-software-0.2.1-3.fc21.1.noarch.rpm /dev/shm/review/openlmi-scripts/results/openlmi-scripts-storage-0.0.2-3.fc21.1.noarch.rpm
ERROR: Command failed: 
 # ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-rawhide-x86_64/root/', 'install', '/dev/shm/review/openlmi-scripts/results/openlmi-scripts-0.2.3-3.fc21.1.noarch.rpm', '/dev/shm/review/openlmi-scripts/results/openlmi-scripts-doc-0.2.3-3.fc21.1.noarch.rpm', '/dev/shm/review/openlmi-scripts/results/openlmi-scripts-logicalfile-0.0.1-3.fc21.1.noarch.rpm', '/dev/shm/review/openlmi-scripts/results/openlmi-scripts-service-0.1.0-3.fc21.1.noarch.rpm', '/dev/shm/review/openlmi-scripts/results/openlmi-scripts-software-0.2.1-3.fc21.1.noarch.rpm', '/dev/shm/review/openlmi-scripts/results/openlmi-scripts-storage-0.0.2-3.fc21.1.noarch.rpm', '--setopt=tsflags=nocontexts']
Error: Package: openlmi-scripts-logicalfile-0.0.1-3.fc21.1.noarch (/openlmi-scripts-logicalfile-0.0.1-3.fc21.1.noarch)
           Requires: openlmi-scripts = 0.0.1-3.fc21.1
 You could try using --skip-broken to work around the problem
Error: Package: openlmi-scripts-service-0.1.0-3.fc21.1.noarch (/openlmi-scripts-service-0.1.0-3.fc21.1.noarch)
           Requires: openlmi-scripts = 0.1.0-3.fc21.1
Error: Package: openlmi-scripts-software-0.2.1-3.fc21.1.noarch (/openlmi-scripts-software-0.2.1-3.fc21.1.noarch)
           Requires: openlmi-scripts = 0.2.1-3.fc21.1
Error: Package: openlmi-scripts-storage-0.0.2-3.fc21.1.noarch (/openlmi-scripts-storage-0.0.2-3.fc21.1.noarch)
           Requires: openlmi-scripts = 0.0.2-3.fc21.1
 You could try running: rpm -Va --nofiles --nodigest



Rpmlint
-------
Checking: openlmi-scripts-0.2.3-3.fc21.1.noarch.rpm
          openlmi-scripts-doc-0.2.3-3.fc21.1.noarch.rpm
          openlmi-scripts-logicalfile-0.0.1-3.fc21.1.noarch.rpm
          openlmi-scripts-service-0.1.0-3.fc21.1.noarch.rpm
          openlmi-scripts-software-0.2.1-3.fc21.1.noarch.rpm
          openlmi-scripts-storage-0.0.2-3.fc21.1.noarch.rpm
          openlmi-scripts-0.2.3-3.fc21.1.src.rpm
openlmi-scripts.noarch: W: incoherent-version-in-changelog 0.2.3-3 ['0.2.3-3.fc21.1', '0.2.3-3.1']
openlmi-scripts.noarch: W: non-conffile-in-etc /etc/openlmi/scripts/lmi.conf
openlmi-scripts.noarch: W: non-conffile-in-etc /etc/bash_completion.d/lmi.bash
openlmi-scripts.src:10: W: macro-in-comment %{name}
openlmi-scripts.src:10: W: macro-in-comment %{version}
openlmi-scripts.src: W: invalid-url Source0: openlmi-scripts-0.2.3.tar.gz
7 packages and 0 specfiles checked; 0 errors, 6 warnings.




Requires
--------
openlmi-scripts-software (rpmlib, GLIBC filtered):
    openlmi-scripts
    python(abi)

openlmi-scripts-storage (rpmlib, GLIBC filtered):
    openlmi-scripts
    python(abi)

openlmi-scripts (rpmlib, GLIBC filtered):
    /bin/bash
    /usr/bin/python
    openlmi-providers
    openlmi-python-base
    openlmi-tools
    python(abi)
    python-docopt
    python2

openlmi-scripts-doc (rpmlib, GLIBC filtered):

openlmi-scripts-logicalfile (rpmlib, GLIBC filtered):
    openlmi-scripts
    python(abi)

openlmi-scripts-service (rpmlib, GLIBC filtered):
    openlmi-scripts
    python(abi)



Provides
--------
openlmi-scripts-software:
    openlmi-scripts-software

openlmi-scripts-storage:
    openlmi-scripts-storage

openlmi-scripts:
    openlmi-scripts

openlmi-scripts-doc:
    openlmi-scripts-doc

openlmi-scripts-logicalfile:
    openlmi-scripts-logicalfile

openlmi-scripts-service:
    openlmi-scripts-service



Generated by fedora-review 0.5.0 (920221d) last change: 2013-08-30
Command line :/usr/bin/fedora-review -m fedora-rawhide-x86_64 -r -n /home/bos/sgallagh/rpmbuild/SRPMS/openlmi-scripts-0.2.3-3.fc20.1.src.rpm
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Python, Shell-api
Disabled plugins: Java, C/C++, SugarActivity, Perl, R, PHP, Ruby
Disabled flags: EPEL5, EXARCH, DISTTAG

Comment 6 Michal Minar 2013-10-29 09:27:46 UTC
Thank you Steve,

hopefully it's all covered in new SRPM:
  http://miminar.fedorapeople.org/openlmi-scripts-0.2.3-4.fc20.src.rpm

Comment 7 Stephen Gallagher 2013-10-29 12:40:30 UTC
Almost :)

You added the versioned "openlmi-tools >= 0.8" to the "Requires:", but you *really* need it there for the BuildRequires: as well. Make that change and I'll approve.

Comment 8 Michal Minar 2013-10-29 12:48:40 UTC
Oops, forgot about that one. Thanks!
Please try another SRPM:
  http://miminar.fedorapeople.org/openlmi-scripts-0.2.3-5.fc20.src.rpm

Comment 9 Stephen Gallagher 2013-10-29 13:11:59 UTC
Package is approved. Please file an SCM admin request next:

http://fedoraproject.org/wiki/Package_SCM_admin_requests

Comment 10 Michal Minar 2013-10-29 13:20:30 UTC
New Package SCM Request
=======================
Package Name: openlmi-scripts
Short Description: Client-side python modules and command line utilities.
Owners: miminar
Branches: f19 f20
InitialCC:

Comment 11 Gwyn Ciesla 2013-10-30 12:03:31 UTC
Git done (by process-git-requests).


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