From patchwork Mon Feb 8 12:00:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manolis Ragkousis X-Patchwork-Id: 26955 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 C1B7827BC21; Mon, 8 Feb 2021 18:20:52 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3187C27BC1E for ; Mon, 8 Feb 2021 18:20:52 +0000 (GMT) Received: from localhost ([::1]:35664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9B9X-0007iM-9y for patchwork@mira.cbaines.net; Mon, 08 Feb 2021 13:20:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l95Dy-0001w0-BI for guix-patches@gnu.org; Mon, 08 Feb 2021 07:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l95Dy-0005gw-3x for guix-patches@gnu.org; Mon, 08 Feb 2021 07:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l95Dy-00033L-3J for guix-patches@gnu.org; Mon, 08 Feb 2021 07:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46380] [PATCH] gnu: gccgo: Add version 10. Resent-From: manolis837@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Feb 2021 12:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46380 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46380@debbugs.gnu.org Cc: Manolis Ragkousis X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161278565011709 (code B ref -1); Mon, 08 Feb 2021 12:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Feb 2021 12:00:50 +0000 Received: from localhost ([127.0.0.1]:49989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l95Dm-00032n-1J for submit@debbugs.gnu.org; Mon, 08 Feb 2021 07:00:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:48434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l95Dj-00032e-PA for submit@debbugs.gnu.org; Mon, 08 Feb 2021 07:00:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l95Dj-0001nI-FF for guix-patches@gnu.org; Mon, 08 Feb 2021 07:00:47 -0500 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:46610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l95DZ-0005YR-J9 for guix-patches@gnu.org; Mon, 08 Feb 2021 07:00:47 -0500 Received: by mail-ej1-x634.google.com with SMTP id w2so24100960ejk.13 for ; Mon, 08 Feb 2021 04:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N1IlSZhV+PQaKkASkb/W8L2yK6VOZ9bbOvNEaYOFTvs=; b=Xfv2z4y3QUqXhf6+6oe2m0pc8KWBJV5m5kuus1sG+eMZs48GkNhZKW6Julb3ncl0Pr grFBIPG61ZDWLaeqoDDt66JKJdMVFM6XkklOFtlXiLl0xqU6QhITg+66qUe27MntiuSj cg2nigTiZg3q/dU54zfryfdjnvUv4OD6bhrwxmM83C2iT4kR/nTlMADd8w4yE+N720jA bT2ezanpzFobum2k1C66hl1GoEdfSDl+jNcumVwNvSBEdqE8H2+ENqFUKi/cwxJrCZEz b8xke0UXmO+5ZHHRaCp5sbr+rcVlCTUfnrETDUZElnCpnO8Ls7Fn0Su97kX9fca5VGpB zc6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N1IlSZhV+PQaKkASkb/W8L2yK6VOZ9bbOvNEaYOFTvs=; b=R3vzGlDEFxDl1IQk7M8Q/a6HKzrpxuF8P1MJeYAfEUuGZACzsQGyJRfRjsRg2PSOWH GVnUHULJ+qV9WGRv/yIgjZneKC8nhgnxaobQYmxpJeB+dS9736mw2gmyXnlLrtoR7wxq uz0YlOMllmnUuHlLWLeIRDHbB47sA3lkdFZQQx15AeK4BCLHXn5E+mGh7FcWPk5Thwn1 3UbJB4KQpgqXIWKduFJqHQ1fMNDMIcqq9elWT1hg1ojTmX1b/mGLe3nyJ2YSCNEjdzWM c7ZX1lA9ka32O7kJ66pPcQYva456RHlsig29iX5D6b8R1/LQkR9L7ImWi48uDfpkcpS7 QjvA== X-Gm-Message-State: AOAM530WWM+dqrMQLaMjMCUyYAtObIdCZjKjzS9rN+YLF+YZtiylJ7K2 sPQMfUum1AKWkvgyHVpcl9ac2anTCVqd X-Google-Smtp-Source: ABdhPJy8iaGPw2Q5sDV9kmI421+hY0Zb7JhxXvxcTD5va36ImonFja5dyZgWkbulL9JuHO8BT6QVWg== X-Received: by 2002:a17:906:364e:: with SMTP id r14mr16893129ejb.266.1612785623481; Mon, 08 Feb 2021 04:00:23 -0800 (PST) Received: from prometheus.paros.xyz (athedsl-4510507.home.otenet.gr. [94.71.191.51]) by smtp.gmail.com with ESMTPSA id z22sm9171358edb.88.2021.02.08.04.00.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 04:00:22 -0800 (PST) From: manolis837@gmail.com Date: Mon, 8 Feb 2021 14:00:19 +0200 Message-Id: <20210208120019.2946404-1-manolis837@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=manolis837@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 From: Manolis Ragkousis * gnu/packages/patches/gcc-10-libgo-runpath.patch: New file. * gnu/local.mk (dist_patch_DATA): Add patch. * gnu/packages/gcc.scm (gccgo-10): New package. --- gnu/local.mk | 1 + gnu/packages/gcc.scm | 21 +++++++++++++++++++ .../patches/gcc-10-libgo-runpath.patch | 16 ++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 gnu/packages/patches/gcc-10-libgo-runpath.patch diff --git a/gnu/local.mk b/gnu/local.mk index f908f51074..302d3e2aa8 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1030,6 +1030,7 @@ dist_patch_DATA = \ %D%/packages/patches/gcc-6-fix-buffer-size.patch \ %D%/packages/patches/gcc-6-libsanitizer-mode-size.patch \ %D%/packages/patches/gcc-7-libsanitizer-mode-size.patch \ + %D%/packages/patches/gcc-10-libgo-runpath.patch \ %D%/packages/patches/gcc-libvtv-runpath.patch \ %D%/packages/patches/gcc-strmov-store-file-names.patch \ %D%/packages/patches/gcc-4-compile-with-gcc-5.patch \ diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 9b2a5556f6..d113cce2da 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -773,6 +773,27 @@ provides the GNU compiler for the Go programming language.")) ;; a cyclic dependency. #:separate-lib-output? #f)) +(define-public gccgo-10 + (custom-gcc (package + (inherit gcc-10) + (source + (origin + (inherit (package-source gcc-10)) + (patches + (append + (origin-patches (package-source gcc-10)) + (search-patches "gcc-10-libgo-runpath.patch"))))) + (synopsis "Go frontend to GCC") + (description + "This package is part of the GNU Compiler Collection and +provides the GNU compiler for the Go programming language.")) + "gccgo" '("go") + %generic-search-paths + ;; Suppress the separate "lib" output, because otherwise the + ;; "lib" and "out" outputs would refer to each other, creating + ;; a cyclic dependency. + #:separate-lib-output? #f)) + (define %objc-search-paths (list (search-path-specification (variable "OBJC_INCLUDE_PATH") diff --git a/gnu/packages/patches/gcc-10-libgo-runpath.patch b/gnu/packages/patches/gcc-10-libgo-runpath.patch new file mode 100644 index 0000000000..bf89d7b6d4 --- /dev/null +++ b/gnu/packages/patches/gcc-10-libgo-runpath.patch @@ -0,0 +1,16 @@ +gccgo needs libgo but it doesn't have $libdir in its RUNPATH. This +patch fixes that. + +diff --git a/libgo/Makefile.in b/libgo/Makefile.in +index b835173585..64e45360aa 100644 +--- a/libgo/Makefile.in ++++ b/libgo/Makefile.in +@@ -22,6 +22,8 @@ + + # Process this file with autoreconf to produce Makefile.in. + ++libgo_llgo_la_LDFLAGS = -Wl,-rpath=$(libdir) ++ + VPATH = @srcdir@ + am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \