Bug 2223443 - Review Request: frozen - A header-only, constexpr alternative to gperf for C++14 users
Summary: Review Request: frozen - A header-only, constexpr alternative to gperf for C+...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mattia Verga
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/serge-sans-paille/...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-17 21:49 UTC by Gwyn Ciesla
Modified: 2023-07-21 15:51 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-07-21 15:51:55 UTC
Type: ---
Embargoed:
mattia.verga: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6179921 to 6182551 (1013 bytes, patch)
2023-07-18 15:16 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 6182551 to 6187409 (1.30 KB, patch)
2023-07-19 19:41 UTC, Fedora Review Service
no flags Details | Diff

Description Gwyn Ciesla 2023-07-17 21:49:25 UTC
SPEC: https://fedorapeople.org/~limb/review/frozen/frozen.spec
SRPM: https://fedorapeople.org/~limb/review/frozen/frozen-1.1.1-1.fc38.src.rpm

Description: Header-only library that provides 0 cost initialization
for immutable containers, fixed-size containers, and
various algorithms.

Reproducible: Always

Comment 1 Fedora Review Service 2023-07-17 21:55:17 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6179921
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2223443-frozen/fedora-rawhide-x86_64/06179921-frozen/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 Michael J Gruber 2023-07-18 08:33:35 UTC
Comments on first sight:

Fedora review broken on copr.

Release build (instead of debug) is OK because the package is header only. (Maybe include a comment in spec or so)

Build fails on Fedora 37 because a constexpr is recognized as such. This may be due to the gcc version (in which case the spec should specify a minimum version), but might also be fixed by some of the upstream commits after 1.1.1, maybe this one:

https://github.com/serge-sans-paille/frozen/commit/f6dbec6d03debc68d18ae3e2d32ff408c6d52468

Is include.patch submitted upstream?

Comment 3 Michael J Gruber 2023-07-18 09:53:32 UTC
I'm also wondering about noarch (does this still compile and run the tests?).
What do we do for other header-only packages (guidelines don't mention them)? Should we even produce frozen (which has just doc, and which rpmlint complains about - no binaries) or just frozen-devel?

Comment 4 Gwyn Ciesla 2023-07-18 15:12:00 UTC
Turns out this fixes f37:

https://github.com/serge-sans-paille/frozen/commit/079f73cc5c6413127d47f325cbb34a607e2cb030

includes.patch is already in master.

Debug comment added.

Noarch would only build and run tests on one arch per build, and I'd rather run them on all arches.

There's no hard and fast rule about header-only packages and shipping only -devel. Boost ships a license/doc only boost rpm for example.

SPEC: https://fedorapeople.org/~limb/review/frozen/frozen.spec
SRPM: https://fedorapeople.org/~limb/review/frozen/frozen-1.1.1-2.fc38.src.rpm

Comment 5 Fedora Review Service 2023-07-18 15:16:56 UTC
Created attachment 1976362 [details]
The .spec file difference from Copr build 6179921 to 6182551

Comment 6 Fedora Review Service 2023-07-18 15:16:58 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6182551
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2223443-frozen/fedora-rawhide-x86_64/06182551-frozen/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 Mattia Verga 2023-07-19 19:08:31 UTC
For header only libraries the Packaging Guidelines have a specific section:
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_packaging_header_only_libraries

You can also look at mdds package for reference.
In brief: we don't need the main package, only the -devel subpackage with appropriate Provides: foo-static. The -devel subpackage should be noarch, while the main package is not, to run tests on all architectures.

Also, a comment in the specfile about what the two patches are about is welcome.

Comment 9 Fedora Review Service 2023-07-19 19:41:40 UTC
Created attachment 1976592 [details]
The .spec file difference from Copr build 6182551 to 6187409

Comment 10 Fedora Review Service 2023-07-19 19:41:43 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6187409
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2223443-frozen/fedora-rawhide-x86_64/06187409-frozen/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 11 Mattia Verga 2023-07-20 18:45:50 UTC
Due to fedora-review still broken I've manually reviewed the package and found it good, so marking ACCEPTED.

BTW you could probably exclude builds on ix86.

Comment 12 Gwyn Ciesla 2023-07-21 15:34:07 UTC
Thank you!

Comment 13 Fedora Admin user for bugzilla script actions 2023-07-21 15:34:13 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/frozen


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