Bug 2275853 - Review Request: udev-hid-bpf - HID-BPF quirk loader tool
Summary: Review Request: udev-hid-bpf - HID-BPF quirk loader tool
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Parag AN(पराग)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-18 04:10 UTC by Peter Hutterer
Modified: 2024-05-30 01:21 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-15 06:08:50 UTC
Type: ---
Embargoed:
panemade: fedora-review+


Attachments (Terms of Use)

Description Peter Hutterer 2024-04-18 04:10:32 UTC
Spec URL: https://people.freedesktop.org/~whot/rpms/udev-hid-bpf.spec
SRPM URL: https://people.freedesktop.org/~whot/rpms/udev-hid-bpf-1.0.0.20240417-1.fc40.src.rpm
Description: udev-hid-bpf is a loader for HID eBPF programs aimed at making it simple  to develop and test eBPF programs for HID devices.
Fedora Account System Username: whot

Comment 1 Parag AN(पराग) 2024-05-14 07:32:59 UTC
Package Review
==============

Suggestions:
1) I observed that
$ rpm -qf /usr/lib/firmware/hid/bpf
udev-hid-bpf-1.0.0.20240417-1.fc41.x86_64
$ rpm -qf /usr/lib/firmware/hid
file /usr/lib/firmware/hid is not owned by any package

so this package should also own /usr/lib/firmware/hid directory. 

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



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

C/C++:
[-]: Provides: bundled(gnulib) in place as required.
     Note: Sources not installed
[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.
[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", "GNU General Public License, Version
     2", "*No copyright* GNU General Public License, Version 2", "*No
     copyright* MIT License". 32 files have unknown license. Detailed
     output of licensecheck in /home/test/2275853-udev-hid-
     bpf/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/doc, /usr/src/debug, /usr/lib/udev,
     /usr/lib/firmware/hid, /usr/bin, /usr/share/licenses, /usr/share/man,
     /usr/lib/udev/hwdb.d, /usr/share/man/man1, /usr, /usr/src, /usr/share,
     /usr/lib, /usr/lib/firmware, /usr/lib/udev/rules.d
[ ]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib/firmware/hid,
     /usr/share/doc, /usr/bin, /usr/src, /usr/share/licenses, /usr/share,
     /usr/lib, /usr/lib/firmware, /usr/share/man, /usr/lib/udev/hwdb.d,
     /usr/lib/udev/rules.d, /usr/share/man/man1, /usr, /usr/src/debug,
     /usr/lib/udev
[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.
[-]: 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]: Useful -debuginfo package or justification otherwise.
[-]: Package is not known to require an ExcludeArch tag.
[x]: 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]: 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 3121 bytes in 1 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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in udev-
     hid-bpf-testing , udev-hid-bpf-stable
[?]: Package functions as described.
[x]: 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.
[x]: 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:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[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]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: udev-hid-bpf-1.0.0.20240417-1.fc41.x86_64.rpm
          udev-hid-bpf-testing-1.0.0.20240417-1.fc41.x86_64.rpm
          udev-hid-bpf-stable-1.0.0.20240417-1.fc41.x86_64.rpm
          udev-hid-bpf-debuginfo-1.0.0.20240417-1.fc41.x86_64.rpm
          udev-hid-bpf-debugsource-1.0.0.20240417-1.fc41.x86_64.rpm
          udev-hid-bpf-1.0.0.20240417-1.fc41.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.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/tmph6xgdlb5')]
checks: 32, packages: 6

udev-hid-bpf.src: E: spelling-error ('eBPF', '%description -l en_US eBPF -> Feb')
udev-hid-bpf.x86_64: E: spelling-error ('eBPF', '%description -l en_US eBPF -> Feb')
udev-hid-bpf-stable.x86_64: E: spelling-error ('eBPF', 'Summary(en_US) eBPF -> Feb')
udev-hid-bpf-stable.x86_64: E: spelling-error ('eBPF', '%description -l en_US eBPF -> Feb')
udev-hid-bpf-testing.x86_64: E: spelling-error ('eBPF', 'Summary(en_US) eBPF -> Feb')
udev-hid-bpf-testing.x86_64: E: spelling-error ('eBPF', '%description -l en_US eBPF -> Feb')
udev-hid-bpf-stable.x86_64: W: only-non-binary-in-usr-lib
udev-hid-bpf-stable.x86_64: W: no-documentation
udev-hid-bpf-testing.x86_64: W: no-documentation
udev-hid-bpf-stable.x86_64: E: no-binary
 6 packages and 0 specfiles checked; 7 errors, 3 warnings, 25 filtered, 7 badness; has taken 1.3 s 




Rpmlint (debuginfo)
-------------------
Checking: udev-hid-bpf-debuginfo-1.0.0.20240417-1.fc41.x86_64.rpm
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.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/tmpd6953v3c')]
checks: 32, packages: 1

 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 5 filtered, 0 badness; has taken 0.4 s 





Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.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: 5

udev-hid-bpf-testing.x86_64: E: spelling-error ('eBPF', 'Summary(en_US) eBPF -> Feb')
udev-hid-bpf-testing.x86_64: E: spelling-error ('eBPF', '%description -l en_US eBPF -> Feb')
udev-hid-bpf.x86_64: E: spelling-error ('eBPF', '%description -l en_US eBPF -> Feb')
udev-hid-bpf-stable.x86_64: E: spelling-error ('eBPF', 'Summary(en_US) eBPF -> Feb')
udev-hid-bpf-stable.x86_64: E: spelling-error ('eBPF', '%description -l en_US eBPF -> Feb')
udev-hid-bpf-stable.x86_64: W: only-non-binary-in-usr-lib
udev-hid-bpf-testing.x86_64: W: no-documentation
udev-hid-bpf-stable.x86_64: W: no-documentation
udev-hid-bpf-stable.x86_64: E: no-binary
 5 packages and 0 specfiles checked; 6 errors, 3 warnings, 22 filtered, 6 badness; has taken 0.6 s 



Source checksums
----------------
https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/archive/1.0.0-20240417/udev-hid-bpf-1.0.0-20240417.tar.bz2 :
  CHECKSUM(SHA256) this package     : e3b1c6496fc14bd5ea1ca12c68fde8eb85a4ffaa1445dd8bc597b1c19171776e
  CHECKSUM(SHA256) upstream package : e3b1c6496fc14bd5ea1ca12c68fde8eb85a4ffaa1445dd8bc597b1c19171776e


Requires
--------
udev-hid-bpf (rpmlib, GLIBC filtered):
    ld-linux-x86-64.so.2()(64bit)
    libc.so.6()(64bit)
    libelf.so.1()(64bit)
    libelf.so.1(ELFUTILS_1.0)(64bit)
    libelf.so.1(ELFUTILS_1.3)(64bit)
    libelf.so.1(ELFUTILS_1.5)(64bit)
    libelf.so.1(ELFUTILS_1.6)(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3)(64bit)
    libgcc_s.so.1(GCC_4.2.0)(64bit)
    libudev.so.1()(64bit)
    libudev.so.1(LIBUDEV_183)(64bit)
    libz.so.1()(64bit)
    libz.so.1(ZLIB_1.2.3.3)(64bit)
    rtld(GNU_HASH)
    systemd-udev
    udev-hid-bpf-stable(x86-64)

udev-hid-bpf-testing (rpmlib, GLIBC filtered):
    udev-hid-bpf(x86-64)

udev-hid-bpf-stable (rpmlib, GLIBC filtered):
    udev-hid-bpf(x86-64)

udev-hid-bpf-debuginfo (rpmlib, GLIBC filtered):

udev-hid-bpf-debugsource (rpmlib, GLIBC filtered):



Provides
--------
udev-hid-bpf:
    udev-hid-bpf
    udev-hid-bpf(x86-64)

udev-hid-bpf-testing:
    udev-hid-bpf-testing
    udev-hid-bpf-testing(x86-64)

udev-hid-bpf-stable:
    udev-hid-bpf-stable
    udev-hid-bpf-stable(x86-64)

udev-hid-bpf-debuginfo:
    debuginfo(build-id)
    udev-hid-bpf-debuginfo
    udev-hid-bpf-debuginfo(x86-64)

udev-hid-bpf-debugsource:
    udev-hid-bpf-debugsource
    udev-hid-bpf-debugsource(x86-64)



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

APPROVED.

Comment 2 Fedora Admin user for bugzilla script actions 2024-05-15 03:57:15 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/udev-hid-bpf

Comment 3 Fedora Update System 2024-05-15 05:56:11 UTC
FEDORA-2024-118504ab6d (udev-hid-bpf-1.0.0.20240417-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-118504ab6d

Comment 4 Peter Hutterer 2024-05-15 06:08:50 UTC
> so this package should also own /usr/lib/firmware/hid directory. 

Fixed. 

Thanks for the quick review, this is now available as

rawhide: udev-hid-bpf-1.0.0.20240417-2.fc41
f40: udev-hid-bpf-1.0.0.20240417-2.fc40

Comment 5 Fedora Update System 2024-05-15 06:24:05 UTC
FEDORA-2024-9cbbd956ad (udev-hid-bpf-1.0.0.20240417-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-9cbbd956ad

Comment 6 Fedora Update System 2024-05-15 15:29:08 UTC
FEDORA-2024-118504ab6d (udev-hid-bpf-1.0.0.20240417-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 7 Fedora Update System 2024-05-16 02:53:27 UTC
FEDORA-2024-9cbbd956ad 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-9cbbd956ad \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9cbbd956ad

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

Comment 8 Fedora Update System 2024-05-22 01:11:53 UTC
FEDORA-2024-89bbd05ca3 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-89bbd05ca3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-89bbd05ca3

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

Comment 9 Fedora Update System 2024-05-30 01:21:23 UTC
FEDORA-2024-89bbd05ca3 (udev-hid-bpf-1.0.1.20240515-1.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.