Bug 1927790 - Review Request: rust-cxx - Safe interop between Rust and C++
Summary: Review Request: rust-cxx - Safe interop between Rust and C++
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1927210 1927362 1927385 1927763
Blocks: 1909926
TreeView+ depends on / blocked
 
Reported: 2021-02-11 14:24 UTC by Jan Staněk
Modified: 2021-02-18 11:39 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-02-18 11:39:02 UTC
Type: ---
Embargoed:
loganjerry: fedora-review+


Attachments (Terms of Use)

Description Jan Staněk 2021-02-11 14:24:54 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/jstanek/newsboat-dependencies/fedora-rawhide-x86_64/01958091-rust-cxx/rust-cxx.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/jstanek/newsboat-dependencies/fedora-rawhide-x86_64/01958091-rust-cxx/rust-cxx-0.5.10-2.fc35.src.rpm
Description: Safe interop between Rust and C++.
Fedora Account System Username: jstanek

This is one of the new (transitive) dependencies for newsboat (https://src.fedoraproject.org/rpms/newsboat). The packaged version might not be the latest available – only the latest one to satisfy newsboat dependency constraints.

Comment 1 Jerry James 2021-02-11 18:11:41 UTC
I will take this review.  I got on a roll, it seems. :-)

Comment 2 Jerry James 2021-02-11 18:25:10 UTC
Package Review
==============

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

Issues
======
- Please check the zero length file identified by rpmlint below to see if it
  should really be in the package

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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Header 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.
[x]: License field in the package spec file matches the actual license.
[x]: License file installed when any subpackage combination is installed.
[x]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[x]: Package must own all directories that it creates.
[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.
[-]: 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 20480 bytes in 1 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]: Package requires other packages for directories it uses.
[x]: Package does not own files or directories owned by other packages.
[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 must not depend on deprecated() packages.
[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).
[x]: Fully versioned dependency in subpackages if applicable.
[?]: Package functions as described.
[!]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[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]: Package should compile and build into binary rpms on all supported
     architectures.
[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]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: rust-cxx-devel-0.5.10-2.fc35.noarch.rpm
          rust-cxx+default-devel-0.5.10-2.fc35.noarch.rpm
          rust-cxx+c++14-devel-0.5.10-2.fc35.noarch.rpm
          rust-cxx+c++17-devel-0.5.10-2.fc35.noarch.rpm
          rust-cxx+c++20-devel-0.5.10-2.fc35.noarch.rpm
          rust-cxx-0.5.10-2.fc35.src.rpm
rust-cxx-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx-devel.noarch: W: hidden-file-or-dir /usr/share/cargo/registry/cxx-0.5.10/.cargo-checksum.json
rust-cxx-devel.noarch: E: zero-length /usr/share/cargo/registry/cxx-0.5.10/tools/bazel/BUILD
rust-cxx+default-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx+default-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx+default-devel.noarch: W: spelling-error %description -l en_US cxx -> xxx, xx, cox
rust-cxx+default-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx+default-devel.noarch: W: no-documentation
rust-cxx+c++14-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx+c++14-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx+c++14-devel.noarch: W: spelling-error %description -l en_US cxx -> xxx, xx, cox
rust-cxx+c++14-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx+c++14-devel.noarch: W: no-documentation
rust-cxx+c++17-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx+c++17-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx+c++17-devel.noarch: W: spelling-error %description -l en_US cxx -> xxx, xx, cox
rust-cxx+c++17-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx+c++17-devel.noarch: W: no-documentation
rust-cxx+c++20-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx+c++20-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx+c++20-devel.noarch: W: spelling-error %description -l en_US cxx -> xxx, xx, cox
rust-cxx+c++20-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx+c++20-devel.noarch: W: no-documentation
rust-cxx.src: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx.src: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx.src: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
6 packages and 0 specfiles checked; 1 errors, 27 warnings.




Rpmlint (installed packages)
----------------------------
rust-cxx+default-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx+default-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx+default-devel.noarch: W: spelling-error %description -l en_US cxx -> xxx, xx, cox
rust-cxx+default-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx+default-devel.noarch: W: no-documentation
rust-cxx+c++20-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx+c++20-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx+c++20-devel.noarch: W: spelling-error %description -l en_US cxx -> xxx, xx, cox
rust-cxx+c++20-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx+c++20-devel.noarch: W: no-documentation
rust-cxx+c++17-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx+c++17-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx+c++17-devel.noarch: W: spelling-error %description -l en_US cxx -> xxx, xx, cox
rust-cxx+c++17-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx+c++17-devel.noarch: W: no-documentation
rust-cxx-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx-devel.noarch: W: hidden-file-or-dir /usr/share/cargo/registry/cxx-0.5.10/.cargo-checksum.json
rust-cxx-devel.noarch: E: zero-length /usr/share/cargo/registry/cxx-0.5.10/tools/bazel/BUILD
rust-cxx+c++14-devel.noarch: W: spelling-error Summary(en_US) interop -> inter op, inter-op, interlope
rust-cxx+c++14-devel.noarch: W: spelling-error %description -l en_US interop -> inter op, inter-op, interlope
rust-cxx+c++14-devel.noarch: W: spelling-error %description -l en_US cxx -> xxx, xx, cox
rust-cxx+c++14-devel.noarch: W: invalid-url URL: https://crates.io/crates/cxx HTTP Error 404: Not Found
rust-cxx+c++14-devel.noarch: W: no-documentation
5 packages and 0 specfiles checked; 1 errors, 24 warnings.



Source checksums
----------------
https://crates.io/api/v1/crates/cxx/0.5.10/download#/cxx-0.5.10.crate :
  CHECKSUM(SHA256) this package     : ebdd48b6a265557715bbbd72e891c6d26fe0cc58d87a881892a54ae47e0a92aa
  CHECKSUM(SHA256) upstream package : ebdd48b6a265557715bbbd72e891c6d26fe0cc58d87a881892a54ae47e0a92aa


Requires
--------
rust-cxx-devel (rpmlib, GLIBC filtered):
    (crate(cc/default) >= 1.0.49 with crate(cc/default) < 2.0.0~)
    (crate(link-cplusplus/default) >= 1.0.0 with crate(link-cplusplus/default) < 2.0.0~)
    cargo
    crate(cxxbridge-flags)
    crate(cxxbridge-macro/default)

rust-cxx+default-devel (rpmlib, GLIBC filtered):
    cargo
    crate(cxx)
    crate(cxxbridge-flags/default)

rust-cxx+c++14-devel (rpmlib, GLIBC filtered):
    cargo

rust-cxx+c++17-devel (rpmlib, GLIBC filtered):
    cargo

rust-cxx+c++20-devel (rpmlib, GLIBC filtered):
    cargo



Provides
--------
rust-cxx-devel:
    crate(cxx)
    rust-cxx-devel

rust-cxx+default-devel:
    crate(cxx/default)
    rust-cxx+default-devel

rust-cxx+c++14-devel:
    crate(cxx/c++14)
    rust-cxx+c++14-devel

rust-cxx+c++17-devel:
    crate(cxx/c++17)
    rust-cxx+c++17-devel

rust-cxx+c++20-devel:
    crate(cxx/c++20)
    rust-cxx+c++20-devel



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -b 1927790 -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: C/C++, Shell-api, Generic
Disabled plugins: SugarActivity, Ocaml, PHP, Java, Haskell, Python, Ruby, fonts, Perl, R
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 3 Jan Staněk 2021-02-15 15:17:50 UTC
> - Please check the zero length file identified by rpmlint below to see if it should really be in the package
...
> rust-cxx-devel.noarch: E: zero-length /usr/share/cargo/registry/cxx-0.5.10/tools/bazel/BUILD

This seems to be some kind of build tool integration; in more recent versions of the crate, the file has contents.
As such, I would leave it as-is, since this error should be fixed once this crate is updated to more recent version (once newsboat supports it).

Comment 4 Jerry James 2021-02-15 16:36:03 UTC
Okay, then this package is APPROVED.

Comment 5 Mohan Boddu 2021-02-17 14:38:47 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-cxx

Comment 6 Jan Staněk 2021-02-18 11:39:02 UTC
Package built for rawhide: https://bodhi.fedoraproject.org/updates/FEDORA-2021-ebca44165e


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