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

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new cb47639a80 gnu: simavr: Fix build
cb47639a80 is described below

commit cb47639a8081e8e2d651ad1612bbd1e482766469
Author: Artyom V. Poptsov <[email protected]>
AuthorDate: Thu Aug 14 06:59:09 2025 +0300

    gnu: simavr: Fix build
    
    * gnu/packages/avr-xyz.scm (simavr): Fix build: disable the shared library 
as
    it fails to build due to a linker error.
    [arguments]<#:phases>: Add "disable-shared-library" phase.
    
    Change-Id: I196161c6021c5b57d07bc75f242c041f6d352b18
---
 gnu/packages/avr-xyz.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/avr-xyz.scm b/gnu/packages/avr-xyz.scm
index c684b6183b..4a3571175e 100644
--- a/gnu/packages/avr-xyz.scm
+++ b/gnu/packages/avr-xyz.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2015, 2017 Ricardo Wurmus <[email protected]>
 ;;; Copyright © 2016 Efraim Flashner <[email protected]>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <[email protected]>
-;;; Copyright © 2022 Artyom V. Poptsov <[email protected]>
+;;; Copyright © 2022, 2025 Artyom V. Poptsov <[email protected]>
 ;;; Copyright © 2023 Maxim Cournoyer <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -34,6 +34,7 @@
   #:use-module (gnu packages bash)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages gcc)
   #:use-module (gnu packages avr)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages elf)
@@ -64,6 +65,13 @@
       #:tests? #f
       #:phases #~(modify-phases %standard-phases
                    (delete 'configure)
+                   (add-after 'unpack 'disable-shared-library
+                     (lambda _
+                       ;; XXX: "libsimavr.so"" fails to build due to a linker
+                       ;; error.  Disable the shared library for now.
+                       (substitute* "simavr/Makefile"
+                         (("ifeq \\(\\$\\{shell uname\\}, Linux\\)")
+                          "ifeq (1, 0)"))))
                    (replace 'check
                      (lambda* (#:key tests? outputs #:allow-other-keys)
                        (when tests?

Reply via email to