gnu: flashrom: Update to 1.5.1.

* gnu/packages/flashing-tools.scm (flashrom): Update to 1.5.1.
[arguments]<#:phases>: Use absolute dmidecode path instead of wrapping.

Change-Id: Ie4267350c3f98d22232cff947a9e2438eb82d7ae
This commit is contained in:
Hilton Chain 2025-01-11 14:20:15 +08:00
parent d1cfeaef13
commit 455f8ff55e
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -76,15 +76,15 @@ (define-module (gnu packages flashing-tools)
(define-public flashrom (define-public flashrom
(package (package
(name "flashrom") (name "flashrom")
(version "1.3.0") (version "1.5.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
"https://download.flashrom.org/releases/flashrom-v" "https://download.flashrom.org/releases/flashrom-v"
version ".tar.bz2")) version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"08wn2j5vxzzvigflrjypgxxzjp32c76bshrlkzki5l6cad226lx0")))) "14v2bd46wyz46bvsxr3zx2wacqbqzi4w4pk50giar7nldq3lp4qz"))))
(build-system meson-build-system) (build-system meson-build-system)
(inputs (list bash-minimal dmidecode pciutils libusb libftdi libjaylink)) (inputs (list bash-minimal dmidecode pciutils libusb libftdi libjaylink))
(native-inputs (list cmocka pkg-config)) (native-inputs (list cmocka pkg-config))
@ -93,13 +93,14 @@ (define-public flashrom
#~'("-Dprogrammer=all") #~'("-Dprogrammer=all")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'wrap-program (add-after 'unpack 'fix-path
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((flashrom (string-append #$output "/sbin/flashrom"))) (substitute* "dmi.c"
(wrap-program flashrom (("(dmidecode)( 2>/dev/null)" _ command suffix)
`("PATH" ":" prefix (string-append
(,(dirname (search-input-file (search-input-file
inputs "/sbin/dmidecode"))))))))))) inputs (in-vicinity "sbin" command))
suffix))))))))
(home-page "https://flashrom.org/") (home-page "https://flashrom.org/")
(synopsis "Identify, read, write, erase, and verify ROM/flash chips") (synopsis "Identify, read, write, erase, and verify ROM/flash chips")
(description (description