Bug 2230010 - Review Request: rust-safe-transmute - Safeguarded transmute() for Rust
Summary: Review Request: rust-safe-transmute - Safeguarded transmute() for Rust
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/safe-transmute
Whiteboard:
Depends On:
Blocks: 2230729
TreeView+ depends on / blocked
 
Reported: 2023-08-08 13:35 UTC by Kalev Lember
Modified: 2023-08-11 15:28 UTC (History)
2 users (show)

Fixed In Version: rust-safe-transmute-0.11.2-5.fc39 rust-safe-transmute-0.11.2-5.fc40
Clone Of:
Environment:
Last Closed: 2023-08-11 15:28:46 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)

Description Kalev Lember 2023-08-08 13:35:10 UTC
Spec URL: https://kalev.fedorapeople.org/rust-safe-transmute.spec
SRPM URL: https://kalev.fedorapeople.org/rust-safe-transmute-0.11.2-5.fc39.src.rpm
Description: A safeguarded transmute() for Rust.
Fedora Account System Username: kalev

Note that this is a re-review of a retired package and needed for packaging loupe.

Comment 1 Fedora Review Service 2023-08-08 13:41:57 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6257500
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2230010-rust-safe-transmute/fedora-rawhide-x86_64/06257500-rust-safe-transmute/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 2 Fabio Valentini 2023-08-08 17:15:56 UTC
Looks good to me. You might want to exclude some files from getting installed (appveyor.yml, rustfmt.toml, safe-transmute-rs.sublime-project), that might also be a candidate for upstream (which looks dead, so maybe not).

===

Package was generated with rust2rpm, simplifying the review.

- package builds and installs without errors on rawhide
- test suite is run and all unit tests pass
- latest version of the crate is packaged
- license matches upstream specification (MIT) and is acceptable for Fedora
- license file is included with %license in %files
- package complies with Rust Packaging Guidelines

Package 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: 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)

Comment 3 Fabio Valentini 2023-08-08 17:16:17 UTC
You might want to convert to rpmautospec after importing the package.

Comment 4 Kalev Lember 2023-08-09 12:15:32 UTC
Thanks for the review, Fabio!

> Looks good to me. You might want to exclude some files from getting installed (appveyor.yml, rustfmt.toml, safe-transmute-rs.sublime-project), that might also be a candidate for upstream (which looks dead, so maybe not).

What's the best way to exclude the files? I'm fairly clueless when it comes to rust.

> You might want to convert to rpmautospec after importing the package.

Will do, thanks.

Comment 5 Kalev Lember 2023-08-09 12:18:27 UTC
Unretirement request: https://pagure.io/releng/issue/11603

Comment 6 Fabio Valentini 2023-08-10 19:50:15 UTC
(In reply to Kalev Lember from comment #4)
> What's the best way to exclude the files? I'm fairly clueless when it comes
> to rust.

There are two ways - the first one is more robust.

You can use the "package.exclude" setting in Cargo.toml.

In this case, adding a patch to add these lines to the [package] table would do it:

exclude = [
    "/appveyor.yml",
    "/rustfmt.toml",
    "/safe-transmute-rs.sublime-project",
]

The alternative would be to add this line to the -devel subpackage's %files list:

%exclude %{crate_instdir}/{appveyor.yml,rustfmt.toml,safe-transmute-rs.sublime-project}

Comment 7 Kalev Lember 2023-08-11 15:28:46 UTC
Thanks, Fabio! I opened a PR for that at https://github.com/nabijaczleweli/safe-transmute-rs/pull/68


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