[Bug 1022584] Review Request: qpid-qmf - The QPID Management Framework

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

 



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



--- Comment #9 from Zbigniew Jędrzejewski-Szmek <zbyszek@xxxxxxxxx> ---
(In reply to Darryl L. Pierce from comment #8)
> Regarding polluting the global namespace, I'm not sure how that's occurring
> with _cqmf2.so being in the root directory for site packages. Since you
> still have to specifically import the package, the code within does not wind
> up in an unnamed space. Instead, that shared library is loaded by the
> cqmf2.py file which requires the library be in the same directory.
> 
> Doing the following:
> 
> $ sudo yum whatprovides /usr/lib64/python2.7/site-packages/*.so
> 
> shows there are many, many other packages that are also deliver shared
> libraries in the root directory. So that doesn't seem to be a Bad Thing
> (tm). :D
I still think it's very ugly, and should be avoided. But it's an upstream
issue, not something that is subject during package review, if the package
actually works. Still I'd strongly suggest to move the modules under a common
namespace at some point.

Package Review
==============

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

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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.
     Note: See rpmlint output
[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.
[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)

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:
     "Apache (v2.0)", "Unknown or generated", "*No copyright* Apache (v2.0)".
     16 files have unknown license. Detailed output of licensecheck in
     /home/zbyszek/fedora/1022584-qpid-qmf/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[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.
[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).
[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.
[x]: 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]: 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 20480 bytes in 2 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.
     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]: 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.
[-]: 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:
[-]: 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).
[!]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise justified.
[x]: Scriptlets must be sane, if used.
[-]: 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.
[x]: Packages should try to preserve timestamps of original installed files.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[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]: Fully versioned dependency in subpackages if applicable.
[x]: Uses parallel make %{?_smp_mflags} macro.
[x]: The placement of pkgconfig(.pc) files are correct.
[x]: SourceX tarball generation or download is documented.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

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

Generic:
[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: qpid-qmf-0.24-13.fc19.x86_64.rpm
          qpid-qmf-devel-0.24-13.fc19.x86_64.rpm
          python-qpid-qmf-0.24-13.fc19.x86_64.rpm
          ruby-qpid-qmf-0.24-13.fc19.x86_64.rpm
          qpid-qmf-0.24-13.fc19.src.rpm
qpid-qmf.x86_64: W: spelling-error %description -l en_US scalability ->
availability, sociability, implacability
qpid-qmf.x86_64: W: no-manual-page-for-binary qmf-tool
qpid-qmf-devel.x86_64: W: no-documentation
qpid-qmf-devel.x86_64: W: no-manual-page-for-binary qmf-gen
python-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/python2.7/site-packages/_qmfengine.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
python-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/python2.7/site-packages/_cqmf2.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
python-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/python2.7/site-packages/_cqpid.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
python-qpid-qmf.x86_64: W: no-documentation
python-qpid-qmf.x86_64: E: non-executable-script
/usr/lib/python2.7/site-packages/qpidtoollibs/disp.py 0644L /usr/bin/env
Please remove the shebang line.

ruby-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/ruby/vendor_ruby/cqpid.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
ruby-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/ruby/vendor_ruby/cqmf2.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
ruby-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/ruby/vendor_ruby/qmfengine.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
ruby-qpid-qmf.x86_64: W: no-documentation
qpid-qmf.src: W: spelling-error %description -l en_US scalability ->
availability, sociability, implacability
5 packages and 0 specfiles checked; 7 errors, 7 warnings.

Apart from /usr/lib/python2.7/site-packages/qpidtoollibs/disp.py, rest looks
OK.


Rpmlint (installed packages)
----------------------------
# rpmlint ruby-qpid-qmf python-qpid-qmf qpid-qmf-devel qpid-qmf
ruby-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/ruby/vendor_ruby/cqpid.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
ruby-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/ruby/vendor_ruby/cqmf2.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
ruby-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/ruby/vendor_ruby/qmfengine.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
ruby-qpid-qmf.x86_64: W: no-documentation
python-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/python2.7/site-packages/_qmfengine.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
python-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/python2.7/site-packages/_cqmf2.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
python-qpid-qmf.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/python2.7/site-packages/_cqpid.so
['/builddir/build/BUILD/qpid-0.24/cpp/src']
python-qpid-qmf.x86_64: W: no-documentation
python-qpid-qmf.x86_64: E: non-executable-script
/usr/lib/python2.7/site-packages/qpidtoollibs/disp.py 0644L /usr/bin/env
qpid-qmf-devel.x86_64: W: no-documentation
qpid-qmf-devel.x86_64: W: no-manual-page-for-binary qmf-gen
qpid-qmf.x86_64: W: spelling-error %description -l en_US scalability ->
availability, sociability, implacability
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf.so.1.0.0
/lib64/libqmfengine.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf.so.1.0.0
/lib64/libuuid.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf.so.1.0.0
/lib64/libboost_system-mt.so.1.53.0
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf.so.1.0.0
/lib64/libboost_program_options-mt.so.1.53.0
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf.so.1.0.0
/lib64/libdl.so.2
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf.so.1.0.0
/lib64/librt.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf.so.1.0.0
/lib64/libm.so.6
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf2.so.1.0.0
/lib64/libqpidclient.so.2
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf2.so.1.0.0
/lib64/libuuid.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf2.so.1.0.0
/lib64/libboost_system-mt.so.1.53.0
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf2.so.1.0.0
/lib64/libboost_program_options-mt.so.1.53.0
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf2.so.1.0.0
/lib64/libdl.so.2
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf2.so.1.0.0
/lib64/librt.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libqmf2.so.1.0.0
/lib64/libm.so.6
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfengine.so.1.1.0 /lib64/libqpidtypes.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfengine.so.1.1.0 /lib64/libuuid.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfengine.so.1.1.0 /lib64/libboost_system-mt.so.1.53.0
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfengine.so.1.1.0 /lib64/libboost_program_options-mt.so.1.53.0
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfengine.so.1.1.0 /lib64/libdl.so.2
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfengine.so.1.1.0 /lib64/librt.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfengine.so.1.1.0 /lib64/libm.so.6
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfconsole.so.2.0.0 /lib64/libqpidtypes.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfconsole.so.2.0.0 /lib64/libuuid.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfconsole.so.2.0.0 /lib64/libboost_system-mt.so.1.53.0
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfconsole.so.2.0.0 /lib64/libboost_program_options-mt.so.1.53.0
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfconsole.so.2.0.0 /lib64/libdl.so.2
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfconsole.so.2.0.0 /lib64/librt.so.1
qpid-qmf.x86_64: W: unused-direct-shlib-dependency
/usr/lib64/libqmfconsole.so.2.0.0 /lib64/libm.so.6
qpid-qmf.x86_64: W: no-manual-page-for-binary qmf-tool
4 packages and 0 specfiles checked; 7 errors, 34 warnings.
# echo 'rpmlint-done:'



Requires
--------
ruby-qpid-qmf (rpmlib, GLIBC filtered):
    /sbin/ldconfig
    libboost_program_options-mt.so.1.53.0()(64bit)
    libboost_system-mt.so.1.53.0()(64bit)
    libc.so.6()(64bit)
    libdl.so.2()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libm.so.6()(64bit)
    libqmf.so.1()(64bit)
    libqmf2.so.1()(64bit)
    libqmfconsole.so.2()(64bit)
    libqmfengine.so.1()(64bit)
    libqpidclient.so.2()(64bit)
    libqpidcommon.so.2()(64bit)
    libqpidmessaging.so.2()(64bit)
    libqpidtypes.so.1()(64bit)
    librt.so.1()(64bit)
    libruby.so.2.0()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libuuid.so.1()(64bit)
    qpid-qmf(x86-64)
    rtld(GNU_HASH)

python-qpid-qmf (rpmlib, GLIBC filtered):
    /sbin/ldconfig
    libboost_program_options-mt.so.1.53.0()(64bit)
    libboost_system-mt.so.1.53.0()(64bit)
    libc.so.6()(64bit)
    libdl.so.2()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libm.so.6()(64bit)
    libpython2.7.so.1.0()(64bit)
    libqmf.so.1()(64bit)
    libqmf2.so.1()(64bit)
    libqmfconsole.so.2()(64bit)
    libqmfengine.so.1()(64bit)
    libqpidclient.so.2()(64bit)
    libqpidcommon.so.2()(64bit)
    libqpidmessaging.so.2()(64bit)
    libqpidtypes.so.1()(64bit)
    librt.so.1()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libuuid.so.1()(64bit)
    python(abi)
    qpid-qmf(x86-64)
    rtld(GNU_HASH)

qpid-qmf-devel (rpmlib, GLIBC filtered):
    /sbin/ldconfig
    /usr/bin/env
    /usr/bin/pkg-config
    libqmf.so.1()(64bit)
    libqmf2.so.1()(64bit)
    libqmfconsole.so.2()(64bit)
    libqmfengine.so.1()(64bit)
    python(abi)
    qpid-cpp-client-devel(x86-64)
    qpid-qmf(x86-64)

qpid-qmf (rpmlib, GLIBC filtered):
    /sbin/ldconfig
    /usr/bin/python
    libboost_program_options-mt.so.1.53.0()(64bit)
    libboost_system-mt.so.1.53.0()(64bit)
    libc.so.6()(64bit)
    libdl.so.2()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libm.so.6()(64bit)
    libpthread.so.0()(64bit)
    libqmfengine.so.1()(64bit)
    libqpidclient.so.2()(64bit)
    libqpidcommon.so.2()(64bit)
    libqpidmessaging.so.2()(64bit)
    libqpidtypes.so.1()(64bit)
    librt.so.1()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.1)(64bit)
    libuuid.so.1()(64bit)
    python-qpid
    qpid-cpp-client(x86-64)
    rtld(GNU_HASH)



Provides
--------
ruby-qpid-qmf:
    libcqmf2_ruby.so()(64bit)
    libcqpid_ruby.so()(64bit)
    libqmfengine_ruby.so()(64bit)
    ruby-qpid-qmf
    ruby-qpid-qmf(x86-64)

python-qpid-qmf:
    python-qpid-qmf
    python-qpid-qmf(x86-64)

qpid-qmf-devel:
    pkgconfig(qmf2)
    qpid-qmf-devel
    qpid-qmf-devel(x86-64)

qpid-qmf:
    libqmf.so.1()(64bit)
    libqmf2.so.1()(64bit)
    libqmfconsole.so.2()(64bit)
    libqmfengine.so.1()(64bit)
    qpid-qmf
    qpid-qmf(x86-64)



Unversioned so-files
--------------------
python-qpid-qmf: /usr/lib64/python2.7/site-packages/_cqmf2.so
python-qpid-qmf: /usr/lib64/python2.7/site-packages/_cqpid.so
python-qpid-qmf: /usr/lib64/python2.7/site-packages/_qmfengine.so
ruby-qpid-qmf: /usr/lib64/ruby/vendor_ruby/cqmf2.so
ruby-qpid-qmf: /usr/lib64/ruby/vendor_ruby/cqpid.so
ruby-qpid-qmf: /usr/lib64/ruby/vendor_ruby/qmfengine.so

That's OK.

Source checksums
----------------
http://www.apache.org/dist/qpid/0.24/qpid-0.24.tar.gz :
  CHECKSUM(SHA256) this package     :
af62a8f551f3f9eb99d460f7fc417bba8d9900b9d6cf0902fc7e01a25d8c8fcd
  CHECKSUM(SHA256) upstream package :
af62a8f551f3f9eb99d460f7fc417bba8d9900b9d6cf0902fc7e01a25d8c8fcd

In the spec, the part starting with 
"# removes private-shared-object-provides warning"
seems to duplicate %__provides_exclude_from.

Hm, package still doesn't seem to work:
With just qpid-qmf installed:
% /usr/bin/qmf-tool
Traceback (most recent call last):
  File "/usr/bin/qmf-tool", line 31, in <module>
    import cqpid
ImportError: No module named cqpid

Please also fix the shebang line on /usr/bin/qmf-gen.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
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]