[Bug 1445411] Review Request: python-cysignals - Interrupt and signal handling for Cython

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

 



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



--- Comment #3 from Jerry James <loganjerry@xxxxxxxxx> ---
Package Review
==============

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

Issues:
=======
- Header files in -devel subpackage, if present.
  Note: python2-cysignals : /usr/lib64/python2.7/site-
  packages/cysignals/debug.h python2-cysignals : /usr/lib64/python2.7/site-
  packages/cysignals/macros.h python2-cysignals : /usr/lib64/python2.7
  /site-packages/cysignals/pxi.h python2-cysignals : /usr/lib64/python2.7
  /site-packages/cysignals/signals.h python2-cysignals :
  /usr/lib64/python2.7/site-packages/cysignals/signals_api.h
  python2-cysignals : /usr/lib64/python2.7/site-
  packages/cysignals/struct_signals.h python3-cysignals :
  /usr/lib64/python3.6/site-packages/cysignals/debug.h python3-cysignals :
  /usr/lib64/python3.6/site-packages/cysignals/macros.h python3-cysignals :
  /usr/lib64/python3.6/site-packages/cysignals/pxi.h python3-cysignals :
  /usr/lib64/python3.6/site-packages/cysignals/signals.h python3-cysignals
  : /usr/lib64/python3.6/site-packages/cysignals/signals_api.h
  python3-cysignals : /usr/lib64/python3.6/site-
  packages/cysignals/struct_signals.h
  See: http://fedoraproject.org/wiki/Packaging/Guidelines#DevelPackages.
  Also, is it really necessary to install the .pxd and .pxi files?

- %{?python_provide:%python_provide python3-%{modname}} is missing from the
  python3 package

- The cysignals-CSI script has a shebang that invokes /usr/bin/env.  It should
  invoke the correct python interpreter directly instead.

- Shouldn't the license be LGPLv3+?

- The license file is not installed if only the -doc subpackage is installed.

- The -doc subpackage doesn't own /usr/share/doc/python-cysignals, and neither
  does any other subpackage.

- I assume the intent is to unbundle this package from sagemath.  Is that
  right?  If so, the fact that sagemath also owns
  /usr/lib64/python2.7/site-packages/cysignals can be ignored.

- The changelog is missing.

- The URL field is missing.  It should probably point to either
  http://cysignals.readthedocs.io/en/latest/ or
  https://github.com/sagemath/cysignals.

- The latest version is 1.6.4.

- The package checks for the emms assembly instruction.  That's okay on
  x86_64, where it is universally available, and also okay on non-x86
  architectures, where it is universally unavailable.  However, on i386, that
  instruction may be detected on the builders and compiled in, but we can't
  guarantee that all i386 users have that instruction available.  Somehow, use
  of that instruction has to be disabled for i386 builds.

- The spec file uses both tabs and spaces.

- /usr/share/doc/python-cysignals/html/.buildinfo can be excluded from the
  -doc subpackage.

===== 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.
[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: "*No copyright* LGPL (v3 or later)", "LGPL (v3 or later)", "GPL
     (v3)", "Unknown or generated". 20 files have unknown license.
[!]: License file installed when any subpackage combination is installed.
[!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/doc/python-cysignals
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/doc/python-
     cysignals
[!]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by: /usr/lib64/python2.7/site-
     packages/cysignals(sagemath-core)
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[!]: 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]: Useful -debuginfo package or justification otherwise.
[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 20480 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.
     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 %license.
[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]: 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 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

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:
[-]: 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).
[x]: Fully versioned dependency in subpackages if applicable.
[x]: Package functions as described.
[!]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: 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]: 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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

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

Generic:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Spec file as given by url is not the same as in SRPM (see
     attached diff).
     See: (this test has no URL)
[x]: Rpmlint is run on debuginfo package(s).
     Note: There are rpmlint messages (see attachment).
[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.


Rpmlint
-------
Checking: python2-cysignals-1.3.2-1.fc27.x86_64.rpm
          python3-cysignals-1.3.2-1.fc27.x86_64.rpm
          python-cysignals-doc-1.3.2-1.fc27.x86_64.rpm
          python-cysignals-debuginfo-1.3.2-1.fc27.x86_64.rpm
          python-cysignals-1.3.2-1.fc27.src.rpm
python2-cysignals.x86_64: E: no-changelogname-tag
python2-cysignals.x86_64: W: no-url-tag
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/signals.h
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/debug.h
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/pxi.h
python2-cysignals.x86_64: E: script-without-shebang
/usr/bin/cysignals-CSI-helper.py
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/struct_signals.h
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/macros.h
python2-cysignals.x86_64: W: hidden-file-or-dir /usr/lib/.build-id
python2-cysignals.x86_64: W: hidden-file-or-dir /usr/lib/.build-id
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/signals_api.h
python2-cysignals.x86_64: W: no-manual-page-for-binary cysignals-CSI-helper.py
python2-cysignals.x86_64: W: no-manual-page-for-binary cysignals-CSI
python3-cysignals.x86_64: E: no-changelogname-tag
python3-cysignals.x86_64: W: no-url-tag
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/signals_api.h
python3-cysignals.x86_64: E: script-without-shebang
/usr/bin/cysignals-CSI-helper.py
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/macros.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/struct_signals.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/signals.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/debug.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/pxi.h
python3-cysignals.x86_64: W: hidden-file-or-dir /usr/lib/.build-id
python3-cysignals.x86_64: W: hidden-file-or-dir /usr/lib/.build-id
python3-cysignals.x86_64: W: no-manual-page-for-binary cysignals-CSI-helper.py
python3-cysignals.x86_64: W: no-manual-page-for-binary cysignals-CSI
python-cysignals-doc.x86_64: E: no-changelogname-tag
python-cysignals-doc.x86_64: W: no-url-tag
python-cysignals-doc.x86_64: W: hidden-file-or-dir
/usr/share/doc/python-cysignals/html/.buildinfo
python-cysignals-debuginfo.x86_64: E: no-changelogname-tag
python-cysignals-debuginfo.x86_64: W: no-url-tag
python-cysignals.src: E: no-changelogname-tag
python-cysignals.src: W: no-url-tag
python-cysignals.src:30: W: mixed-use-of-spaces-and-tabs (spaces: line 30, tab:
line 1)
5 packages and 0 specfiles checked; 7 errors, 27 warnings.




Rpmlint (debuginfo)
-------------------
Checking: python-cysignals-debuginfo-1.3.2-1.fc27.x86_64.rpm
python-cysignals-debuginfo.x86_64: E: no-changelogname-tag
python-cysignals-debuginfo.x86_64: W: no-url-tag
1 packages and 0 specfiles checked; 1 errors, 1 warnings.





Rpmlint (installed packages)
----------------------------
python-cysignals-doc.x86_64: E: no-changelogname-tag
python-cysignals-doc.x86_64: W: no-url-tag
python-cysignals-doc.x86_64: W: hidden-file-or-dir
/usr/share/doc/python-cysignals/html/.buildinfo
python3-cysignals.x86_64: E: no-changelogname-tag
python3-cysignals.x86_64: W: no-url-tag
python3-cysignals.x86_64: E: script-without-shebang
/usr/bin/cysignals-CSI-helper.py
python3-cysignals.x86_64: W: hidden-file-or-dir /usr/lib/.build-id
python3-cysignals.x86_64: W: hidden-file-or-dir /usr/lib/.build-id
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/debug.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/macros.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/pxi.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/signals.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/signals_api.h
python3-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python3.6/site-packages/cysignals/struct_signals.h
python3-cysignals.x86_64: W: no-manual-page-for-binary cysignals-CSI
python3-cysignals.x86_64: W: no-manual-page-for-binary cysignals-CSI-helper.py
python2-cysignals.x86_64: E: no-changelogname-tag
python2-cysignals.x86_64: W: no-url-tag
python2-cysignals.x86_64: E: script-without-shebang
/usr/bin/cysignals-CSI-helper.py
python2-cysignals.x86_64: W: hidden-file-or-dir /usr/lib/.build-id
python2-cysignals.x86_64: W: hidden-file-or-dir /usr/lib/.build-id
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/debug.h
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/macros.h
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/pxi.h
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/signals.h
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/signals_api.h
python2-cysignals.x86_64: W: devel-file-in-non-devel-package
/usr/lib64/python2.7/site-packages/cysignals/struct_signals.h
python2-cysignals.x86_64: W: no-manual-page-for-binary cysignals-CSI
python2-cysignals.x86_64: W: no-manual-page-for-binary cysignals-CSI-helper.py
python-cysignals-debuginfo.x86_64: E: no-changelogname-tag
python-cysignals-debuginfo.x86_64: W: no-url-tag
4 packages and 0 specfiles checked; 6 errors, 25 warnings.



Diff spec file in url and in SRPM
---------------------------------
--- /home/jamesjer/1445411-python-cysignals/srpm/python-cysignals.spec   
2017-04-25 17:36:46.029203940 -0600
+++ /home/jamesjer/1445411-python-cysignals/srpm-unpacked/python-cysignals.spec
   2017-04-24 08:31:19.000000000 -0600
@@ -79,16 +79,16 @@
 %license LICENSE
 %doc PKG-INFO README.rst
-%{_bindir}/%{modname}-CSI
-%{_bindir}/%{modname}-CSI-helper.py
-%{python2_sitearch}/%{modname}
-%{python2_sitearch}/%{modname}-*.egg-info
+%{_bindir}/cysignals-CSI
+%{_bindir}/cysignals-CSI-helper.py
+%{python2_sitearch}/cysignals
+%{python2_sitearch}/cysignals-*.egg-info

 %files        -n python3-%{modname}
 %license LICENSE
 %doc PKG-INFO README.rst
-%{_bindir}/%{modname}-CSI
-%{_bindir}/%{modname}-CSI-helper.py
-%{python3_sitearch}/%{modname}
-%{python3_sitearch}/%{modname}-*.egg-info
+%{_bindir}/cysignals-CSI
+%{_bindir}/cysignals-CSI-helper.py
+%{python3_sitearch}/cysignals
+%{python3_sitearch}/cysignals-*.egg-info

 %files        doc


Requires
--------
python-cysignals-doc (rpmlib, GLIBC filtered):

python3-cysignals (rpmlib, GLIBC filtered):
    /usr/bin/python
    libc.so.6()(64bit)
    libpari-gmp.so.5()(64bit)
    libpthread.so.0()(64bit)
    libpython3.6m.so.1.0()(64bit)
    python(abi)
    rtld(GNU_HASH)

python2-cysignals (rpmlib, GLIBC filtered):
    /usr/bin/python
    libc.so.6()(64bit)
    libpari-gmp.so.5()(64bit)
    libpthread.so.0()(64bit)
    libpython2.7.so.1.0()(64bit)
    python(abi)
    rtld(GNU_HASH)

python-cysignals-debuginfo (rpmlib, GLIBC filtered):



Provides
--------
python-cysignals-doc:
    python-cysignals-doc
    python-cysignals-doc(x86-64)

python3-cysignals:
    python3-cysignals
    python3-cysignals(x86-64)
    python3.6dist(cysignals)
    python3dist(cysignals)

python2-cysignals:
    python-cysignals
    python-cysignals(x86-64)
    python2-cysignals
    python2-cysignals(x86-64)
    python2.7dist(cysignals)
    python2dist(cysignals)

python-cysignals-debuginfo:
    python-cysignals-debuginfo
    python-cysignals-debuginfo(x86-64)



Unversioned so-files
--------------------
python2-cysignals: /usr/lib64/python2.7/site-packages/cysignals/alarm.so
python2-cysignals: /usr/lib64/python2.7/site-packages/cysignals/pselect.so
python2-cysignals: /usr/lib64/python2.7/site-packages/cysignals/signals.so
python2-cysignals: /usr/lib64/python2.7/site-packages/cysignals/tests.so
python3-cysignals:
/usr/lib64/python3.6/site-packages/cysignals/alarm.cpython-36m-x86_64-linux-gnu.so
python3-cysignals:
/usr/lib64/python3.6/site-packages/cysignals/pselect.cpython-36m-x86_64-linux-gnu.so
python3-cysignals:
/usr/lib64/python3.6/site-packages/cysignals/signals.cpython-36m-x86_64-linux-gnu.so
python3-cysignals:
/usr/lib64/python3.6/site-packages/cysignals/tests.cpython-36m-x86_64-linux-gnu.so

Source checksums
----------------
https://github.com/sagemath/cysignals/releases/download/1.3.2/cysignals-1.3.2.tar.bz2
:
  CHECKSUM(SHA256) this package     :
82418186d6cd1ca6ec16f6d5dab5487fc57ddea1356cd7d0228e8862635ca0d1
  CHECKSUM(SHA256) upstream package :
82418186d6cd1ca6ec16f6d5dab5487fc57ddea1356cd7d0228e8862635ca0d1


Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02
Command line :/usr/bin/fedora-review -b 1445411 -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: Python, Generic, Shell-api, C/C++
Disabled plugins: Java, SugarActivity, fonts, Haskell, Ocaml, Perl, R, PHP,
Ruby
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

-- 
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
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux