Bug 2443680

Summary: Review Request: rust-icns - Library for encoding/decoding Apple Icon Image (.icns) files
Product: [Fedora] Fedora Reporter: Davide Cavalca <davide>
Component: Package ReviewAssignee: Fabio Valentini <decathorpe>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: decathorpe, package-review
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---Flags: decathorpe: fedora-review?
Hardware: Unspecified   
OS: Unspecified   
URL: https://crates.io/crates/icns
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
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: 2443679    
Bug Blocks:    
Attachments:
Description Flags
The .spec file difference from Copr build 10218169 to 10224770 none

Description Davide Cavalca 2026-03-01 19:47:18 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/rust-icns/rust-icns.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/rust-icns/rust-icns-0.4.0-1.fc45.src.rpm
Upstream URL: https://crates.io/crates/icns

Description:
A library for encoding/decoding Apple Icon Image (.icns) files.

Fedora Account System Username: dcavalca

Comment 1 Davide Cavalca 2026-03-01 19:47:43 UTC
$ cat rust2rpm.toml 
[tests]
run = ["lib", "doc", "test:golden"]                                                                                            
skip.'test:golden' = ["encode_ic07"]                                                                                           
skip-exact.'test:golden' = true
comments.'test:golden' = ["encode_ic07 fails due to non-deterministic PNG encoding output"]

Comment 2 Fedora Review Service 2026-03-01 19:49:16 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10181350
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2443680-rust-icns/fedora-rawhide-x86_64/10181350-rust-icns/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
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 Fabio Valentini 2026-03-10 19:36:40 UTC
Package looks mostly good to me, with one caveat:

There's what looks like input data for tests under tests/icns / tests/png that looks like it's a "✓" icon from some icon theme. I'm not sure if this can be included without attribution (or license), and I don't see any mentions of where these files are from.

Comment 4 Davide Cavalca 2026-03-12 04:17:12 UTC
Filed https://github.com/mdsteele/rust-icns/issues/14 for this, I'll strip it out in %prep in the meantime.

Comment 5 Davide Cavalca 2026-03-12 04:23:08 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/rust-icns/rust-icns.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/rust-icns/rust-icns-0.4.0-1.fc45.src.rpm

Changelog:
- drop test assets of unknown provenance

Comment 6 Davide Cavalca 2026-03-12 04:23:22 UTC
$ cat rust2rpm.toml 
[package]
cargo-toml-patch-comments = [
  "Drop golden test: https://github.com/mdsteele/rust-icns/issues/14",
]

[scripts]
# https://github.com/mdsteele/rust-icns/issues/14
prep.pre = [
  "rm -r tests",
]

Comment 7 Fedora Review Service 2026-03-12 18:38:15 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10218169
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2443680-rust-icns/fedora-rawhide-x86_64/10218169-rust-icns/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 8 Davide Cavalca 2026-03-13 18:46:33 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/rust-icns/rust-icns.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/rust-icns/rust-icns-0.4.0-1.fc45.src.rpm

Changelog:
- update license tag to include test assets

Comment 9 Davide Cavalca 2026-03-13 18:46:47 UTC
$ cat rust2rpm.toml 
[package]
cargo-toml-patch-comments = [
  "Update license tag to include golden file test assets",
  "https://github.com/mdsteele/rust-icns/issues/14",
]

[tests]
run = ["lib", "doc", "test:golden"]                                                                                            
skip.'test:golden' = ["encode_ic07"]                                                                                           
skip-exact.'test:golden' = true
comments.'test:golden' = ["encode_ic07 fails due to non-deterministic PNG encoding output"]

Comment 10 Fedora Review Service 2026-03-14 05:35:30 UTC
Created attachment 2133369 [details]
The .spec file difference from Copr build 10218169 to 10224770

Comment 11 Fedora Review Service 2026-03-14 05:35:32 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10224770
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2443680-rust-icns/fedora-rawhide-x86_64/10224770-rust-icns/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 12 Fabio Valentini 2026-03-16 18:00:42 UTC
Thanks for clarifying with upstream.

According to https://openclipart.org/share they actually explicitly apply CC0-1.0 to their content, not "Public Domain". I would suggest to just document this in the spec file, and `%exclude %{crate_instdir}/tests/{icns,png}/` instead of modifying the License tag.

And you can drop the patch for the `Cargo.toml` package.license field - test data does not affect the crate license when used as a dependency.