diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-10-18 13:09:54 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-10-18 13:09:54 +0200 |
commit | 0df1eb029efe5ebe3f02e36fa650cae4aaba89ec (patch) | |
tree | f370dbd2fd3676b8c910cb9c464aa198b326b1c5 | |
parent | 62fd9d75535bd0de797adc7b1f280a7eb950acdf (diff) |
gnu: flashrom: Patch type error.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Add phase
'patch-type-error to fix a compilation error.
-rw-r--r-- | gnu/packages/flashing-tools.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index cd776961d5..f4379e614a 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -84,7 +84,15 @@ (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 |