mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
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:
parent
62fd9d7553
commit
0df1eb029e
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue