gnu: flashrom: Patch type error.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Add phase 'patch-type-error to fix a compilation error.master
parent
62fd9d7553
commit
0df1eb029e
|
@ -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
|
||||||
|
|
Reference in New Issue