Bug 2463266
| Summary: | Review Request: gobject-linter - A tree-sitter-based linter for GObject/C applications | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | W. Michael Petullo <mike> |
| Component: | Package Review | Assignee: | Fabio Valentini <decathorpe> |
| Status: | ASSIGNED --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | decathorpe, package-review |
| Target Milestone: | --- | Flags: | decathorpe:
fedora-review?
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://github.com/bilelmoussaoui/gobject-linter | ||
| 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: | 2468678 | ||
| Bug Blocks: | |||
|
Description
W. Michael Petullo
2026-04-27 18:39:54 UTC
Taking this review. Initial comments: 1. This isn't following the Naming guidelines for Rust packages. It's not a Rust crate packaged from crates.io, so it MUST NOT use the "rust-" name prefix. In general, I would recommend that you just follow the template documented here: https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_non_crate_rust_project It should also make some other things easier (i.e. no defining "cargo_install_lib 0" necessary). 2. The package isn't following the guidelines for snapshot based versions. The snapshot information should now be in Version, not in Release. Use something like "Version: 0~%{commitdate}.git%{shortcommit}" instead. 3. The package uses %autochangelog but not %autorelease. This is often broken. Either use both or neither, and you SHOULD use both. 4. The "License" tag is incomplete. Even without having built the package, I am 100% certain that the output of "%cargo_license_summary" during the build will not just be one line containing "MIT". The License tag needs to reflect *all* dependencies that get statically linked into the final executable. You also generate the LICENSE.dependencies file, but then don't use it. It needs to be listed as "%license LICENSE.dependencies" in the %files list. 5. The fact that the project currently builds successfully seems to be a lucky accident. The project contains a sub-crate at "gobject-ast" that is referenced as a path-based dependency, but it's not set up as a "workspace" member. This only works by accident right now, and is probably not intentional in the upstream project. It might be good to fix this. Spec URL: https://www.flyn.org/SRPMS/goblint.spec SRPM URL: https://www.flyn.org/SRPMS/goblint-0~20260427.git4bde7b0-1.fc44.src.rpm Description: A tree-sitter-based linter for GObject/C applications Fedora Account System Username: mikep (1) Drop "rust-" prefix from package name. (2) Move snapshot information to version rather than release. (3) Use %autorelease. (4) Update License tag. I am not sure how to normalize the license terms, so this might require more work. (5) Please see https://github.com/bilelmoussaoui/goblint/issues/77. Spec URL: https://www.flyn.org/SRPMS/goblint.spec SRPM URL: https://www.flyn.org/SRPMS/goblint-0~20260504.gitf58e4d8-1.fc44.src.rpm Description: A tree-sitter-based linter for GObject/C applications Fedora Account System Username: mikep (5) I notified upstream about the sub-crate issue (https://github.com/bilelmoussaoui/goblint/issues/77), and Bilal Elmoussaoui closed the issue as fixed after making a change today. I updated the package to use this most recent commit. Spec URL: https://www.flyn.org/SRPMS/gobject-linter.spec SRPM URL: https://www.flyn.org/SRPMS/gobject-linter-0~20260505.git0a8b69c-1.fc44.src.rpm Description: A tree-sitter-based linter for GObject/C applications Fedora Account System Username: mikep - Changed name of package to reflect upstream rename that happened today (https://github.com/bilelmoussaoui/gobject-linter/issues/74). Unfortunately, this new version requires crate(unidiff/default) >= 0.4.0 and < 0.5.0~, which does not yet appear in Fedora Rawhide. Copr build: https://copr.fedorainfracloud.org/coprs/build/10427244 (failed) Build log: https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2463266-gobject-linter/fedora-rawhide-x86_64/10427244-gobject-linter/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. Thanks for the update - I'll take a look. [fedora-review-service-build] Copr build: https://copr.fedorainfracloud.org/coprs/build/10452586 (succeeded) Review template: https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2463266-gobject-linter/fedora-rawhide-x86_64/10452586-gobject-linter/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. |