me
/
guix
Archived
1
0
Fork 0

gnu: flashrom: Patch type error.

* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Add phase
'patch-type-error to fix a compilation error.
master
Ricardo Wurmus 2021-10-18 13:09:54 +02:00
parent 62fd9d7553
commit 0df1eb029e
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 9 additions and 1 deletions

View File

@ -84,7 +84,15 @@
(substitute* "dmi.c" (substitute* "dmi.c"
(("\"dmidecode\"") (("\"dmidecode\"")
(format #f "~S" (format #f "~S"
(search-input-file inputs "/sbin/dmidecode"))))))))) (search-input-file inputs "/sbin/dmidecode"))))))
(add-before 'build 'patch-type-error
(lambda _
;; See https://github.com/flashrom/flashrom/pull/133
(substitute* "libflashrom.c"
(("supported_boards\\[i\\].working = binfo\\[i\\].working")
"supported_boards[i].working = (enum flashrom_test_state)binfo[i].working")
(("supported_chipsets\\[i\\].status = chipset\\[i\\].status")
"supported_chipsets[i].status = (enum flashrom_test_state)chipset[i].status")))))))
(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