Bug 2295793 - Review Request: rust-btf-rs - Library for the BPF type format (BTF)
Summary: Review Request: rust-btf-rs - Library for the BPF type format (BTF)
Keywords:
Status: CLOSED ERRATA
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/btf-rs
Whiteboard:
Depends On:
Blocks: FE-NEEDSPONSOR 2295792
TreeView+ depends on / blocked
 
Reported: 2024-07-04 13:48 UTC by Antoine Tenart
Modified: 2024-10-15 14:19 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-15 14:19:27 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 7773627 to 7974548 (318 bytes, patch)
2024-09-03 14:44 UTC, Fedora Review Service
no flags Details | Diff

Description Antoine Tenart 2024-07-04 13:48:45 UTC
Spec URL: https://raw.githubusercontent.com/retis-org/copr-playground/main/rust-btf-rs.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/@retis/playground/fedora-rawhide-x86_64/07671873-rust-btf-rs/rust-btf-rs-1.1.0-1.fc41.src.rpm
Build: https://copr.fedorainfracloud.org/coprs/g/retis/playground/build/7671873/

Description:

Library for the BPF type format (BTF).

Fedora Account System Usernames: atenart, pvaler, amorenoz

I’m starting this review request on behalf of Paolo, Adrián and me. We’d like to maintain it as a group. It’s our first package and we’ll need a sponsor. We’re also the upstream maintainers of btf-rs. This is needed for the Retis package (https://bugzilla.redhat.com/show_bug.cgi?id=2295792).

Comment 1 Fedora Review Service 2024-07-04 13:57:08 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7707873
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2295793-rust-btf-rs/fedora-rawhide-x86_64/07707873-rust-btf-rs/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 Paul Pfeister 2024-07-06 22:18:15 UTC
Blocked FE-NEEDSPONSOR as you mention still requiring a sponsor

Comment 3 Fabio Valentini 2024-07-14 15:46:43 UTC
Please provide URLs to raw files, not HTML pages. Otherwise tooling will not be able to parse this ticket.

Comment 4 Antoine Tenart 2024-07-15 08:21:18 UTC
> Please provide URLs to raw files, not HTML pages. Otherwise tooling will not be able to parse this ticket.

I updated the spec file link to point to a raw content, assuming this was the issue. If this was about other links let me know.

Comment 5 Fabio Valentini 2024-07-22 10:06:30 UTC
[fedora-review-service-build]

Comment 6 Fedora Review Service 2024-07-22 22:11:27 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7773627
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2295793-rust-btf-rs/fedora-rawhide-x86_64/07773627-rust-btf-rs/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 7 Fabio Valentini 2024-08-04 17:39:50 UTC
Two minor issues:

1. It looks like you changed the License tag in the package from LGPL-2.0-or-later to LGPL-2.1-or-later.
   The latter matches the license text included in the package.

   Is this an actual issue in the crate? i.e. is LGPL-2.1-or-later the intended license (I assume so)?
   If this is the case, please file an issue with the upstream project about fixing the license expression in the crate metadata.

   Additionally, to have automated tools for collecting license information pick this fix up, you will need to use "rust2rpm -p" to patch Cargo.toml for this change too - just editing the License tag in the generated spec file is not enough in this case.

2. You dropped the subpackage corresponding to the "test_runtime" feature. Why?
   It has no additional dependencies, so I see no reason to hide this feature on the RPM metadata side.

Comment 8 Antoine Tenart 2024-08-07 09:07:53 UTC
(In reply to Fabio Valentini from comment #7)
> Two minor issues:
> 
> 1. It looks like you changed the License tag in the package from
> LGPL-2.0-or-later to LGPL-2.1-or-later.
>    The latter matches the license text included in the package.
> 
>    Is this an actual issue in the crate? i.e. is LGPL-2.1-or-later the
> intended license (I assume so)?
>    If this is the case, please file an issue with the upstream project about
> fixing the license expression in the crate metadata.

This is a known issue and I opened a PR some time ago, https://github.com/retis-org/btf-rs/pull/26. I pinged the other maintainers and it is merged now.

>    Additionally, to have automated tools for collecting license information
> pick this fix up, you will need to use "rust2rpm -p" to patch Cargo.toml for
> this change too - just editing the License tag in the generated spec file is
> not enough in this case.

OK, so Cargo.toml needs to be up to date for the tooling. Alternatively we can release a new upstream version with that fix included, IMO that would be even better.

> 2. You dropped the subpackage corresponding to the "test_runtime" feature.
> Why?
>    It has no additional dependencies, so I see no reason to hide this
> feature on the RPM metadata side.

It has no additional dependency but is a very specific feature. It enables tests requiring specific privileges (access to /sys/kernel/btf/*) instead of test files provided in the sources. There's really no use case for a consumer of that crate to use such feature (and looking at it again now we might even remove it in the future).


Thanks for the review!

Comment 9 Antoine Tenart 2024-08-08 11:49:35 UTC
(In reply to Antoine Tenart from comment #8)
> (In reply to Fabio Valentini from comment #7)
> > Two minor issues:
> > 
> > 1. It looks like you changed the License tag in the package from
> > LGPL-2.0-or-later to LGPL-2.1-or-later.
> >    The latter matches the license text included in the package.
> > 
> >    Is this an actual issue in the crate? i.e. is LGPL-2.1-or-later the
> > intended license (I assume so)?
> >    If this is the case, please file an issue with the upstream project about
> > fixing the license expression in the crate metadata.
> 
> This is a known issue and I opened a PR some time ago,
> https://github.com/retis-org/btf-rs/pull/26. I pinged the other maintainers
> and it is merged now.
> 
> >    Additionally, to have automated tools for collecting license information
> > pick this fix up, you will need to use "rust2rpm -p" to patch Cargo.toml for
> > this change too - just editing the License tag in the generated spec file is
> > not enough in this case.
> 
> OK, so Cargo.toml needs to be up to date for the tooling. Alternatively we
> can release a new upstream version with that fix included, IMO that would be
> even better.

FYI I just released btf-rs v1.1.1, which includes the license fix in Cargo.toml, and updated the spec file.

Comment 10 Fabio Valentini 2024-08-27 18:36:39 UTC
Sorry for the delay. Please post updated Spec *and* SRPM URLs that match (i.e. point to the same version).

You don't need to update Comment 0 (in fact, that makes it harder to tell that you changed something, and trips up automation), you can just add it in a new comment below.

Comment 12 Fedora Review Service 2024-09-03 14:44:36 UTC
Created attachment 2045298 [details]
The .spec file difference from Copr build 7773627 to 7974548

Comment 13 Fedora Review Service 2024-09-03 14:44:38 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7974548
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2295793-rust-btf-rs/fedora-rawhide-x86_64/07974548-rust-btf-rs/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 14 Fabio Valentini 2024-09-09 11:20:59 UTC
Looks good to me now, thank you!

===

Package was generated with rust2rpm, simplifying the review.

✅ package contains only permissible content
✅ 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 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)

===

Your sponsor should be able to help you with these tasks and with importing the package if you have any questions.

Comment 15 Fernando F. Mancera 2024-10-10 09:58:20 UTC
Hi, I am willing to sponsor the packager. And I am doing a review of the package too.

Check list for rust package:

[X] package contains only permissible content
[X] package builds and installs without errors on rawhide
[X] test suite is run and all unit tests pass
[X] latest version of the crate is packaged
[X] license matches upstream specification and is acceptable for Fedora
[X] license file is included with %license in %files
[X] package complies with Rust Packaging Guidelines

---

I will help moving it forward importing the package and setting the bugzilla assignee and dist-git.

Thank you!

Comment 16 Fedora Admin user for bugzilla script actions 2024-10-15 12:28:57 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-btf-rs

Comment 17 Fedora Update System 2024-10-15 13:56:05 UTC
FEDORA-2024-08cdcbef96 (rust-btf-rs-1.1.1-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-08cdcbef96

Comment 18 Fedora Update System 2024-10-15 14:19:27 UTC
FEDORA-2024-08cdcbef96 (rust-btf-rs-1.1.1-1.fc42) has been pushed to the Fedora 42 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.