GNU bug report logs

#33290 [PATCH 1/8] gnu: go-github-com-prometheus-common-expfmt: Disable tests for go-1.11.

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Full log

Message #26 received at 33290@debbugs.gnu.org (full text, mbox, reply):

Received: (at 33290) by debbugs.gnu.org; 6 Nov 2018 17:37:15 +0000
From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 06 12:37:15 2018
Received: from localhost ([127.0.0.1]:37604 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1gK5Hv-0008Ra-6x
	for submit@debbugs.gnu.org; Tue, 06 Nov 2018 12:37:15 -0500
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:45255)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@ambrevar.xyz>) id 1gK5Hr-0008QV-71
 for 33290@debbugs.gnu.org; Tue, 06 Nov 2018 12:37:11 -0500
X-Originating-IP: 90.92.25.161
Received: from mimimi.home (lfbn-1-12201-161.w90-92.abo.wanadoo.fr
 [90.92.25.161]) (Authenticated sender: mail@ambrevar.xyz)
 by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 8B470FF80D
 for <33290@debbugs.gnu.org>; Tue,  6 Nov 2018 17:37:10 +0000 (UTC)
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: 33290@debbugs.gnu.org
Subject: [PATCH 6/8] gnu: go-github-com-stevedonovan-luar: Add workaround for
 go-1.11.
Date: Tue,  6 Nov 2018 18:37:07 +0100
Message-Id: <20181106173709.9883-5-mail@ambrevar.xyz>
X-Mailer: git-send-email 2.19.1
In-Reply-To: <20181106173709.9883-1-mail@ambrevar.xyz>
References: <87in1ayurm.fsf@ambrevar.xyz>
 <20181106173709.9883-1-mail@ambrevar.xyz>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 33290
X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
* gnu/packages/golang.scm (go-github-com-stevedonovan-luar): Add workaround for go-1.11.
---
 gnu/packages/golang.scm | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index b6b726019..643ecda9f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2303,10 +2303,24 @@ similar word.")
            "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c"))))
       (build-system go-build-system)
       (native-inputs
-       `(("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)))
+       `(("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)
+         ("lua" ,lua)))
       (arguments
        `(#:tests? #f                    ; Upstream tests are broken.
-         #:import-path "github.com/stevedonovan/luar"))
+         #:import-path "github.com/stevedonovan/luar"
+         ;; TODO: With our go-1.11, the golua .pkg is not re-used and gets
+         ;; rebuilt (https://bugs.gnu.org/32919).  Thus we need to re-specify
+         ;; the special flags of golua and the "lua" native-input.
+         #:phases
+         (modify-phases %standard-phases
+           (replace 'build
+             (lambda* (#:key import-path #:allow-other-keys)
+               (invoke "go" "install"
+                       "-v"  ; print the name of packages as they are compiled
+                       "-x"  ; print each command as it is invoked
+                       "-ldflags=-s -w" ; strip the symbol table and debug
+                       "-tags" "llua" ; Latest Lua on Guix does not have a version number.
+                       import-path))))))
       (home-page "https://github.com/stevedonovan/luar")
       (synopsis "Lua reflection bindings for Go")
       (description "Luar is designed to make using Lua from Go more
-- 
2.19.1





Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 05:38:00 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.