Bug 1853081 - Review Request: mlxbf-bfscripts - Helper scripts for Mellanox BlueField systems
Summary: Review Request: mlxbf-bfscripts - Helper scripts for Mellanox BlueField systems
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1835452 1846139
Blocks: FE-DEADREVIEW 1656141 1858600
TreeView+ depends on / blocked
 
Reported: 2020-07-01 21:50 UTC by Spencer Lingard
Modified: 2023-07-21 00:45 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-07-21 00:45:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
coverity scan report (38.88 KB, application/x-xz)
2020-07-02 02:09 UTC, Honggang LI
no flags Details

Description Spencer Lingard 2020-07-01 21:50:38 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/slingard/mlxbf-bfscripts/fedora-rawhide-aarch64/01515987-mlxbf-bfscripts/bfscripts.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/slingard/mlxbf-bfscripts/fedora-rawhide-aarch64/01515987-mlxbf-bfscripts/mlxbf-bfscripts-3.0.0~beta1-1.fc33.src.rpm
Scratch Koji URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=46443564
Source Repository: https://github.com/Mellanox/bfscripts/tree/master
Fedora Account System Username: slingard

Description: bfscripts contains a number of helper scripts used for system management of Mellanox BlueField-based systems. This includes boot firmware update helpers, and configuration scripts.

Comment 1 Honggang LI 2020-07-02 02:09:32 UTC
Created attachment 1699586 [details]
coverity scan report

please fix the defects reported by coverity. thanks

Comment 3 Artur Frenszek-Iwicki 2020-07-22 21:33:40 UTC
>Source: mlxbf-bfscripts.tar.gz
Ideally this should be a downloadable URL. Are you using the "3.0.beta1" git tag? Then you could use "https://github.com/Mellanox/bfscripts/archive/3.0.beta1/bfscripts-3.0.beta1.tar.gz" here.

>%{__install} bfbootmgr        %{installdir}
>%{__install} man/bfbootmgr.8  %{man8dir}
>...
1. Macro forms of system executables are discouraged.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_macros
2. Use the "-p" flag to preserve timestamps.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_timestamps

Comment 4 Spencer Lingard 2020-07-24 23:10:05 UTC
New version for review.

Spec URL: https://download.copr.fedorainfracloud.org/results/slingard/mlxbf-bfscripts/fedora-rawhide-aarch64/01575325-mlxbf-bfscripts/mlxbf-bfscripts.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/slingard/mlxbf-bfscripts/fedora-rawhide-aarch64/01575325-mlxbf-bfscripts/mlxbf-bfscripts-3.0.0~beta1-3.fc33.src.rpm
Scratch Koji URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=47787034

(In reply to Artur Iwicki from comment #3)
> >Source: mlxbf-bfscripts.tar.gz
> Ideally this should be a downloadable URL. Are you using the "3.0.beta1" git
> tag? Then you could use
> "https://github.com/Mellanox/bfscripts/archive/3.0.beta1/bfscripts-3.0.beta1.
> tar.gz" here.

The spec file and SRPM are generated by rpkg-util. I put a comment here that shows how to create the source files needed.

> >%{__install} bfbootmgr        %{installdir}
> >%{__install} man/bfbootmgr.8  %{man8dir}
> >...
> 1. Macro forms of system executables are discouraged.
> https://docs.fedoraproject.org/en-US/packaging-guidelines/#_macros

Done.

> 2. Use the "-p" flag to preserve timestamps.
> https://docs.fedoraproject.org/en-US/packaging-guidelines/#_timestamps

Done.

Comment 5 Robert-André Mauchin 🐧 2020-08-25 16:06:16 UTC
 - Not needed

%build
exit 0

 - This is not needed, it is already the default:

%attr(644, root, root)


Package approved, please fix the aforementioned issues before import.

Maybe needinfo your reviewers in the dependencies, otherwise you won't be able to install it.


Package Review
==============

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


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

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.
[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", "BSD 2-clause "Simplified" License",
     "BSD 3-clause "New" or "Revised" License". 28 files have unknown
     license. Detailed output of licensecheck in
     /home/bob/packaging/review/mlxbf-bfscripts/review-mlxbf-
     bfscripts/licensecheck.txt
[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.
[-]: 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.
[x]: Package contains systemd file(s) if in need.
[x]: 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 10240 bytes in 1 files.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[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 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 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 mlxbf-bfscripts
[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.
[x]: 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.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

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

Generic:
[x]: Rpmlint is run on all installed packages.
[x]: Spec file according to URL is the same as in SRPM.



Rpmlint
-------
Checking: mlxbf-bfscripts-3.0.0~beta1-3.fc34.noarch.rpm
          mlxbf-bfscripts-3.0.0~beta1-3.fc34.src.rpm
mlxbf-bfscripts.noarch: W: empty-%postun
mlxbf-bfscripts.src: W: invalid-url Source0: mlxbf-bfscripts.tar.gz
2 packages and 0 specfiles checked; 0 errors, 2 warnings.

Comment 6 Alaa Hleihel (NVIDIA Mellanox) 2021-05-04 12:30:23 UTC
Hi, 

What is the status of adding this package to Fedora?

Thanks,
Alaa

Comment 7 Robert-André Mauchin 🐧 2021-05-07 17:20:09 UTC
Sorry I'm more ausy these days.

Comment 8 Robert-André Mauchin 🐧 2021-05-07 17:20:27 UTC
Refreshed.

Comment 9 Alaa Hleihel (NVIDIA Mellanox) 2021-05-10 12:36:48 UTC
Thanks!

Spencer, I think now you need to request-repo and push the package to it.

Comment 10 Package Review 2022-06-20 07:11:11 UTC
Stalled review, resetting ticket status.

Comment 11 Package Review 2023-06-21 00:45:23 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 12 Package Review 2023-07-21 00:45:44 UTC
This is an automatic action taken by review-stats script.

The ticket submitter failed to clear the NEEDINFO flag in a month.
As per https://fedoraproject.org/wiki/Policy_for_stalled_package_reviews
we consider this ticket as DEADREVIEW and proceed to close it.


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