Bug 2564419

Summary: Review Request: rust-utf_types - Types for UTF-8 and UTF-16 code units and code unit sequences
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: Package ReviewAssignee: Jonathan Steffan <jonathansteffan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jonathansteffan, package-review
Target Milestone: ---Flags: jonathansteffan: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-23 06:32:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2563642, 2563643    
Attachments:
Description Flags
Configuration file for rust2rpm
none
Configuration file for rust2rpm none

Description Ben Beasley 2026-10-31 10:07:18 UTC
Created attachment 2162634 [details]
Configuration file for rust2rpm

Spec URL: https://music.fedorapeople.org/rust-utf_types.spec
SRPM URL: https://music.fedorapeople.org/rust-utf_types-1.0.0-1.fc44.src.rpm
Description: Types for UTF-8 and UTF-16 code units and code unit sequences.
Fedora Account System Username: music

This is a new dependency for the latest releases of rust-utf8_iter and rust-utf16_iter.

Upstream has an awkward dedication for most of the test code, https://github.com/zeebo/blake3/issues/30; we must treat it as CC0-1.0 and therefore must strip it out of the crate archive before uploading it.

Comment 1 Ben Beasley 2026-10-31 10:09:12 UTC
Created attachment 2162635 [details]
Configuration file for rust2rpm

Uploaded the wrong file with the original submission

Comment 2 Jonathan Steffan 2026-11-22 21:54:30 UTC
Result: APPROVED - no blockers.

Review notes:
- License Apache-2.0 OR MIT matches Cargo.toml. Uses a '-clean' crate with possibly-CC0 test code removed
  (get_source script included, %prep guard fails the build if CC0 text reappears). No CC0 text in src/.
  NOTE: I did not diff the clean crate against the crates.io original.
- COPYRIGHT, LICENSE-APACHE and LICENSE-MIT installed with %license.
- Builds and installs in mock; no bundled libraries, binaries, or vendored sources in the crate.
- Source SHA256 matches upstream (see Source checksums below).
- Latest upstream version is packaged (1.0.0 on crates.io).

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

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


Issues:
=======
- "File listed twice" warning from fedora-review is the standard rust2rpm
  layout (%license/%doc entry plus the %{crate_instdir}/ glob). Harmless,
  not a blocker.


===== 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: "Unknown or generated", "Apache License (v2.0) or MIT license",
     "*No copyright* Apache License 2.0", "MIT License". 7 files have
     unknown license. Detailed licensecheck output omitted.
[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]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[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]: 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: No rpmlint messages.
[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]: The License field must be a valid SPDX expression.
[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]: Dist tag is present.
[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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

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

Generic:
[x]: 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.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in rust-
     utf_types-devel , rust-utf_types+default-devel
[x]: Package functions as described.
[x]: Latest version is packaged.
     Note: 1.0.0 is the newest release on crates.io.
[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.
[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]: 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: No rpmlint messages.


Rpmlint
-------
Checking: rust-utf_types-devel-1.0.0-1.fc46.noarch.rpm
          rust-utf_types+default-devel-1.0.0-1.fc46.noarch.rpm
          rust-utf_types-1.0.0-1.fc46.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.9.0
configuration:
    /usr/lib/python3.15/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 3

 3 packages and 0 specfiles checked; 0 errors, 0 warnings, 13 filtered, 0 badness; has taken 0.2 s 




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.10.0
configuration:
    /usr/lib/python3.15/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 33, packages: 2

 2 packages and 0 specfiles checked; 0 errors, 0 warnings, 9 filtered, 0 badness; has taken 0.0 s 



Requires
--------
rust-utf_types-devel (rpmlib, GLIBC filtered):
    cargo
    rust

rust-utf_types+default-devel (rpmlib, GLIBC filtered):
    cargo
    crate(utf_types)



Provides
--------
rust-utf_types-devel:
    crate(utf_types)
    purl(pkg:cargo/utf_types.0)
    rust-utf_types-devel

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



Generated by fedora-review 0.12.0 (a08f0fc) last change: 2026-09-18
Command line :/usr/bin/fedora-review -n ../rust-utf_types-1.0.0-1.fc44.src.rpm -r -m fedora-rawhide-aarch64 -B
Buildroot used: fedora-rawhide-aarch64
Active plugins: Shell-api, Generic
Disabled plugins: SugarActivity, Python, PHP, Ocaml, C/C++, Java, R, Haskell, Perl, fonts
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH, UNRETIREMENT

Comment 3 Jonathan Steffan 2026-11-22 22:12:42 UTC
Let me know if you have other reviews to trade ;-) https://bugzilla.redhat.com/show_bug.cgi?id=2568667

Comment 4 Ben Beasley 2026-11-23 06:10:14 UTC
Thank you for the review!

https://release-monitoring.org/project/393461/

As soon as I have a little time, I will be happy to go through some of your xrizer-related reviews and point you at a few of my other pending reviews. Thanks for the offer/suggestion!

Comment 5 Fedora Admin user for bugzilla script actions 2026-11-23 06:11:54 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-utf_types
Monitoring:
Wasn't able to create project in Anitya. You can create it manually on: `https://release-monitoring.org`

Comment 6 Fedora Update System 2026-11-23 06:28:52 UTC
FEDORA-2026-9ec1c64d0d (rust-utf_types-1.0.0-1.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-9ec1c64d0d

Comment 7 Fedora Update System 2026-11-23 06:32:55 UTC
FEDORA-2026-9ec1c64d0d (rust-utf_types-1.0.0-1.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.