aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/flashing-tools.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-10-18 13:09:54 +0200
committerRicardo Wurmus <rekado@elephly.net>2021-10-18 13:09:54 +0200
commit0df1eb029efe5ebe3f02e36fa650cae4aaba89ec (patch)
treef370dbd2fd3676b8c910cb9c464aa198b326b1c5 /gnu/packages/flashing-tools.scm
parent62fd9d75535bd0de797adc7b1f280a7eb950acdf (diff)
downloadguix-0df1eb029efe5ebe3f02e36fa650cae4aaba89ec.tar
guix-0df1eb029efe5ebe3f02e36fa650cae4aaba89ec.tar.gz
gnu: flashrom: Patch type error.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Add phase 'patch-type-error to fix a compilation error.
Diffstat (limited to 'gnu/packages/flashing-tools.scm')
-rw-r--r--gnu/packages/flashing-tools.scm10
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