From patchwork Tue Jun 20 07:51:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 14094 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 6A22927BBE9; Tue, 20 Jun 2023 08:52:32 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7298427BBE2 for ; Tue, 20 Jun 2023 08:52:30 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBW9k-0003m6-Vo; Tue, 20 Jun 2023 03:52:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBW9k-0003lw-A4 for guix-patches@gnu.org; Tue, 20 Jun 2023 03:52:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBW9j-0006N6-LG for guix-patches@gnu.org; Tue, 20 Jun 2023 03:52:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBW9j-00056P-H2 for guix-patches@gnu.org; Tue, 20 Jun 2023 03:52:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64188] [PATCH 5/8] gnu: go: Add CPU tuning targets. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Jun 2023 07:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64188 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64188@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 64188-submit@debbugs.gnu.org id=B64188.168724748419504 (code B ref 64188); Tue, 20 Jun 2023 07:52:03 +0000 Received: (at 64188) by debbugs.gnu.org; 20 Jun 2023 07:51:24 +0000 Received: from localhost ([127.0.0.1]:57960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBW96-00054R-8M for submit@debbugs.gnu.org; Tue, 20 Jun 2023 03:51:24 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:45481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBW91-00053T-UF for 64188@debbugs.gnu.org; Tue, 20 Jun 2023 03:51:20 -0400 Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-30fcda210cfso4150483f8f.3 for <64188@debbugs.gnu.org>; Tue, 20 Jun 2023 00:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687247474; x=1689839474; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=I4dZXYdhtEg2FuatYsIxG7WVf/4ArICeDFNWrU3kbwY=; b=BjkdOoqK7iO4ot7TxylJCuJbNnEv8zWrzGkclNDgiXvI2GA1akpxucP4uxDmz+MT1r kzm6PE9apxC4ePJz1C3N3NbGThAoLxMb9HQkmpn7aHsqCAIRuur9m6kDHQP6wT8r7U9j qFwNBMYllnkxwk/IRhSDktqFaRYscPxUNocQMQ9JoThW8oeVKPHCv9zr3b0JxkssXFDG dFD7JYkg99VdxMz2wJWgqA4NB3T0C+xZIOSfVbf00h+IJozzIFHQaMkG62wVBbzIxP8E FyIHKkntizc3y4Wk4uHhYYgH+Xfn8pFsecWjJuLX6Zr1pT+TnzolcoGxZosB2Ej5Re83 Ce1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687247474; x=1689839474; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=I4dZXYdhtEg2FuatYsIxG7WVf/4ArICeDFNWrU3kbwY=; b=eSnAUItnW4ODJyQ8R45Ue5223dhToMc2njgNgf1iI0vAbVNXvnYqgVg9ItUT5ekW8B WMwkr5qxp1xuKS86Av0qpnfw13P16vDOkbXhRilywurFnxMGzj2qwgQ2tbHBo0PJ4i4v 5VtTXPreocSvP12cbvBl1V9YwBAQdCqPsThl5XXpXv8r1kXiRP+084KiXdb4ptuitmwp sJHksJ5RWcqLf+aNoGQoRCqlNrEjr6Uqr5P/0iIr+Oa4RLcNCjGllRHQSHbxmnaXUouf D5d+PjYuBP852hXG9HTcWBGxwTYUJ3DcS24yFNQfVJs1GoQA2DnWEdZV97Z5q9tWaauv laEg== X-Gm-Message-State: AC+VfDyn501EyaABQhYMQ8oSQaJ2nrMMWsyMaoAttP3XhPZlLDiCkHwy 7AuWp/L9oy+dw+awsF5Af3yRBOclsOO80WqG X-Google-Smtp-Source: ACHHUZ4qZ/kZu64VP7EGmyi8rPP+fAO/4vFIZ81JH8hCf8IZvpOZY5KRjQzSM0mKobu/Kq+WdZqdWw== X-Received: by 2002:a5d:654a:0:b0:30f:bd48:6828 with SMTP id z10-20020a5d654a000000b0030fbd486828mr8118366wrv.31.1687247474335; Tue, 20 Jun 2023 00:51:14 -0700 (PDT) Received: from localhost ([188.120.129.124]) by smtp.gmail.com with ESMTPSA id w8-20020adfcd08000000b00301a351a8d6sm1356318wrm.84.2023.06.20.00.51.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 00:51:13 -0700 (PDT) From: Efraim Flashner Date: Tue, 20 Jun 2023 10:51:06 +0300 Message-Id: <2c8bd624a47e6902bdfc25b8322aa03b31b8291f.1687247150.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-1.17)[properties]: New field. (%go-1.17-arm-micro-architectures, %go-1.17-powerpc64le-micro-architectures, %go-1.18-x86_64-micro-architectures): New variables. (go-1.18)[properties]: New field. --- gnu/packages/golang.scm | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d51c023808..c3ea30becc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -628,6 +628,13 @@ (define-public go-1.16 `(("go-fix-script-tests.patch" ,(search-patch "go-fix-script-tests.patch")) ,@(package-native-inputs go-1.14))))) +;; https://github.com/golang/go/wiki/MinimumRequirements#microarchitecture-support +(define %go-1.17-arm-micro-architectures + (list "armv5" "armv6" "armv7")) + +(define %go-1.17-powerpc64le-micro-architectures + (list "power8" "power9")) + (define-public go-1.17 (package (inherit go-1.16) @@ -844,7 +851,14 @@ (define-public go-1.17 "README.md" "SECURITY.md")))))))) (inputs (if (not (or (target-arm?) (target-ppc64le?))) (alist-delete "gcc:lib" (package-inputs go-1.16)) - (package-inputs go-1.16))))) + (package-inputs go-1.16))) + (properties + `((compiler-cpu-architectures + ("armhf" ,@%go-1.17-arm-micro-architectures) + ("powerpc64le" ,@%go-1.17-powerpc64le-micro-architectures)))))) + +(define %go-1.18-x86_64-micro-architectures + (list "x86_64-v1" "x86_64-v2" "x86_64-v3" "x86_64-v4")) (define-public go-1.18 (package @@ -887,7 +901,12 @@ (define-public go-1.18 "ldflags, err := setextld(ldflags, compiler)\n" "ldflags = append(ldflags, \"-r\")\n" "ldflags = append(ldflags, \"" gcclib "\")\n"))))))) - '()))))))) + '()))))) + (properties + `((compiler-cpu-architectures + ("armhf" ,@%go-1.17-arm-micro-architectures) + ("powerpc64le" ,@%go-1.17-powerpc64le-micro-architectures) + ("x86_64" ,@%go-1.18-x86_64-micro-architectures)))))) (define-public go-1.19 (package