From patchwork Tue Nov 6 17:37:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Neidhardt X-Patchwork-Id: 135 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D46F3167CA; Tue, 6 Nov 2018 17:41:41 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id 72837167C7 for ; Tue, 6 Nov 2018 17:41:41 +0000 (GMT) Received: from localhost ([::1]:42352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK5MC-00074q-FD for patchwork@mira.cbaines.net; Tue, 06 Nov 2018 12:41:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK5JE-0004bw-Hq for guix-patches@gnu.org; Tue, 06 Nov 2018 12:38:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK5Io-0005Wk-S0 for guix-patches@gnu.org; Tue, 06 Nov 2018 12:38:23 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gK5Ij-0005Pf-36 for guix-patches@gnu.org; Tue, 06 Nov 2018 12:38:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gK5Ii-0008Tv-TZ for guix-patches@gnu.org; Tue, 06 Nov 2018 12:38:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33290] [PATCH 6/8] gnu: go-github-com-stevedonovan-luar: Add workaround for go-1.11. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Nov 2018 17:38:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33290 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33290@debbugs.gnu.org Received: via spool by 33290-submit@debbugs.gnu.org id=B33290.154152583532473 (code B ref 33290); Tue, 06 Nov 2018 17:38:04 +0000 Received: (at 33290) by debbugs.gnu.org; 6 Nov 2018 17:37:15 +0000 Received: from localhost ([127.0.0.1]:37604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) 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 ) 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 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 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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