gnu: flashrom: Patch type error.

* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Add phase
'patch-type-error to fix a compilation error.
This commit is contained in:
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

View file

@ -84,7 +84,15 @@ (define-public flashrom
(substitute* "dmi.c"
(("\"dmidecode\"")
(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/")
(synopsis "Identify, read, write, erase, and verify ROM/flash chips")
(description