Bug 2388113 - Review Request: rust-icu_locale - API for Unicode Language and Locale Identifiers canonicalization
Summary: Review Request: rust-icu_locale - API for Unicode Language and Locale Identif...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/icu_locale_data
Whiteboard:
Depends On: 2388112
Blocks: 2388110
TreeView+ depends on / blocked
 
Reported: 2025-08-12 21:34 UTC by Kai A. Hiller
Modified: 2025-09-12 13:23 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-09-12 13:23:00 UTC
Type: ---
Embargoed:
code: fedora-review+


Attachments (Terms of Use)
Configuration file for rust2rpm (457 bytes, text/plain)
2025-08-14 16:22 UTC, Ben Beasley
no flags Details
Cargo metadata patch associated with the attached rust2rpm.toml (334 bytes, patch)
2025-08-14 16:23 UTC, Ben Beasley
no flags Details | Diff
The .spec file difference from Copr build 9406052 to 9534586 (2.86 KB, patch)
2025-09-08 15:50 UTC, Fedora Review Service
no flags Details | Diff

Description Kai A. Hiller 2025-08-12 21:34:53 UTC
Spec URL: https://v02460.fedorapeople.org/rust-icu_locale.spec
SRPM URL: https://v02460.fedorapeople.org/rust-icu_locale_data-2.0.0-1.fc43.src.rpm
Description: API for Unicode Language and Locale Identifiers canonicalization.
Fedora Account System Username: v02460

Comment 1 Fedora Review Service 2025-08-12 21:39:13 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9406052
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2388113-rust-icu_locale/fedora-rawhide-x86_64/09406052-rust-icu_locale_data/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 3 Ben Beasley 2025-08-14 16:21:17 UTC
The Cargo.toml metadata patch should have an explanatory comment of some sort (https://docs.fedoraproject.org/en-US/packaging-guidelines/#_all_patches_should_have_an_upstream_bug_link_or_comment), and it should be possible to run a few of the tests. I’ll upload a rust2rpm.toml and icu_locale-fix-metadata.diff that demonstrate how this could be done.

Comment 4 Ben Beasley 2025-08-14 16:22:29 UTC
Created attachment 2103646 [details]
Configuration file for rust2rpm

Demonstrates adding a comment to the metadata patch and enabling those few tests that we can reasonably run.

Comment 5 Ben Beasley 2025-08-14 16:23:10 UTC
Created attachment 2103647 [details]
Cargo metadata patch associated with the attached rust2rpm.toml

Demonstrates adding a comment to the metadata patch and enabling those few tests that we can reasonably run.

Comment 6 Ben Beasley 2025-09-01 07:22:24 UTC
Are you still working on this?

Comment 7 Kai A. Hiller 2025-09-08 15:19:26 UTC
Spec URL: https://v02460.fedorapeople.org/rust-icu_locale.spec
SRPM URL: https://v02460.fedorapeople.org/rust-icu_locale-2.0.0-1.fc44.src.rpm

Nice, thank you for getting tests running!

Implemented your suggestions (changed the wording a bit, hope you don’t mind).

Comment 8 Fedora Review Service 2025-09-08 15:50:00 UTC
Created attachment 2106003 [details]
The .spec file difference from Copr build 9406052 to 9534586

Comment 9 Fedora Review Service 2025-09-08 15:50:02 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9534586
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2388113-rust-icu_locale/fedora-rawhide-x86_64/09534586-rust-icu_locale/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 10 Ben Beasley 2025-09-10 09:13:39 UTC
Thanks! This looks just fine now. The package is APPROVED.

===

Recommended post-import rust-sig tasks:

- set up package on release-monitoring.org:
  project: $crate
  homepage: https://crates.io/crates/$crate
  backend: crates.io
  version scheme: semantic
  version filter (*NOT* pre-release filter): alpha;beta;rc;pre
  distro: Fedora
  Package: rust-$crate

- add @rust-sig with "commit" access as package co-maintainer
  (should happen automatically)

- set bugzilla assignee overrides to @rust-sig (optional)

- track package in koschei for all built branches
  (should happen automatically once rust-sig is co-maintainer)

===

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

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

The spec file is generated by rust2rpm, simplifying the review.

Issues:
=======
- Package does not contain duplicates in %files.
  Note: warning: File listed twice:
  /usr/share/cargo/registry/icu_locale-2.0.0/LICENSE
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/#_duplicate_files

  This is not a serious problem, and is due to reasonable design decisions in
  rust2rpm. No change is required.


===== 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", "Unicode License Agreement - Data Files
     and Software (2016)". 20 files have unknown license. Detailed output
     of licensecheck in /home/ben/fedora/review/2388113-rust-
     icu_locale/20250908/2388113-rust-icu_locale/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.
[-]: 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: 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]: 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:
[-]: 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).
[-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in rust-
     icu_locale-devel , rust-icu_locale+default-devel , rust-
     icu_locale+compiled_data-devel , rust-icu_locale+datagen-devel , rust-
     icu_locale+serde-devel
[x]: Package functions as described.

     We run the subset of tests that we can manage using only the crate
     sources, and they all pass.

[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.
[-]: 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.

     https://koji.fedoraproject.org/koji/taskinfo?taskID=136977025

[x]: %check is present and all tests pass.

     We run the subset of tests that we can manage using only the crate
     sources, and they all 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)

     OK: differences are solely due to rpmautospec macro expansion.

[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).


Rpmlint
-------
Checking: rust-icu_locale-devel-2.0.0-1.fc44.noarch.rpm
          rust-icu_locale+default-devel-2.0.0-1.fc44.noarch.rpm
          rust-icu_locale+compiled_data-devel-2.0.0-1.fc44.noarch.rpm
          rust-icu_locale+datagen-devel-2.0.0-1.fc44.noarch.rpm
          rust-icu_locale+serde-devel-2.0.0-1.fc44.noarch.rpm
          rust-icu_locale-2.0.0-1.fc44.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.7.0
configuration:
    /usr/lib/python3.13/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
rpmlintrc: [PosixPath('/tmp/tmprg2avf_n')]
checks: 32, packages: 6

rust-icu_locale+compiled_data-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+compiled_data-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+datagen-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+datagen-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+default-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+default-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+serde-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+serde-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale.src: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale.src: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
 6 packages and 0 specfiles checked; 12 errors, 0 warnings, 31 filtered, 12 badness; has taken 0.4 s 




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.7.0
configuration:
    /usr/lib/python3.14/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: 5

rust-icu_locale+datagen-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+datagen-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+compiled_data-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+compiled_data-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+serde-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+serde-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+default-devel.noarch: E: spelling-error ('canonicalization', 'Summary(en_US) canonicalization -> cannibalization, canonization, radicalization')
rust-icu_locale+default-devel.noarch: E: spelling-error ('canonicalization', '%description -l en_US canonicalization -> cannibalization, canonization, radicalization')
 5 packages and 0 specfiles checked; 10 errors, 0 warnings, 27 filtered, 10 badness; has taken 0.1 s 



Source checksums
----------------
https://crates.io/api/v1/crates/icu_locale/2.0.0/download#/icu_locale-2.0.0.crate :
  CHECKSUM(SHA256) this package     : 6ae5921528335e91da1b6c695dbf1ec37df5ac13faa3f91e5640be93aa2fbefd
  CHECKSUM(SHA256) upstream package : 6ae5921528335e91da1b6c695dbf1ec37df5ac13faa3f91e5640be93aa2fbefd


Requires
--------
rust-icu_locale-devel (rpmlib, GLIBC filtered):
    (crate(displaydoc) >= 0.2.3 with crate(displaydoc) < 0.3.0~)
    (crate(icu_collections) >= 2.0.0 with crate(icu_collections) < 2.1.0~)
    (crate(icu_locale_core) >= 2.0.0 with crate(icu_locale_core) < 3.0.0~)
    (crate(icu_locale_core/alloc) >= 2.0.0 with crate(icu_locale_core/alloc) < 3.0.0~)
    (crate(icu_locale_core/zerovec) >= 2.0.0 with crate(icu_locale_core/zerovec) < 3.0.0~)
    (crate(icu_provider) >= 2.0.0 with crate(icu_provider) < 3.0.0~)
    (crate(potential_utf) >= 0.1.1 with crate(potential_utf) < 0.2.0~)
    (crate(potential_utf/alloc) >= 0.1.1 with crate(potential_utf/alloc) < 0.2.0~)
    (crate(potential_utf/zerovec) >= 0.1.1 with crate(potential_utf/zerovec) < 0.2.0~)
    (crate(tinystr) >= 0.8.0 with crate(tinystr) < 0.9.0~)
    (crate(tinystr/alloc) >= 0.8.0 with crate(tinystr/alloc) < 0.9.0~)
    (crate(tinystr/zerovec) >= 0.8.0 with crate(tinystr/zerovec) < 0.9.0~)
    (crate(zerovec) >= 0.11.1 with crate(zerovec) < 0.12.0~)
    (crate(zerovec/alloc) >= 0.11.1 with crate(zerovec/alloc) < 0.12.0~)
    (crate(zerovec/yoke) >= 0.11.1 with crate(zerovec/yoke) < 0.12.0~)
    cargo
    rust

rust-icu_locale+default-devel (rpmlib, GLIBC filtered):
    cargo
    crate(icu_locale)
    crate(icu_locale/compiled_data)

rust-icu_locale+compiled_data-devel (rpmlib, GLIBC filtered):
    (crate(icu_locale_data) >= 2.0.0 with crate(icu_locale_data) < 2.1.0~)
    (crate(icu_provider/baked) >= 2.0.0 with crate(icu_provider/baked) < 3.0.0~)
    cargo
    crate(icu_locale)

rust-icu_locale+datagen-devel (rpmlib, GLIBC filtered):
    (crate(databake) >= 0.2.0 with crate(databake) < 0.3.0~)
    (crate(databake/derive) >= 0.2.0 with crate(databake/derive) < 0.3.0~)
    (crate(icu_collections/databake) >= 2.0.0 with crate(icu_collections/databake) < 2.1.0~)
    (crate(icu_locale_core/databake) >= 2.0.0 with crate(icu_locale_core/databake) < 3.0.0~)
    (crate(icu_provider/export) >= 2.0.0 with crate(icu_provider/export) < 3.0.0~)
    (crate(tinystr/databake) >= 0.8.0 with crate(tinystr/databake) < 0.9.0~)
    (crate(zerovec/databake) >= 0.11.1 with crate(zerovec/databake) < 0.12.0~)
    cargo
    crate(icu_locale)
    crate(icu_locale/serde)

rust-icu_locale+serde-devel (rpmlib, GLIBC filtered):
    (crate(icu_collections/serde) >= 2.0.0 with crate(icu_collections/serde) < 2.1.0~)
    (crate(icu_locale_core/serde) >= 2.0.0 with crate(icu_locale_core/serde) < 3.0.0~)
    (crate(icu_provider/serde) >= 2.0.0 with crate(icu_provider/serde) < 3.0.0~)
    (crate(potential_utf/serde) >= 0.1.1 with crate(potential_utf/serde) < 0.2.0~)
    (crate(serde) >= 1.0.110 with crate(serde) < 2.0.0~)
    (crate(serde/alloc) >= 1.0.110 with crate(serde/alloc) < 2.0.0~)
    (crate(serde/derive) >= 1.0.110 with crate(serde/derive) < 2.0.0~)
    (crate(tinystr/serde) >= 0.8.0 with crate(tinystr/serde) < 0.9.0~)
    (crate(zerovec/serde) >= 0.11.1 with crate(zerovec/serde) < 0.12.0~)
    cargo
    crate(icu_locale)



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

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

rust-icu_locale+compiled_data-devel:
    crate(icu_locale/compiled_data)
    rust-icu_locale+compiled_data-devel

rust-icu_locale+datagen-devel:
    crate(icu_locale/datagen)
    rust-icu_locale+datagen-devel

rust-icu_locale+serde-devel:
    crate(icu_locale/serde)
    rust-icu_locale+serde-devel



Diff spec file in url and in SRPM
---------------------------------
--- /home/ben/fedora/review/2388113-rust-icu_locale/20250908/2388113-rust-icu_locale/srpm/rust-icu_locale.spec	2025-09-08 21:24:48.017407053 +0100
+++ /home/ben/fedora/review/2388113-rust-icu_locale/20250908/2388113-rust-icu_locale/srpm-unpacked/rust-icu_locale.spec	2025-09-08 01:00:00.000000000 +0100
@@ -1,2 +1,12 @@
+## START: Set by rpmautospec
+## (rpmautospec version 0.8.1)
+## RPMAUTOSPEC: autorelease, autochangelog
+%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
+    release_number = 1;
+    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
+    print(release_number + base_release_number - 1);
+}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
+## END: Set by rpmautospec
+
 # Generated by rust2rpm 27
 %bcond check 1
@@ -110,3 +120,6 @@
 
 %changelog
-%autochangelog
+## START: Generated by rpmautospec
+* Mon Sep 08 2025 John Doe <packager> - 2.0.0-1
+- Uncommitted changes
+## END: Generated by rpmautospec


Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -b 2388113 -L ../../locale-deps/
Buildroot used: fedora-rawhide-aarch64
Active plugins: Generic, Shell-api
Disabled plugins: C/C++, R, Perl, Python, Haskell, Java, Ocaml, PHP, SugarActivity, fonts
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Built with local dependencies:
    /home/ben/fedora/review/2388113-rust-icu_locale/20250908/../../locale-deps/rust-icu_locale_data-2.0.0-1.fc44.src.rpm
    /home/ben/fedora/review/2388113-rust-icu_locale/20250908/../../locale-deps/rust-icu_locale_data+default-devel-2.0.0-1.fc44.noarch.rpm
    /home/ben/fedora/review/2388113-rust-icu_locale/20250908/../../locale-deps/rust-icu_locale_data-devel-2.0.0-1.fc44.noarch.rpm

Comment 11 Fedora Admin user for bugzilla script actions 2025-09-12 12:31:41 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-icu_locale

Comment 12 Fedora Update System 2025-09-12 13:20:17 UTC
FEDORA-2025-227c6c7335 (rust-icu_locale-2.0.0-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-227c6c7335

Comment 13 Fedora Update System 2025-09-12 13:23:00 UTC
FEDORA-2025-227c6c7335 (rust-icu_locale-2.0.0-1.fc44) has been pushed to the Fedora 44 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.