gnu: usbutils: Update to 018.

* gnu/packages/linux.scm (usbutils): Update to 018.
[build-system]: Switch to meson-build-system.
[#:phases] {patch-bootstrap-scripts}: Delete phase.
{install-usbreset}: New phase.
[native-inputs]: Remove autoconf automake and libtool.
[description]: Mention the 'usbreset' command.

Change-Id: I2f71e0947fcc199b20c607c06bd4eae6324f0e17
This commit is contained in:
Maxim Cournoyer 2025-08-31 09:45:58 +09:00
parent 6a45a2aac0
commit 6dc9cee1dd
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -3381,24 +3381,20 @@ slabtop, tload, top, vmstat, w, watch and sysctl.")
(define-public usbutils (define-public usbutils
(package (package
(name "usbutils") (name "usbutils")
(version "017") (version "018")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/" (uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/"
"usbutils-" version ".tar.xz")) "usbutils-" version ".tar.xz"))
(sha256 (sha256
(base32 "0nz008kshcajc9asxr4j5dh4wgq72z52lws4ga6y60wirzymz8m6")))) (base32 "14xd7j9fl3pm0z4dhqj3mf9paqk431kq4vi602f5hiw5nmcqpxl3"))))
(build-system gnu-build-system) (build-system meson-build-system)
(outputs (list "out" "python")) (outputs (list "out" "python"))
(arguments (arguments
(list (list
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'bootstrap 'patch-bootstrap-scripts
(lambda _
(substitute* "usbhid-dump/bootstrap"
(("/bin/sh") (which "sh")))))
(add-after 'install 'separate-python-output (add-after 'install 'separate-python-output
;; Separating one Python script shaves more than 106 MiB from :out. ;; Separating one Python script shaves more than 106 MiB from :out.
(lambda _ (lambda _
@ -3407,17 +3403,21 @@ slabtop, tload, top, vmstat, w, watch and sysctl.")
(new (string-append #$output:python "/" file))) (new (string-append #$output:python "/" file)))
(mkdir-p (dirname new)) (mkdir-p (dirname new))
(rename-file old new))) (rename-file old new)))
(list "bin/lsusb.py"))))))) (list "bin/lsusb.py"))))
(inputs (add-after 'install 'install-usbreset
(list eudev libusb python)) (lambda _
(native-inputs (install-file "usbreset"
(list autoconf automake libtool pkg-config)) (string-append #$output "/bin")))))))
(native-inputs (list pkg-config))
(inputs (list eudev libusb python))
(home-page "http://www.linux-usb.org/") (home-page "http://www.linux-usb.org/")
(synopsis (synopsis
"Tools for working with USB devices") "Tools for working with USB devices")
(description (description
"Collection of tools to query what type of USB devices are connected to the "Collection of tools to query what type of USB devices are connected to
system, including @command{lsusb}.") the system, including @command{lsusb}. The experimental @command{usbreset}
command included in the package, but be aware that it may not work for all
devices.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public usbip-utils (define-public usbip-utils