From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK5JE-0004bq-Ff for guix-patches@gnu.org; Tue, 06 Nov 2018 12:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK5Io-0005Wd-S5 for guix-patches@gnu.org; Tue, 06 Nov 2018 12:38:23 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33359) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gK5Ii-0005PT-Jj for guix-patches@gnu.org; Tue, 06 Nov 2018 12:38:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gK5Ii-0008Tn-Ey for guix-patches@gnu.org; Tue, 06 Nov 2018 12:38:04 -0500 Subject: [bug#33290] [PATCH 5/8] gnu: go-gitlab-com-ambrevar-golua-unicode: Add workaround for go-1.11. Resent-Message-ID: From: Pierre Neidhardt Date: Tue, 6 Nov 2018 18:37:06 +0100 Message-Id: <20181106173709.9883-4-mail@ambrevar.xyz> 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33290@debbugs.gnu.org * gnu/packages/golang.scm (go-gitlab-com-ambrevar-golua-unicode): Add workaround for go-1.11. --- gnu/packages/golang.scm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a4978af2a..b6b726019 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2204,10 +2204,23 @@ run a Lua virtual machine.") #:import-path "gitlab.com/ambrevar/golua/unicode" #:phases (modify-phases %standard-phases + ;; 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 here and in the 'check phase below. + (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))) (replace 'check (lambda* (#:key import-path #:allow-other-keys) (setenv "USER" "homeless-dude") - (invoke "go" "test" import-path)))))) + (invoke "go" "test" + "-tags" "llua" ; Latest Lua on Guix does not have a version number. + import-path)))))) (home-page "https://gitlab.com/ambrevar/golua") (synopsis "Add Unicode support to Golua") (description "This extension to Arzilli's Golua adds Unicode support to -- 2.19.1