Bug 2432458
| Summary: | Review Request: gstr - Single-header UTF-8 grapheme string library for C | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Edward J Edmonds <edward.edmonds> |
| Component: | Package Review | Assignee: | Nobody's working on this, feel free to take it <nobody> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | fedora, package-review |
| Target Milestone: | --- | Keywords: | AutomationTriaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| URL: | https://github.com/edwardedmonds/gstr | ||
| 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: | |||
| Bug Blocks: | 177841 | ||
|
Description
Edward J Edmonds
2026-01-23 20:01:30 UTC
There seems to be some problem with the following file. SRPM URL: https://download.copr.fedorainfracloud.org/results/edwardjedmonds/gstr/fedora-rawhide-x86_64/10050975-gstr/gstr-2.0.2-1.fc44.src.rpm Fetching it results in a 404 Not Found error. Please make sure the URL is correct and publicly available. --- 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. SRPM URL: https://download.copr.fedorainfracloud.org/results/edwardjedmonds/gstr/fedora-rawhide-x86_64/10051096-gstr/gstr-2.0.2-1.fc44.src.rpm Spec URL: https://download.copr.fedorainfracloud.org/results/edwardjedmonds/gstr/fedora-rawhide-x86_64/10051096-gstr/gstr.spec Copr build: https://copr.fedorainfracloud.org/coprs/build/10051484 (succeeded) Review template: https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2432458-gstr/fedora-rawhide-x86_64/10051484-gstr/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. The spelling errors are API function names (e.g., gstrlen mirrors strlen) and the package builds successfully in Copr on all enabled chroots. > BuildArch: noarch > BuildRequires: gcc You should remove the "BuildArch: noarch" bit here and move it to be a property of the devel sub-package. The way it is now, koji (the Fedora build system) will see that the package is noarch, pick a random builder of a random architecture, and build it there. This means that tests will be ran only on a single architecture. If you keep the main package archful and mark the devel sub-package as noarch, then koji will build it (and hence, test it) on all architectures. This will still produce only a single devel.noarch package. > %description > ... > %description devel Since the main package is empty, building this spec will produce only the devel subpackage. As such, you may consider moving the longer and more descriptive description to the devel subpackage. > %check > gcc -Wall -Wextra -I include -o test_gstr test/test_gstr.c You should add %{optflags} (or ${CFLAGS}) to the invocation to ensure that Fedora's compiler flags are used when building the test suite. Alternatively, since the upstream repo contains a Makefile, you could add "BuildRequires: make" and just run "%make_build test" here. Thank you for the review, Artur. I addressed your suggestions in 2.0.2-3:
- Moved BuildArch: noarch from the main package to %package devel so koji will build and test on all architectures
- Added %global debug_package %{nil} since the header-only library produces no compiled binaries (without this, the build fails on empty debugsourcefiles.list)
- Moved the longer description with the full function listing to %description devel
- Added %{optflags} to the gcc invocation in %check
Updated spec and SRPM on Copr: https://copr.fedorainfracloud.org/coprs/build/10116374 — builds and tests pass on all chroots.
Checking in on the status of this - is there anything else I need to do? |