guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates-frozen updated: gnu: flashrom: Patch type error.


From: guix-commits
Subject: branch core-updates-frozen updated: gnu: flashrom: Patch type error.
Date: Mon, 18 Oct 2021 07:51:50 -0400

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch core-updates-frozen
in repository guix.

The following commit(s) were added to refs/heads/core-updates-frozen by this 
push:
     new 0df1eb0  gnu: flashrom: Patch type error.
0df1eb0 is described below

commit 0df1eb029efe5ebe3f02e36fa650cae4aaba89ec
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Oct 18 13:09:54 2021 +0200

    gnu: flashrom: Patch type error.
    
    * gnu/packages/flashing-tools.scm (flashrom)[arguments]: Add phase
    'patch-type-error to fix a compilation error.
---
 gnu/packages/flashing-tools.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm
index cd77696..f4379e6 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]