Bug 1991150 - Review Request: rust-rustcat - Rustcat - Like Netcat but in Rust
Summary: Review Request: rust-rustcat - Rustcat - Like Netcat but in Rust
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: José Ignacio Tornos Martínez
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-07 16:27 UTC by Davide Cavalca
Modified: 2022-04-19 17:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-19 17:35:05 UTC
Type: ---
Embargoed:
jtornosm: fedora-review+


Attachments (Terms of Use)

Description Davide Cavalca 2021-08-07 16:27:45 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/rust-rustcat/rust-rustcat.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/rust-rustcat/rust-rustcat-1.0.1-1.fc35.src.rpm

Description:
Rustcat - Like Netcat but in Rust.

Fedora Account System Username: dcavalca

Comment 1 Davide Cavalca 2021-08-07 16:27:46 UTC
This package built on koji:  https://koji.fedoraproject.org/koji/taskinfo?taskID=73454226

Comment 2 José Ignacio Tornos Martínez 2022-03-16 11:06:21 UTC
fedora-review tool output + manual checks and extra notes

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

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed, [Mx] = Manual review pass, 
[M!] = Manual review fail, [M-] = Manual not applicable


Issues:
=======
- Dist tag is present.



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

Generic:
[Mx]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
     Note: Package includes /usr/share/licenses/rustcat/LICENSE (MIT License)
[Mx]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "MIT License". 19 files have unknown
     license. Detailed output of licensecheck in 
     1991150-rust-rustcat/licensecheck.txt
         $ cat 1991150-rust-rustcat/licensecheck.txt 
         MIT License
         -----------
         rustcat-1.0.1/LICENSE
         Unknown or generated
         --------------------
         rustcat-1.0.1/.cargo_vcs_info.json
         rustcat-1.0.1/.github/assets/Ai/banner.ai
         rustcat-1.0.1/.github/assets/Ai/rustcat-icon.ai
         rustcat-1.0.1/.github/assets/arch.png
         rustcat-1.0.1/.github/assets/banner.png
         rustcat-1.0.1/.github/assets/cargo.png
         rustcat-1.0.1/.github/assets/easy-revshell.gif
         rustcat-1.0.1/.github/assets/easy.png
         rustcat-1.0.1/.github/assets/history-ex.gif
         rustcat-1.0.1/.github/assets/kali.png
         rustcat-1.0.1/.github/assets/others.png
         rustcat-1.0.1/.github/assets/usage-ex.gif
         rustcat-1.0.1/.github/workflows/rust.yml
         rustcat-1.0.1/Cargo.lock
         rustcat-1.0.1/Cargo.toml
         rustcat-1.0.1/Cargo.toml.orig
         rustcat-1.0.1/README.md
         rustcat-1.0.1/install.sh
         rustcat-1.0.1/src/main.rs
     All files are under the MIT license. 
[M-]: License file installed when any subpackage combination is installed.
     Note: no current subpackage combination.
[Mx]: %build honors applicable compiler flags or justifies otherwise.
     Normal $cargo_build is called and no extra compiler flag is necessary to
     compile.
[M-]: Package contains no bundled libraries without FPC exception.
     Note: the package does not contain any library.
[Mx]: Changelog in prescribed format.
     Note: %autochangelog is used
[Mx]: Sources contain only permissible code or content.
     Note: manual check of git and package files.
[M-]: Package contains desktop file if it is a GUI application.
     Note: it is a command-line tool.
[M-]: Development files must be in a -devel package
     Note: there is no development file.
[Mx]: Package uses nothing in %doc for runtime.
     Note: binary tool can be executed without %doc
[Mx]: Package consistently uses macros (instead of hard-coded directory
     names).
     Note: No hard-coded directory is found.
[Mx]: Package is named according to the Package Naming Guidelines.
     Note: package comlies to the Rust Package Naming 
     (https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_package_naming)
[Mx]: Package does not generate any conflict.
     Note: the package can be installed on fedora35 with no problem and the
     tool can be correctly executed. 
     Then, the package can also be uninstalled on fedora35 with no problem.
[Mx]: Package obeys FHS, except libexecdir and /usr/target.
     Note: package content obeys FHS.
[M-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
     Note: The package is not a renmae of another package.
[Mx]: Requires correct, justified where necessary.
     Note: no corrections are necessary
[Mx]: Spec file is legible and written in American English.
     Note: spec file has been read and understood as American English.
[M-]: Package contains systemd file(s) if in need.
     Note: systemd files are not necessary for this tool.
[Mx]: Useful -debuginfo package or justification otherwise.
     Note: rustcat-debuginfo-1.0.1-1.fc37.x86_64.rpm (binary with symbols) is
     also correctly generated
[Mx]: Package is not known to require an ExcludeArch tag.
     Note:  ExcludeArch tag is not included
[Mx]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 1 files.
[Mx]: Package complies to the Packaging Guidelines
     Note: package complies to the Rust Packaging Guidelines 
     (https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/)
[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 must own all directories that it creates.
[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]: 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:
[Mx]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
     Note: source package does not include license text as a separate file,
     but it is included into the binary package from upstream.
[Mx]: Final provides and requires are sane (see attachments).
     Note: Nothing is extrange
[M-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in rustcat
[Mx]: Package functions as described.
     Note: After package installation, tool behave as it is commented.
[M!]: Latest version is packaged.
     Note: date of rustcat-1.0.1.crate is Aug  7  2021, but there are newer 
     modifications in github. 
[Mx]: Package does not include license text files separate from upstream.
     Note: Package includes /usr/share/licenses/rustcat/LICENSE from upstream
     (MIT License).
[Mx]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used, upstream is not publising signatures
[Mx]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
     Note: not supporting Non-English languages (command-line tool)
[M!]: %check is present and all tests pass.
     Note: %check is present but it is disabled.
[Mx]: Packages should try to preserve timestamps of original installed
     files.
     Note: Manual check
[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]: 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
-------
Cannot parse rpmlint output:


Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://crates.io/api/v1/crates/rustcat/1.0.1/download#/rustcat-1.0.1.crate :
  CHECKSUM(SHA256) this package     : a820830f94d483193234a5974f5b986f1eb4b36577852db9e5e26ad9eb5ee32c
  CHECKSUM(SHA256) upstream package : a820830f94d483193234a5974f5b986f1eb4b36577852db9e5e26ad9eb5ee32c


Requires
--------
rustcat (rpmlib, GLIBC filtered):
    ld-linux-x86-64.so.2()(64bit)
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3)(64bit)
    libgcc_s.so.1(GCC_4.2.0)(64bit)
    rtld(GNU_HASH)

rust-rustcat-debugsource (rpmlib, GLIBC filtered):



Provides
--------
rustcat:
    rustcat
    rustcat(x86-64)

rust-rustcat-debugsource:
    rust-rustcat-debugsource
    rust-rustcat-debugsource(x86-64)



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

Comment 3 José Ignacio Tornos Martínez 2022-03-16 11:09:34 UTC
It's a great job.
To pass I would only need to confirm that the latest versions on github behave the same and something to justify the %check.

Comment 4 José Ignacio Tornos Martínez 2022-03-18 11:22:08 UTC
Sorry, I misundertood %bcond_without
[Mx]: %check is present and all tests pass.
     Note: %check is enabled.
So, I only need to check if package can be generated in the same way with last updated sources.

Comment 5 Fabio Valentini 2022-03-18 12:21:27 UTC
Note that this package contains a statically linked Rust binary, and hence must declare the license that results from linking all dependencies into the final application binary (i.e. add a license breakdown and a License tag to the "-n %{crate}" sub-package).

Comment 6 José Ignacio Tornos Martínez 2022-03-18 12:40:21 UTC
Ok, thanks for the help
Then that also needs to be fixed.

Comment 7 Davide Cavalca 2022-03-24 15:49:45 UTC
Effective license calculation: (ASL 2.0 or MIT) and MIT and (MIT or ASL 2.0) and MPLv2.0 and (Unlicense or MIT) = MIT and MPLv2.0

Full list:
# ASL 2.0 or MIT: rust-autocfg 1.1.0
# ASL 2.0 or MIT: rust-structopt 0.3.25
# ASL 2.0 or MIT: rust-structopt-derive 0.4.18
# ASL 2.0 or MIT: rust-utf8parse 0.2.0
# MIT or ASL 2.0: rust-bitflags 1.3.2
# MIT or ASL 2.0: rust-cfg-if 1.0.0
# MIT or ASL 2.0: rust-dirs-next 2.0.0
# MIT or ASL 2.0: rust-dirs-sys-next 0.1.2
# MIT or ASL 2.0: rust-fd-lock 2.0.0
# MIT or ASL 2.0: rust-heck0.3 0.3.3
# MIT or ASL 2.0: rust-lazy_static 1.4.0
# MIT or ASL 2.0: rust-libc 0.2.120
# MIT or ASL 2.0: rust-log 0.4.14
# MIT or ASL 2.0: rust-proc-macro-error 1.0.4
# MIT or ASL 2.0: rust-proc-macro-error-attr 1.0.4
# MIT or ASL 2.0: rust-proc-macro2 1.0.36
# MIT or ASL 2.0: rust-quote 1.0.16
# MIT or ASL 2.0: rust-smallvec 1.8.0
# MIT or ASL 2.0: rust-syn 1.0.89
# MIT or ASL 2.0: rust-unicode-segmentation 1.9.0
# MIT or ASL 2.0: rust-unicode-width 0.1.9
# MIT or ASL 2.0: rust-unicode-xid 0.2.2
# MIT or ASL 2.0: rust-vec_map 0.8.2
# MIT or ASL 2.0: rust-version_check 0.9.4
# MIT: rust-ansi_term 0.12.1
# MIT: rust-atty 0.2.14
# MIT: rust-clap2 2.34.0
# MIT: rust-endian-type 0.1.2
# MIT: rust-memoffset 0.6.5
# MIT: rust-nibble_vec 0.1.0
# MIT: rust-nix0.20 0.20.2
# MIT: rust-radix_trie 0.2.1
# MIT: rust-rustyline 8.2.0
# MIT: rust-strsim 0.10.0
# MIT: rust-termios 0.3.3
# MIT: rust-textwrap0.11 0.11.0
# MPLv2.0: rust-colored 2.0.0
# Unlicense or MIT: rust-memchr 2.4.1

Comment 8 Davide Cavalca 2022-03-24 15:58:36 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/rust-rustcat/rust-rustcat.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/rust-rustcat/rust-rustcat-1.3.0-1.fc37.src.rpm

Changelog:
- re-run rust2rpm
- update to 1.3.0
- temporarily downgrade rustyline dep
- fix permissions
- add effective license to binary subpackage

Comment 9 José Ignacio Tornos Martínez 2022-03-25 11:41:50 UTC
fedora-review tool output + manual checks and extra notes

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

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed, [Mx] = Manual review pass, 
[M!] = Manual review fail, [M-] = Manual not applicable


Issues:
=======
- Dist tag is present.


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

Generic:
[Mx]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
     Note: Package includes /usr/share/licenses/rustcat/LICENSE (MIT License)
[Mx]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "MIT License", "*No copyright* MIT
     License". 27 files have unknown license. Detailed output of
     licensecheck in 1991150-rust-rustcat/licensecheck.txt
         $ cat 1991150-rust-rustcat/licensecheck.txt
         *No copyright* MIT License
         --------------------------
         rustcat-1.3.0/src/main.rs
         MIT License
         -----------
         rustcat-1.3.0/LICENSE
         Unknown or generated
         --------------------
         rustcat-1.3.0/.cargo_vcs_info.json
         rustcat-1.3.0/.github/ISSUE_TEMPLATE/bug_report.md
         rustcat-1.3.0/.github/ISSUE_TEMPLATE/feature_request.md
         rustcat-1.3.0/.github/workflows/rust.yml
         rustcat-1.3.0/CODE_OF_CONDUCT.md
         rustcat-1.3.0/Cargo.lock
         rustcat-1.3.0/Cargo.toml
         rustcat-1.3.0/Cargo.toml.orig
         rustcat-1.3.0/Makefile
         rustcat-1.3.0/README.md
         rustcat-1.3.0/contributing.md
         rustcat-1.3.0/img/banner.png
         rustcat-1.3.0/img/easy-revshell.gif
         rustcat-1.3.0/img/example.gif
         rustcat-1.3.0/img/history.gif
         rustcat-1.3.0/img/icons/arch.png
         rustcat-1.3.0/img/icons/blackarch.png
         rustcat-1.3.0/img/icons/cargo.png
         rustcat-1.3.0/img/icons/kali.png
         rustcat-1.3.0/img/icons/others.png
         rustcat-1.3.0/install-scripts/README.md
         rustcat-1.3.0/install-scripts/debian-install.sh
         rustcat-1.3.0/src/input.rs
         rustcat-1.3.0/src/listener/mod.rs
         rustcat-1.3.0/src/listener/termios_handler.rs
         rustcat-1.3.0/src/unixshell.rs
         rustcat-1.3.0/src/utils.rs
     Note: license field in the package spec file spec file matches the actual licenses.   
[M-]: License file installed when any subpackage combination is installed.
     Note: no current subpackage combination.
[Mx]: %build honors applicable compiler flags or justifies otherwise.
     Normal $cargo_build is called and no extra compiler flag is necessary to
     compile.
[M-]: Package contains no bundled libraries without FPC exception.
     Note: the package does not contain any library.
[Mx]: Changelog in prescribed format.
     Note: %autochangelog is used
[Mx]: Sources contain only permissible code or content.
     Note: manual check of git and package files.
[M-]: Package contains desktop file if it is a GUI application.
     Note: it is a command-line tool.
[M-]: Development files must be in a -devel package
     Note: there is no development file.
[Mx]: Package uses nothing in %doc for runtime.
     Note: binary tool can be executed without %doc
[Mx]: Package consistently uses macros (instead of hard-coded directory
     names).
     Note: No hard-coded directory is found.
[Mx]: Package is named according to the Package Naming Guidelines.
    Note: package complies to the Rust Package Naming 
    (https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_package_naming)
[M!]: Package does not generate any conflict.
    Note: conflict with rc packet (fedora35), same binary name and path
    $ sudo yum install rustcat-1.3.0-1.fc37.x86_64.rpm
    Last metadata expiration check: 0:02:14 ago on Fri 25 Mar 2022 12:10:22 PM CET.
    Dependencies resolved.
    ================================================================================
     Package         Architecture   Version              Repository            Size
    ================================================================================
    Installing:
     rustcat         x86_64         1.3.0-1.fc37         @commandline         456 k

    Transaction Summary
    ================================================================================
    Install  1 Package

    Total size: 456 k
    Installed size: 1.1 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Error: Transaction test error: 
      file /usr/bin/rc from install of rustcat-1.3.0-1.fc37.x86_64 conflicts with file from package rc-1.7.4-16.fc35.x86_64
[Mx]: Package obeys FHS, except libexecdir and /usr/target.
    Note: package content obeys FHS.
[Mx]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
    Note: The package is not a renmae of another package.
[Mx]: Requires correct, justified where necessary.
    Note: no corrections are necessary
[Mx]: Spec file is legible and written in American English.
    Note: spec file has been read and understood as American English.
[M-]: Package contains systemd file(s) if in need.
    Note: systemd files are not necessary for this tool.
[Mx]: Useful -debuginfo package or justification otherwise.
    Note: rustcat-debuginfo-1.3.0-1.fc37.x86_64.rpm (binary with symbols) is
     also correctly generated
[Mx]: Package is not known to require an ExcludeArch tag.
    Note:  ExcludeArch tag is not included
[Mx]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 20480 bytes in 3 files.
[Mx]: Package complies to the Packaging Guidelines
    Note: package complies to the Rust Packaging Guidelines 
    (https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/)
[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 must own all directories that it creates.
[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]: 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:
[Mx]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
    Note: source package does not include license text as a separate file,
    but it is included into the binary package from upstream.
[Mx]: Final provides and requires are sane (see attachments).
    Note: Nothing is extrange
[M-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in rustcat
[Mx]: Package functions as described.
     Note: After package installation, tool behave as it is commented.
[Mx]: Latest version is packaged.
     Note: Version was generated yesterday
[Mx]: Package does not include license text files separate from upstream.
    Note: Package includes /usr/share/licenses/rustcat/LICENSE from upstream
     (MIT License).
[Mx]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
     Note: temporal patch is justified due to dependencies
[Mx]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used, upstream is not publising signatures
[Mx]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
     Note: not supporting Non-English languages (command-line tool)
[Mx]: %check is present and all tests pass.
     Note: check is present and enabled
[Mx]: Packages should try to preserve timestamps of original installed
     files.
     Note: Manual check
[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]: 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
-------
Cannot parse rpmlint output:


Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://crates.io/api/v1/crates/rustcat/1.3.0/download#/rustcat-1.3.0.crate :
  CHECKSUM(SHA256) this package     : af0561a4711d1e597d2d2284e8e1abadd20957dc76f03209be7f41769629432e
  CHECKSUM(SHA256) upstream package : af0561a4711d1e597d2d2284e8e1abadd20957dc76f03209be7f41769629432e


Requires
--------
rustcat (rpmlib, GLIBC filtered):
    ld-linux-x86-64.so.2()(64bit)
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3)(64bit)
    libgcc_s.so.1(GCC_4.2.0)(64bit)
    rtld(GNU_HASH)

rust-rustcat-debugsource (rpmlib, GLIBC filtered):



Provides
--------
rustcat:
    rustcat
    rustcat(x86-64)

rust-rustcat-debugsource:
    rust-rustcat-debugsource
    rust-rustcat-debugsource(x86-64)



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

Comment 10 José Ignacio Tornos Martínez 2022-03-25 11:53:11 UTC
The older incorrect conditions have been fixed in the latest version of the package.

But, the name of the rustcat binary tool conflicts with rc package (you can be more information/traces in the previous report Note).
So, renaming of the binary tool is needed.  

However in the examples that I have found in https://github.com/robiot/rustcat, the name used for rustcat binary tool is rcat.
This name would be perfect, consistent with the examples and no conflict would be generated.

Comment 12 José Ignacio Tornos Martínez 2022-04-13 16:33:32 UTC
fedora-review tool output + manual checks and extra notes

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

Legend:
Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed, [Mx] = Manual review pass, 
[M!] = Manual review fail, [M-] = Manual not applicable


Issues:
=======
- Dist tag is present.


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

Generic:
[Mx]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
     Note: Package includes /usr/share/licenses/rustcat/LICENSE (MIT License)
[ ]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "MIT License", "*No copyright* MIT
     License". 27 files have unknown license. Detailed output of
     licensecheck in 1991150-rust-rustcat/licensecheck.txt
         $ cat 1991150-rust-rustcat/licensecheck.txt
         *No copyright* MIT License
         --------------------------
         rustcat-1.3.0/src/main.rs
         MIT License
         -----------
         rustcat-1.3.0/LICENSE
         Unknown or generated
         --------------------
         rustcat-1.3.0/.cargo_vcs_info.json
         rustcat-1.3.0/.github/ISSUE_TEMPLATE/bug_report.md
         rustcat-1.3.0/.github/ISSUE_TEMPLATE/feature_request.md
         rustcat-1.3.0/.github/workflows/rust.yml
         rustcat-1.3.0/CODE_OF_CONDUCT.md
         rustcat-1.3.0/Cargo.lock
         rustcat-1.3.0/Cargo.toml
         rustcat-1.3.0/Cargo.toml.orig
         rustcat-1.3.0/Makefile
         rustcat-1.3.0/README.md
         rustcat-1.3.0/contributing.md
         rustcat-1.3.0/img/banner.png
         rustcat-1.3.0/img/easy-revshell.gif
         rustcat-1.3.0/img/example.gif
         rustcat-1.3.0/img/history.gif
         rustcat-1.3.0/img/icons/arch.png
         rustcat-1.3.0/img/icons/blackarch.png
         rustcat-1.3.0/img/icons/cargo.png
         rustcat-1.3.0/img/icons/kali.png
         rustcat-1.3.0/img/icons/others.png
         rustcat-1.3.0/install-scripts/README.md
         rustcat-1.3.0/install-scripts/debian-install.sh
         rustcat-1.3.0/src/input.rs
         rustcat-1.3.0/src/listener/mod.rs
         rustcat-1.3.0/src/listener/termios_handler.rs
         rustcat-1.3.0/src/unixshell.rs
         rustcat-1.3.0/src/utils.rs
     Note: license field in the package spec file spec file matches the actual licenses.
[M-]: License file installed when any subpackage combination is installed.
     Note: no current subpackage combination.
[Mx]: %build honors applicable compiler flags or justifies otherwise.
     Normal $cargo_build is called and no extra compiler flag is necessary to
     compile.
[M-]: Package contains no bundled libraries without FPC exception.
     Note: the package does not contain any library.
[Mx]: Changelog in prescribed format.
     Note: %autochangelog is used.
[Mx]: Sources contain only permissible code or content.
     Note: manual check of git and package files.
[M-]: Package contains desktop file if it is a GUI application.
     Note: it is a command-line tool.
[M-]: Development files must be in a -devel package
     Note: there is no development file.
[Mx]: Package uses nothing in %doc for runtime.
     Note: binary tool can be executed without %doc.
[Mx]: Package consistently uses macros (instead of hard-coded directory
     names).
     Note: No hard-coded directory is found.
[Mx]: Package is named according to the Package Naming Guidelines.
     Note: package complies to the Rust Package Naming 
     (https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_package_naming).
[Mx]: Package does not generate any conflict.
     Note: the package can be installed on fedora35 with no problem and the
     tool can be correctly executed. 
     Then, the package can also be uninstalled on fedora35 with no problem.
[Mx]: Package obeys FHS, except libexecdir and /usr/target.
     Note: package content obeys FHS.
[Mx]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
     Note: The package is not a renmae of another package.
[Mx]: Requires correct, justified where necessary.
     Note: no corrections are necessary.
[Mx]: Spec file is legible and written in American English.
     Note: spec file has been read and understood as American English.
[M-]: Package contains systemd file(s) if in need.
     Note: systemd files are not necessary for this tool.
[Mx]: Useful -debuginfo package or justification otherwise.
     Note: rustcat-debuginfo-1.3.0-1.fc37.x86_64.rpm (binary with symbols) is
     also correctly generated.
[Mx]: Package is not known to require an ExcludeArch tag.
     Note:  ExcludeArch tag is not included
[Mx]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 20480 bytes in 3 files.
[Mx]: Package complies to the Packaging Guidelines
     Note: package complies to the Rust Packaging Guidelines 
    (https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/)
[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 must own all directories that it creates.
[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]: 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:
[Mx]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
     Note: source package does not include license text as a separate file,
     but it is included into the binary package from upstream.
[Mx]: Final provides and requires are sane (see attachments).
     Note: Nothing is extrange.
[M-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in rustcat
[Mx]: Package functions as described.
     Note: After package installation, tool behave as it is commented.
[Mx]: Latest version is packaged.
     Note: Version was generated at the end of last week.
[Mx]: Package does not include license text files separate from upstream.
     Note: Package includes /usr/share/licenses/rustcat/LICENSE from upstream
     (MIT License).
[Mx]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
     Note: temporal patch is justified due to dependencies.
[Mx]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used, upstream is not publising signatures.
[Mx]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
     Note: not supporting Non-English languages (command-line tool)
[Mx]: %check is present and all tests pass.
     Note: check is present and enabled.
[Mx]: Packages should try to preserve timestamps of original installed
     files.
     Note: Manual check.
[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]: 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
-------
Cannot parse rpmlint output:


Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://crates.io/api/v1/crates/rustcat/1.3.0/download#/rustcat-1.3.0.crate :
  CHECKSUM(SHA256) this package     : af0561a4711d1e597d2d2284e8e1abadd20957dc76f03209be7f41769629432e
  CHECKSUM(SHA256) upstream package : af0561a4711d1e597d2d2284e8e1abadd20957dc76f03209be7f41769629432e


Requires
--------
rustcat (rpmlib, GLIBC filtered):
    ld-linux-x86-64.so.2()(64bit)
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3)(64bit)
    libgcc_s.so.1(GCC_4.2.0)(64bit)
    rtld(GNU_HASH)

rust-rustcat-debugsource (rpmlib, GLIBC filtered):



Provides
--------
rustcat:
    rustcat
    rustcat(x86-64)

rust-rustcat-debugsource:
    rust-rustcat-debugsource
    rust-rustcat-debugsource(x86-64)



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

Comment 13 José Ignacio Tornos Martínez 2022-04-13 16:38:09 UTC
Perfect!

Comment 14 Davide Cavalca 2022-04-16 16:15:07 UTC
Thanks!

$ fedpkg request-repo rust-rustcat 1991150
https://pagure.io/releng/fedora-scm-requests/issue/43747

Comment 15 Gwyn Ciesla 2022-04-18 15:22:37 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-rustcat

Comment 16 Fedora Update System 2022-04-19 17:32:50 UTC
FEDORA-2022-7f46c97a4f has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-7f46c97a4f

Comment 17 Fedora Update System 2022-04-19 17:35:05 UTC
FEDORA-2022-7f46c97a4f has been pushed to the Fedora 37 stable repository.
If problem still persists, 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.