Bug 2241418 - Review Request: smcroute - Static multicast routing for UNIX
Summary: Review Request: smcroute - Static multicast routing for UNIX
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Benson Muite
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/troglobit/smcroute
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-29 18:51 UTC by Gwyn Ciesla
Modified: 2024-10-26 03:12 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-26 02:58:58 UTC
Type: ---
Embargoed:
benson_muite: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6490257 to 6514178 (779 bytes, patch)
2023-10-10 16:14 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 6514178 to 8126224 (499 bytes, patch)
2024-10-10 13:48 UTC, Fedora Review Service
no flags Details | Diff

Description Gwyn Ciesla 2023-09-29 18:51:50 UTC
SRPM: https://fedorapeople.org/~limb/review/smcroute/smcroute-2.5.6-1.fc39.src.rpm
SPEC: https://fedorapeople.org/~limb/review/smcroute/smcroute.spec

Description:
SMCRoute is a static multicast routing daemon providing
fine grained control over the multicast forwarding cache (MFC)
in the UNIX kernel. Both IPv4 and IPv6 are fully supported.

SMCRoute can be used as an alternative to dynamic multicast
routers like mrouted, pimd, or pim6sd in setups where static
multicast routes should be maintained and/or no proper IGMP
or MLD signaling exists.

Multicast routes exist in the UNIX kernel as long as a
multicast routing daemon runs. On Linux, multiple multicast
routers can run simultaneously using different multicast
routing tables.

The full documentation of SMCRoute is available in the manual
pages, see smcrouted(8), smcroutectl(8), and smcroute.conf(5).

Reproducible: Always

Comment 1 Petr Menšík 2023-10-04 17:58:16 UTC
Please use %make_build and %make_install instead %__make custom definitions if possible.

It seems empty %_sysconfdir/%name.d should be created and shipped, that directory is referenced by example configuration.

Why is not just %_sysconfdir/smcroute.conf shipped with %config(noreplace) attribute? Why is shipped just example copy, but in /etc directory? If that example is example only and :should be copied, then it belongs to %doc where it were installed. If it should be modified by administrator, then it must have %config(noreplace) to protect changes on upgrades.

Otherwise it looks fine and ready.

Comment 3 Fedora Review Service 2023-10-04 18:31:08 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6490257
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2241418-smcroute/fedora-rawhide-x86_64/06490257-smcroute/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 4 Artur Frenszek-Iwicki 2023-10-09 22:21:22 UTC
> License: GPL-2.0-or-later and BSD-2-Clause and BSD-3-Clause and ISC and Public Domain
The SPDX spec says that the "AND", "OR" and "WITH" keywords should be matched in a case-sensitive manner.

Comment 6 Fedora Review Service 2023-10-10 16:14:10 UTC
Created attachment 1993302 [details]
The .spec file difference from Copr build 6490257 to 6514178

Comment 7 Fedora Review Service 2023-10-10 16:14:12 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6514178
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2241418-smcroute/fedora-rawhide-x86_64/06514178-smcroute/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 8 Package Review 2024-10-10 00:45:26 UTC
This is an automatic check from review-stats script.

This review request ticket hasn't been updated for some time. We're sorry
it is taking so long. If you're still interested in packaging this software
into Fedora repositories, please respond to this comment clearing the
NEEDINFO flag.

You may want to update the specfile and the src.rpm to the latest version
available and to propose a review swap on Fedora devel mailing list to increase
chances to have your package reviewed. If this is your first package and you
need a sponsor, you may want to post some informal reviews. Read more at
https://fedoraproject.org/wiki/How_to_get_sponsored_into_the_packager_group.

Without any reply, this request will shortly be considered abandoned
and will be closed.
Thank you for your patience.

Comment 9 Gwyn Ciesla 2024-10-10 13:39:21 UTC
Still valid.

Comment 11 Fedora Review Service 2024-10-10 13:48:25 UTC
Created attachment 2051389 [details]
The .spec file difference from Copr build 6514178 to 8126224

Comment 12 Fedora Review Service 2024-10-10 13:48:27 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8126224
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2241418-smcroute/fedora-rawhide-x86_64/08126224-smcroute/fedora-review/review.txt

Found issues:

- Not a valid SPDX expression 'GPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND ISC AND Public Domain'.
  Read more: https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1

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 Benson Muite 2024-10-14 17:39:07 UTC
Issues:
=======
- The License field must be a valid SPDX expression.
  Note: Not a valid SPDX expression 'GPL-2.0-or-later AND BSD-2-Clause AND
  BSD-3-Clause AND ISC AND Public Domain'.
  See: https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1


===== 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]: Header files in -devel subpackage, if present.
[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:
[ ]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[ ]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "GNU General Public License, Version 2", "Unknown or
     generated", "*No copyright* Public domain", "ISC License", "GNU
     General Public License v2.0 or later", "Apple Public Source License
     2.0 and/or BSD-4-Clause (University of California-Specific)", "BSD
     2-Clause License and/or BSD 2-clause NetBSD License", "BSD 3-Clause
     License". 63 files have unknown license. Detailed output of
     licensecheck in
     /home/FedoraPackaging/reviews/smcroute/2241418-smcroute/licensecheck.txt
[ ]: License file installed when any subpackage combination is installed.
[!]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[ ]: %build honors applicable compiler flags or justifies otherwise.
[ ]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[ ]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: 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.
[ ]: 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.
[x]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[ ]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 45610 bytes in 3 files.
[ ]: 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]: 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]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[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]: systemd_post is invoked in %post, systemd_preun in %preun, and
     systemd_postun in %postun for Systemd service files.
     Note: Systemd service file(s) in smcroute
[x]: File names are valid UTF-8.
[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.
[x]: Latest version is packaged.
[ ]: Package does not include license text files separate from upstream.
[ ]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[ ]: %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]: Fully versioned dependency in subpackages if applicable.
[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:
[x]: Rpmlint is run on debuginfo package(s).
     Note: There are rpmlint messages (see attachment).
[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.
[x]: Package should not use obsolete m4 macros
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Cannot parse rpmlint output:


Rpmlint (debuginfo)
-------------------
Cannot parse rpmlint output:



Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://github.com/troglobit/smcroute/archive/2.5.7/smcroute-2.5.7.tar.gz :
  CHECKSUM(SHA256) this package     : 5963f9383564c641eb81be41d3b6743339adb415a252bed1945ad0f9e53bdd52
  CHECKSUM(SHA256) upstream package : 5963f9383564c641eb81be41d3b6743339adb415a252bed1945ad0f9e53bdd52


Requires
--------
smcroute (rpmlib, GLIBC filtered):
    /bin/sh
    /usr/bin/sh
    libc.so.6()(64bit)
    rtld(GNU_HASH)

smcroute-debuginfo (rpmlib, GLIBC filtered):

smcroute-debugsource (rpmlib, GLIBC filtered):



Provides
--------
smcroute:
    smcroute
    smcroute(x86-64)

smcroute-debuginfo:
    debuginfo(build-id)
    smcroute-debuginfo
    smcroute-debuginfo(x86-64)

smcroute-debugsource:
    smcroute-debugsource
    smcroute-debugsource(x86-64)



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

Comments:
a) Public Domain probably should be LicenseRef-Fedora-Public-Domain see
https://docs.fedoraproject.org/en-US/legal/allowed-licenses/
b) Consider listing contents in sbin directly, instead of
%{_sbindir}/smcroute*
use
%{_sbindir}/smcroute
%{_sbindir}/smcroutectl
%{_sbindir}/smcrouted
c) is it possible to run a smoke test, for example
smcroute --help
Most of the tests require network access, so will fail in Koji.
d) Should libcap-devel and systemd-devel be added as build dependencies to build
optional features?
e) Is it possible to add a license breakdown. The license check lists:
*No copyright* Public domain
----------------------------
smcroute-2.5.7-build/smcroute-2.5.7/smcroute

Apple Public Source License 2.0 and/or BSD-4-Clause (University of California-Specific)
---------------------------------------------------------------------------------------
smcroute-2.5.7-build/smcroute-2.5.7/src/ip_mroute.h

BSD 2-Clause License and/or BSD 2-clause NetBSD License
-------------------------------------------------------
smcroute-2.5.7-build/smcroute-2.5.7/src/pidfile.c

BSD 3-Clause License
--------------------
smcroute-2.5.7-build/smcroute-2.5.7/src/queue.h

GNU General Public License v2.0 or later
----------------------------------------
smcroute-2.5.7-build/smcroute-2.5.7/src/cap.c
smcroute-2.5.7-build/smcroute-2.5.7/src/iface.c
smcroute-2.5.7-build/smcroute-2.5.7/src/inet.c
smcroute-2.5.7-build/smcroute-2.5.7/src/inet.h
smcroute-2.5.7-build/smcroute-2.5.7/src/ipc.c
smcroute-2.5.7-build/smcroute-2.5.7/src/log.c
smcroute-2.5.7-build/smcroute-2.5.7/src/mcgroup.c
smcroute-2.5.7-build/smcroute-2.5.7/src/mrdisc.c
smcroute-2.5.7-build/smcroute-2.5.7/src/mrdisc.h
smcroute-2.5.7-build/smcroute-2.5.7/src/mroute.c
smcroute-2.5.7-build/smcroute-2.5.7/src/msg.c
smcroute-2.5.7-build/smcroute-2.5.7/src/notify.c
smcroute-2.5.7-build/smcroute-2.5.7/src/smcroutectl.c
smcroute-2.5.7-build/smcroute-2.5.7/src/smcrouted.c
smcroute-2.5.7-build/smcroute-2.5.7/src/socket.c
smcroute-2.5.7-build/smcroute-2.5.7/src/socket.h
smcroute-2.5.7-build/smcroute-2.5.7/src/timer.c
smcroute-2.5.7-build/smcroute-2.5.7/src/timer.h

GNU General Public License, Version 2
-------------------------------------
smcroute-2.5.7-build/smcroute-2.5.7/COPYING

ISC License
-----------
smcroute-2.5.7-build/smcroute-2.5.7/lib/strlcat.c
smcroute-2.5.7-build/smcroute-2.5.7/lib/strlcpy.c
smcroute-2.5.7-build/smcroute-2.5.7/lib/tempfile.c
smcroute-2.5.7-build/smcroute-2.5.7/lib/utimensat.c
smcroute-2.5.7-build/smcroute-2.5.7/src/conf.c
smcroute-2.5.7-build/smcroute-2.5.7/src/kern.c
smcroute-2.5.7-build/smcroute-2.5.7/src/kern.h
smcroute-2.5.7-build/smcroute-2.5.7/src/script.c

Comment 14 Gwyn Ciesla 2024-10-15 13:01:25 UTC
Addressed A, B, D and E.

Many of the tests require root as well. I've enabled the ones that seem to pass without root or network.

SRPM: https://fedorapeople.org/~limb/review/smcroute/smcroute-2.5.7-1.fc40.src.rpm
SPEC: https://fedorapeople.org/~limb/review/smcroute/smcroute.spec

Comment 15 Benson Muite 2024-10-17 15:43:27 UTC
Koji build using updated spec file:
https://koji.fedoraproject.org/koji/taskinfo?taskID=124923279

smcroute-2.5.7/src/ip_mroute.h is not used in the binary, so
its license are not included.

When importing, please use the updated spec file, the srpm above does
not use it.

Approved.

Comment 16 Gwyn Ciesla 2024-10-17 18:33:26 UTC
Thank you, will do!

Comment 17 Fedora Admin user for bugzilla script actions 2024-10-17 18:34:10 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/smcroute

Comment 18 Fedora Update System 2024-10-17 19:11:54 UTC
FEDORA-2024-a5ede691eb (smcroute-2.5.7-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-a5ede691eb

Comment 19 Fedora Update System 2024-10-17 19:11:54 UTC
FEDORA-2024-06f21005e8 (smcroute-2.5.7-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-06f21005e8

Comment 20 Fedora Update System 2024-10-18 01:47:57 UTC
FEDORA-2024-06f21005e8 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-06f21005e8 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-06f21005e8

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

Comment 21 Fedora Update System 2024-10-18 01:57:44 UTC
FEDORA-2024-a5ede691eb 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-a5ede691eb \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-a5ede691eb

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

Comment 22 Fedora Update System 2024-10-26 02:58:58 UTC
FEDORA-2024-06f21005e8 (smcroute-2.5.7-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2024-10-26 03:12:20 UTC
FEDORA-2024-a5ede691eb (smcroute-2.5.7-2.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.