unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: <janneke@gnu.org>
To: Razvan Lixandru <razlix77@gmail.com>
Cc: 74470@debbugs.gnu.org
Subject: bug#74470: Bug: guile-fibers@1.1.1 arm crosscompile fails due to patch on 1.3.1 version
Date: Fri, 22 Nov 2024 13:15:58 +0100	[thread overview]
Message-ID: <87plmnxy4h.fsf@gnu.org> (raw)
In-Reply-To: <CAEZ231AzCeRQfFc4mC=CyQMwmQB7wFxsxN-7Azjyqg_eHiqP_A@mail.gmail.com> (Razvan Lixandru's message of "Fri, 22 Nov 2024 10:46:13 +0200")

Razvan Lixandru writes:

Hi,

> It looks like this commit:
> https://git.savannah.gnu.org/cgit/guix.git/commit/gnu/packages/guile-xyz.scm?id=20c7b8dd04e421a139a02438cf1ddfdfe544a446
> causes guile-fiber@1.1.1 which is pulled by shepherd to fail:
[..]
> starting phase `apply-cross-build-fix-patch'
> patching file build-aux/guile.am
> Hunk #1 FAILED at 22.

Oops.  What about something like this patch (untested)

--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 044a491259..a21289d368 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -937,6 +937,13 @@ (define-public guile-fibers-1.1
            guile-3.0            ;for 'guild compile
            ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'
            gettext-minimal))
+    (arguments
+     (if (%current-target-system)
+         (substitute-keyword-arguments (package-arguments guile-fibers)
+           ((#:phases phases)
+            #~(modify-phases #$phases
+                (delete 'apply-cross-build-fix-patch))))
+         (package-arguments guile-fibers)))
     (inputs
      (list guile-3.0))                            ;for libguile-3.0.so
     (supported-systems
--8<---------------cut here---------------end--------------->8---

> This happens on both arm-linux-gnueabihf and arm64-linux-gnu.
> I think it is happening because the 1.1.1 version inherits 1.3.1.
> package and it overrides the source, but the patch is still being
> applied.

Yes.

> I guess this brakes all arm* crossbuilds.

Sorry!

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <janneke@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com




  reply	other threads:[~2024-11-22 12:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-22  8:46 bug#74470: Bug: guile-fibers@1.1.1 arm crosscompile fails due to patch on 1.3.1 version Razvan Lixandru
2024-11-22 12:15 ` janneke [this message]
     [not found]   ` <CAEZ231C7URCzUtsyaYLcDU_1xpNTevhWZcGR=9Jd2qYQZxnRYw@mail.gmail.com>
2024-11-22 21:21     ` janneke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87plmnxy4h.fsf@gnu.org \
    --to=janneke@gnu.org \
    --cc=74470@debbugs.gnu.org \
    --cc=razlix77@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).