GNU bug report logs - #34453
[PATCH] build guile-static with guile-2.0

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Efraim Flashner <efraim@HIDDEN>; Keywords: patch; dated Tue, 12 Feb 2019 09:19:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 34453 <at> debbugs.gnu.org:


Received: (at 34453) by debbugs.gnu.org; 16 Feb 2019 16:06:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 16 11:06:11 2019
Received: from localhost ([127.0.0.1]:50464 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gv2Ti-0003Al-SW
	for submit <at> debbugs.gnu.org; Sat, 16 Feb 2019 11:06:11 -0500
Received: from hera.aquilenet.fr ([185.233.100.1]:57508)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>)
 id 1gv2Tg-0003AX-Pw; Sat, 16 Feb 2019 11:06:09 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 264B010662;
 Sat, 16 Feb 2019 17:06:07 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id aeMYXqRzu2ao; Sat, 16 Feb 2019 17:06:06 +0100 (CET)
Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 2FA41DBF4;
 Sat, 16 Feb 2019 17:06:06 +0100 (CET)
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Efraim Flashner <efraim@HIDDEN>
Subject: Re: [bug#34453] [PATCH] build guile-static with guile-2.0
References: <20190212091740.GB3284@macbook41>
Date: Sat, 16 Feb 2019 17:06:05 +0100
In-Reply-To: <20190212091740.GB3284@macbook41> (Efraim Flashner's message of
 "Tue, 12 Feb 2019 11:17:40 +0200")
Message-ID: <87mumvhg5u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 34453
Cc: 34453 <at> debbugs.gnu.org, 34427 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi Efraim,

Efraim Flashner <efraim@HIDDEN> skribis:

> When experimenting I found that using guile@HIDDEN as a base for
> guile-static, the resulting guile-static didn't segfault on the target
> architecture.

As discussed in <https://issues.guix.info/issue/34427>, I would rather
fix the segfault in 2.2 than move back to 2.0 and effectively delay the
problem.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#34453; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Feb 2019 09:18:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 12 04:18:11 2019
Received: from localhost ([127.0.0.1]:44407 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gtUCb-0001P3-HZ
	for submit <at> debbugs.gnu.org; Tue, 12 Feb 2019 04:18:11 -0500
Received: from eggs.gnu.org ([209.51.188.92]:45028)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim@HIDDEN>) id 1gtUCX-0001OL-Mz
 for submit <at> debbugs.gnu.org; Tue, 12 Feb 2019 04:18:04 -0500
Received: from lists.gnu.org ([209.51.188.17]:40704)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <efraim@HIDDEN>)
 id 1gtUCQ-00052x-Rm
 for submit <at> debbugs.gnu.org; Tue, 12 Feb 2019 04:17:55 -0500
Received: from eggs.gnu.org ([209.51.188.92]:59390)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <efraim@HIDDEN>) id 1gtUCP-0006Cs-Gu
 for guix-patches@HIDDEN; Tue, 12 Feb 2019 04:17:54 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <efraim@HIDDEN>) id 1gtUCN-0004wD-RF
 for guix-patches@HIDDEN; Tue, 12 Feb 2019 04:17:53 -0500
Received: from flashner.co.il ([178.62.234.194]:50988)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <efraim@HIDDEN>) id 1gtUCK-0004e4-FE
 for guix-patches@HIDDEN; Tue, 12 Feb 2019 04:17:51 -0500
Received: from localhost (unknown [188.120.128.87])
 by flashner.co.il (Postfix) with ESMTPSA id 713CC401A0;
 Tue, 12 Feb 2019 09:17:42 +0000 (UTC)
Date: Tue, 12 Feb 2019 11:17:40 +0200
From: Efraim Flashner <efraim@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] build guile-static with guile-2.0
Message-ID: <20190212091740.GB3284@macbook41>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="g7w8+K/95kPelPD2"
Content-Disposition: inline
X-PGP-Key-ID: 0x41AAE7DCCA3D8351
X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc
X-PGP-Fingerprint: A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
User-Agent: Mutt/1.11.2 (2019-01-07)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 178.62.234.194
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: 34427 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


--g7w8+K/95kPelPD2
Content-Type: multipart/mixed; boundary="hYooF8G/hrfVAmum"
Content-Disposition: inline


--hYooF8G/hrfVAmum
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

When experimenting I found that using guile@HIDDEN as a base for
guile-static, the resulting guile-static didn't segfault on the target
architecture.


--=20
Efraim Flashner   <efraim@HIDDEN>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--hYooF8G/hrfVAmum
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="0001-gnu-guile-static-Build-for-guile-2.0.patch"
Content-Transfer-Encoding: quoted-printable

=46rom 18035c4ec2c698f01e6324bc013a536fc036cc0a Mon Sep 17 00:00:00 2001
=46rom: Efraim Flashner <efraim@HIDDEN>
Date: Mon, 11 Feb 2019 15:10:29 +0200
Subject: [PATCH 1/2] gnu: %guile-static: Build for guile@HIDDEN

%guile-static@HIDDEN currently segfaults when run.

* gnu/packages/make-bootstrap.scm (%guile-static): Rewrite package to
use guile@HIDDEN as a base.
---
 gnu/packages/make-bootstrap.scm | 34 ++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.=
scm
index c6002eb63a..836f24debf 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright =C2=A9 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Cour=
t=C3=A8s <ludo@HIDDEN>
-;;; Copyright =C2=A9 2017 Efraim Flashner <efraim@HIDDEN>
+;;; Copyright =C2=A9 2017, 2019 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright =C2=A9 2018 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright =C2=A9 2018 Mark H Weaver <mhw@HIDDEN>
 ;;;
@@ -518,29 +518,29 @@ for `sh' in $PATH, and without nscd, and with static =
NSS modules."
   ;; .scm and .go files relative to its installation directory, rather
   ;; than in hard-coded configure-time paths.
   (let* ((patches (cons* (search-patch "guile-relocatable.patch")
-                         (search-patch "guile-2.2-default-utf8.patch")
+                         (search-patch "guile-default-utf8.patch")
                          (search-patch "guile-linux-syscalls.patch")
-                         (origin-patches (package-source guile-2.2))))
-         (source  (origin (inherit (package-source guile-2.2))
+                         (origin-patches (package-source guile-2.0))))
+         (source  (origin (inherit (package-source guile-2.0))
                     (patches patches)))
-         (guile (package (inherit guile-2.2)
-                  (name (string-append (package-name guile-2.2) "-static"))
+         (guile (package (inherit guile-2.0)
+                  (name (string-append (package-name guile-2.0) "-static"))
                   (source source)
                   (synopsis "Statically-linked and relocatable Guile")
=20
                   ;; Remove the 'debug' output (see above for the reason.)
-                  (outputs (delete "debug" (package-outputs guile-2.2)))
+                  (outputs (delete "debug" (package-outputs guile-2.0)))
=20
                   (inputs
                    `(("libunistring:static" ,libunistring "static")
-                     ,@(package-inputs guile-2.2)))
+                     ,@(package-inputs guile-2.0)))
=20
                   (propagated-inputs
                    `(("bdw-gc" ,libgc)
                      ,@(alist-delete "bdw-gc"
-                                     (package-propagated-inputs guile-2.2)=
)))
+                                     (package-propagated-inputs guile-2.0)=
)))
                   (arguments
-                   (substitute-keyword-arguments (package-arguments guile-=
2.2)
+                   (substitute-keyword-arguments (package-arguments guile-=
2.0)
                      ((#:configure-flags flags '())
                       ;; When `configure' checks for ltdl availability, it
                       ;; doesn't try to link using libtool, and thus fails
@@ -563,7 +563,7 @@ for `sh' in $PATH, and without nscd, and with static NS=
S modules."
                                (("^guile_LDFLAGS =3D")
                                 "guile_LDFLAGS =3D -all-static")
=20
-                               ;; Add `-ldl' *after* libguile-2.2.la.
+                               ;; Add `-ldl' *after* libguile-2.0.la.
                                (("^guile_LDADD =3D(.*)$" _ ldadd)
                                 (string-append "guile_LDADD =3D "
                                                (string-trim-right ldadd)
@@ -591,13 +591,13 @@ for `sh' in $PATH, and without nscd, and with static =
NSS modules."
                 (out    (assoc-ref %outputs "out"))
                 (guile1 (string-append in "/bin/guile"))
                 (guile2 (string-append out "/bin/guile")))
-           (mkdir-p (string-append out "/share/guile/2.2"))
-           (copy-recursively (string-append in "/share/guile/2.2")
-                             (string-append out "/share/guile/2.2"))
+           (mkdir-p (string-append out "/share/guile/2.0"))
+           (copy-recursively (string-append in "/share/guile/2.0")
+                             (string-append out "/share/guile/2.0"))
=20
-           (mkdir-p (string-append out "/lib/guile/2.2/ccache"))
-           (copy-recursively (string-append in "/lib/guile/2.2/ccache")
-                             (string-append out "/lib/guile/2.2/ccache"))
+           (mkdir-p (string-append out "/lib/guile/2.0/ccache"))
+           (copy-recursively (string-append in "/lib/guile/2.0/ccache")
+                             (string-append out "/lib/guile/2.0/ccache"))
=20
            (mkdir (string-append out "/bin"))
            (copy-file guile1 guile2)
--=20
2.20.1


--hYooF8G/hrfVAmum--

--g7w8+K/95kPelPD2
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlxijy4ACgkQQarn3Mo9
g1FRzBAApDrqkMANqwivufw3E8YzhhHi4owAMHX65UHLybOzVYJK3cMWJEZhp1pl
TOLtgKfOkv95BA4MR5Ju/DEgwyXgg9Zc2U88PmkpK/7v0MJMAWg24ZeBiZy+p6mO
hgy4F2Wz+oXKa6QsbtqWNUB/h8kS9Y/PZk2+Nk20dISwfQosrJtfZUFBPF6uh/rR
MWRTl/WziLwNIbCzaqJ5DO+qYmyJp7fM6k190vPGNIGwN1id3/bn6gjwyyiqDoHH
W7/jkt/YxLdxopEGVejFgNyjzcenWbkkCEBg3piGzQ6ZjetzpgDlKDttP5oHkCuJ
PbKVbvSfC9sH3YiQfabcBb7Hc4nzpLuEnayKdSzht98PhHV4xAEMgv5sVbJ/oIIl
4BsUk+t+b8FVNE6rHEbt8N2yYfOwbEw6wNSeYJhtcubKYmtguLo0aZzARt1Xv9sM
1LI9p+/AtjBk0CshQqaZsKnmfx60B+nzFq8TR+wkupiV5WTYDORGj2NvCR4dTQ9Q
iCYaVoa2tnn2kCqOPjxTbTXztLLi3QUZa8L2Zzq3Wb0MGie0pLXLWsd9WPhZnhNA
hkSemoVDT+0H9o1KBG4DlkWRrqEElRdaCIk3f8DrPK59nLnpnlKAAvGXIWHcEXq7
nFFMKGNRHiT+gL7//OR9Mp/Zcf9cgAzpVzzNpEzB9QQVDsQSaP0=
=Ztlx
-----END PGP SIGNATURE-----

--g7w8+K/95kPelPD2--




Acknowledgement sent to Efraim Flashner <efraim@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#34453; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.