Bug 2266450 - Review Request: rust-fts-sys - File hierarchy traversal functions (FTS)
Summary: Review Request: rust-fts-sys - File hierarchy traversal functions (FTS)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/fts-sys
Whiteboard:
Depends On:
Blocks: 2266451
TreeView+ depends on / blocked
 
Reported: 2024-02-27 21:50 UTC by Michel Lind
Modified: 2024-09-17 02:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-09-08 18:08:44 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 7066109 to 7953294 (983 bytes, patch)
2024-08-29 16:27 UTC, Fedora Review Service
no flags Details | Diff

Description Michel Lind 2024-02-27 21:50:49 UTC
Spec URL: https://salimma.fedorapeople.org/specs/rust-fts-sys.spec
SRPM URL: https://salimma.fedorapeople.org/specs/rust-fts-sys-0.2.8-1.fc39.src.rpm

Description:
File hierarchy traversal functions (FTS).

Fedora Account System Username: salimma

Comment 1 Fedora Review Service 2024-02-27 22:06:14 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7066109
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2266450-rust-fts-sys/fedora-rawhide-x86_64/07066109-rust-fts-sys/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 2024-02-29 16:18:29 UTC
Package looks fine, just one weird thing I noticed in Cargo.toml:

> links = "c"

This looks wrong. I don't think this crate should claim that it has exclusive rights to link against "c". Or is it a typo and it should be "libc"? Even then, it would be wrong, I think.

Comment 3 Fabio Valentini 2024-02-29 16:22:09 UTC
PS: You might also want to add a dependency on glibc-devel - looks like <fts.h> that is imported by this package is from glibc.

Comment 4 Michel Lind 2024-02-29 17:04:08 UTC
huh, yes. It sounds like it should be libc which explains the dependency on glibc-devel anyway? I wonder how it got transitively pulled in.

Comment 5 Fabio Valentini 2024-03-05 17:02:07 UTC
From what I can tell:

- remove `links = "c"` from Cargo.toml
- add glibc-devel as build dependency and dependency for the -devel package

from the cargo docs:

> Primarily, Cargo requires that there is at most one package per links value.
> In other words, it is forbidden to have two packages link to the same native library.

ref. https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key

I'm pretty sure this means that `links = "c"` should be removed from upstream as well, and that this is only working by accident, because not even the "libc" crate (*the* libc bindings) claims to link with libc: https://github.com/rust-lang/libc/blob/main/Cargo.toml

Comment 6 Fabio Valentini 2024-07-05 16:51:14 UTC
Are you still interested in this package?

Comment 7 Michel Lind 2024-07-26 21:00:47 UTC
Yep, need it for uu_chcon. Will get back to it once we rebase to the version of uu we need for the current version of nushell

Comment 8 Michel Lind 2024-08-29 03:10:18 UTC
update, still working on this - needed to enable the selinux feature of coreutils

Comment 9 Michel Lind 2024-08-29 03:25:54 UTC
Updated; tested and building rust-uu_chcon against it works

Spec URL: https://salimma.fedorapeople.org/specs/rust-fts-sys.spec
SRPM URL: https://salimma.fedorapeople.org/specs/rust-fts-sys-0.2.9-1.fc40.src.rpm

Comment 10 Michel Lind 2024-08-29 03:26:54 UTC
❯ cat rust2rpm.toml
[package]
cargo-toml-patch-comments = [
  "drop links = \"c\"",
]

[requires]
build = ["glibc-devel"]
lib = ["glibc-devel"]

Comment 11 Fedora Review Service 2024-08-29 16:27:12 UTC
Created attachment 2045035 [details]
The .spec file difference from Copr build 7066109 to 7953294

Comment 12 Fedora Review Service 2024-08-29 16:27:14 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7953294
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2266450-rust-fts-sys/fedora-rawhide-x86_64/07953294-rust-fts-sys/fedora-review/review.txt

Found issues:

- No gcc, gcc-c++ or clang found in BuildRequires
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/C_and_C++/

Please know that there can be false-positives.

---
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 13 Fabio Valentini 2024-09-08 12:47:05 UTC
Thanks - looks good to me!

===

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)

Comment 14 Fedora Admin user for bugzilla script actions 2024-09-08 16:22:46 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-fts-sys

Comment 15 Michel Lind 2024-09-08 17:55:38 UTC
Thank you!

Comment 16 Fedora Update System 2024-09-08 18:06:26 UTC
FEDORA-2024-42d3ffde85 (rust-fts-sys-0.2.9-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-42d3ffde85

Comment 17 Fedora Update System 2024-09-08 18:08:44 UTC
FEDORA-2024-42d3ffde85 (rust-fts-sys-0.2.9-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2024-09-08 19:51:03 UTC
FEDORA-2024-ec89486d77 (rust-fts-sys-0.2.9-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ec89486d77

Comment 19 Fedora Update System 2024-09-08 19:51:03 UTC
FEDORA-2024-576ffacbc8 (rust-fts-sys-0.2.9-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-576ffacbc8

Comment 20 Fedora Update System 2024-09-08 19:51:04 UTC
FEDORA-EPEL-2024-708f932e41 (rust-fts-sys-0.2.9-1.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-708f932e41

Comment 21 Fedora Update System 2024-09-08 19:51:04 UTC
FEDORA-2024-91bdb7967a (rust-fts-sys-0.2.9-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-91bdb7967a

Comment 22 Fedora Update System 2024-09-09 01:12:28 UTC
FEDORA-EPEL-2024-708f932e41 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-708f932e41

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 23 Fedora Update System 2024-09-09 02:07:54 UTC
FEDORA-2024-ec89486d77 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-ec89486d77 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ec89486d77

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 24 Fedora Update System 2024-09-09 15:19:37 UTC
FEDORA-2024-576ffacbc8 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-576ffacbc8 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-576ffacbc8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 25 Fedora Update System 2024-09-09 19:25:51 UTC
FEDORA-2024-91bdb7967a has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-91bdb7967a \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-91bdb7967a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 26 Fedora Update System 2024-09-13 20:55:23 UTC
FEDORA-2024-ec89486d77 (rust-fts-sys-0.2.9-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 27 Fedora Update System 2024-09-17 00:43:01 UTC
FEDORA-EPEL-2024-708f932e41 (rust-fts-sys-0.2.9-1.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 28 Fedora Update System 2024-09-17 02:07:32 UTC
FEDORA-2024-576ffacbc8 (rust-fts-sys-0.2.9-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 29 Fedora Update System 2024-09-17 02:58:18 UTC
FEDORA-2024-91bdb7967a (rust-fts-sys-0.2.9-1.fc40) has been pushed to the Fedora 40 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.