summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-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