Bug 2367753 - Review Request: span - std::span implementation for C++11 and later
Summary: Review Request: span - std::span implementation for C++11 and later
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Benson Muite
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/tcbrindle/span
Whiteboard:
Depends On:
Blocks: 2366506
TreeView+ depends on / blocked
 
Reported: 2025-05-21 09:44 UTC by Cristian Le
Modified: 2025-06-04 03:34 UTC (History)
2 users (show)

Fixed In Version: span-0~20250521git836dc6a-1.fc43
Clone Of:
Environment:
Last Closed: 2025-05-26 12:32:01 UTC
Type: ---
Embargoed:
benson_muite: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 9069294 to 9080071 (1.02 KB, patch)
2025-05-26 08:58 UTC, Fedora Review Service
no flags Details | Diff

Description Cristian Le 2025-05-21 09:44:27 UTC
Spec URL: https://lecris.fedorapeople.org/reviews/span/span.spec
SRPM URL: https://lecris.fedorapeople.org/reviews/span/span-0~20250521git836dc6a-1.fc43.src.rpm

Description:
Single-header implementation of C++20's std::span, conforming to the C++20
committee draft. It is compatible with C++11, but will use newer language
features if they are available.

It differs from the implementation in the Microsoft GSL in that it is
single-header and does not depend on any other GSL facilities. It also works
with C++11, while the GSL version requires C++14.

Fedora Account System Username: lecris


Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=133051114

Comment 1 Fedora Review Service 2025-05-21 09:47:48 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9069294
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2367753-span/fedora-rawhide-x86_64/09069294-span/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 Benson Muite 2025-05-24 08:32:48 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[!]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "Boost Software License 1.0", "*No
     copyright* Boost Software License 1.0". 10 files have unknown license.
     Detailed output of licensecheck in /home/fedora-
     packaging/reviews/span/2367753-span/licensecheck.txt
[!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/include/tcb
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/include/tcb
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[x]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[-]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[ ]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: The License field must be a valid SPDX expression.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[ ]: Package functions as described.
[ ]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[!]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[ ]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Spec file as given by url is not the same as in SRPM (see
     attached diff).
     See: (this test has no URL)
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.


Rpmlint
-------
Checking: span-devel-0~20250521git836dc6a-1.fc43.x86_64.rpm
          span-0~20250521git836dc6a-1.fc43.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.6.1
configuration:
    /usr/lib/python3.13/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpb4k1rbuz')]
checks: 32, packages: 2

span.src: W: summary-not-capitalized std::span implementation for C++11 and later
span.spec: W: patch-not-applied Patch0: https://github.com/tcbrindle/span/pull/53.patch
span.spec: W: patch-not-applied Patch1: span-Fedora_patches.patch
span-devel.x86_64: W: no-documentation
 2 packages and 0 specfiles checked; 0 errors, 4 warnings, 8 filtered, 0 badness; has taken 0.2 s 




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.7.0
configuration:
    /usr/lib/python3.13/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 1

span-devel.x86_64: W: no-documentation
 1 packages and 0 specfiles checked; 0 errors, 1 warnings, 4 filtered, 0 badness; has taken 0.0 s 



Source checksums
----------------
https://github.com/tcbrindle/span/archive/836dc6a0efd9849cb194e88e4aa2387436bb079b/span-836dc6a0efd9849cb194e88e4aa2387436bb079b.tar.gz :
  CHECKSUM(SHA256) this package     : 66650479f85b92c6a6230706e4ac4a1bca18a7c7102fc7e02ad332f86548c9b6
  CHECKSUM(SHA256) upstream package : 66650479f85b92c6a6230706e4ac4a1bca18a7c7102fc7e02ad332f86548c9b6


Requires
--------
span-devel (rpmlib, GLIBC filtered):



Provides
--------
span-devel:
    span-devel
    span-devel(x86-64)
    span-static



Diff spec file in url and in SRPM
---------------------------------
--- /home/fedora-packaging/reviews/span/2367753-span/srpm/span.spec	2025-05-24 10:52:20.262176008 +0300
+++ /home/fedora-packaging/reviews/span/2367753-span/srpm-unpacked/span.spec	2025-05-21 03:00:00.000000000 +0300
@@ -1,2 +1,12 @@
+## START: Set by rpmautospec
+## (rpmautospec version 0.8.1)
+## RPMAUTOSPEC: autorelease, autochangelog
+%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
+    release_number = 1;
+    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
+    print(release_number + base_release_number - 1);
+}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
+## END: Set by rpmautospec
+
 %global debug_package %{nil}
 
@@ -70,3 +80,6 @@
 
 %changelog
-%autochangelog
+## START: Generated by rpmautospec
+* Wed May 21 2025 John Doe <packager> - 0~20250521git836dc6a-1
+- Uncommitted changes
+## END: Generated by rpmautospec


Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -b 2367753
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, C/C++, Shell-api
Disabled plugins: PHP, R, Ocaml, Python, SugarActivity, Java, fonts, Perl, Haskell
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Comments:
a) Please add an explanation for what the patches do.
b) Please package and mark the license file
%license LICENSE_1_0.txt
c) Please package the README file
%doc README.md
d) [!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/include/tcb
please add
%dir %{_includedir}/tcb
or change
%{_includedir}/tcb/span.hpp
to
%{_includedir}/tcb/
e)
span.src: W: summary-not-capitalized std::span implementation for C++11 and later
span.spec: W: patch-not-applied Patch0: https://github.com/tcbrindle/span/pull/53.patch
span.spec: W: patch-not-applied Patch1: span-Fedora_patches.patch

Comment 3 Cristian Le 2025-05-26 08:54:50 UTC
Spec URL: https://lecris.fedorapeople.org/reviews/span/span.spec
SRPM URL: https://lecris.fedorapeople.org/reviews/span/span-0~20250521git836dc6a-1.fc43.src.rpm

Thanks for catching all the issues. The remaining rpmlint issues is because of rpmlint#1074.

Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=133212509

Comment 4 Fedora Review Service 2025-05-26 08:58:50 UTC
Created attachment 2091583 [details]
The .spec file difference from Copr build 9069294 to 9080071

Comment 5 Fedora Review Service 2025-05-26 08:58:52 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9080071
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2367753-span/fedora-rawhide-x86_64/09080071-span/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 Cristian Le 2025-05-26 10:12:55 UTC
Yes, that's according to forgemeta design and how I chose the full sha in the `%commit` instead of the truncated one. Effectively it does not make a difference since `%forgeautosetup` accounts for the difference in the `-n`, and both of them should be acceptable to Github as well.

The `Version` is truncated properly which is the important part.

Comment 8 Benson Muite 2025-05-26 10:47:48 UTC
Ok. It does download. Approved.

Review of one of:
https://bugzilla.redhat.com/show_bug.cgi?id=2368379
https://bugzilla.redhat.com/show_bug.cgi?id=2367064
https://bugzilla.redhat.com/show_bug.cgi?id=2368534

would be appreciated if time allows.

Comment 9 Cristian Le 2025-05-26 12:15:05 UTC
Thank you for the review, Benson

Comment 10 Fedora Admin user for bugzilla script actions 2025-05-26 12:22:00 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/span

Comment 12 Fedora Update System 2025-05-26 12:28:19 UTC
FEDORA-2025-d1e4f11e3d (span-0~20250521git836dc6a-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d1e4f11e3d

Comment 13 Fedora Update System 2025-05-26 12:32:01 UTC
FEDORA-2025-d1e4f11e3d (span-0~20250521git836dc6a-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2025-05-26 13:15:14 UTC
FEDORA-2025-d9d132a713 (span-0~20250521git836dc6a-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d9d132a713

Comment 15 Fedora Update System 2025-05-26 13:15:15 UTC
FEDORA-2025-142daa89c4 (span-0~20250521git836dc6a-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-142daa89c4

Comment 16 Fedora Update System 2025-05-27 01:08:21 UTC
FEDORA-2025-142daa89c4 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-142daa89c4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-142daa89c4

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

Comment 17 Fedora Update System 2025-05-27 01:41:13 UTC
FEDORA-2025-d9d132a713 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d9d132a713`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d9d132a713

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

Comment 18 Fedora Update System 2025-06-04 02:10:06 UTC
FEDORA-2025-142daa89c4 (span-0~20250521git836dc6a-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 19 Fedora Update System 2025-06-04 03:34:09 UTC
FEDORA-2025-d9d132a713 (span-0~20250521git836dc6a-1.fc41) has been pushed to the Fedora 41 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.