From patchwork Sun Feb 25 10:24:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 61104 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 2FFED27BBE9; Sun, 25 Feb 2024 11:26:53 +0000 (GMT) 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 D947C27BBE2 for ; Sun, 25 Feb 2024 11:26:51 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reCeY-0002es-TF; Sun, 25 Feb 2024 06:26:42 -0500 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 1reCeT-0002c8-I5 for guix-patches@gnu.org; Sun, 25 Feb 2024 06:26:38 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reCeT-0006Tw-2t for guix-patches@gnu.org; Sun, 25 Feb 2024 06:26:37 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reCer-00067G-M0 for guix-patches@gnu.org; Sun, 25 Feb 2024 06:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69379] [PATCH 2/2] gnu: Add go-github-com-tklauser-go-sysconf. References: <878r38al98.fsf@troyfigiel.com> In-Reply-To: <878r38al98.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Feb 2024 11:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69379 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69379@debbugs.gnu.org Received: via spool by 69379-submit@debbugs.gnu.org id=B69379.170886036323100 (code B ref 69379); Sun, 25 Feb 2024 11:27:01 +0000 Received: (at 69379) by debbugs.gnu.org; 25 Feb 2024 11:26:03 +0000 Received: from localhost ([127.0.0.1]:37313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reCdu-00060V-M9 for submit@debbugs.gnu.org; Sun, 25 Feb 2024 06:26:03 -0500 Received: from mout-p-101.mailbox.org ([80.241.56.151]:40482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reCdt-0005zm-7E for 69379@debbugs.gnu.org; Sun, 25 Feb 2024 06:26:01 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4TjLyc4DWRz9sRx for <69379@debbugs.gnu.org>; Sun, 25 Feb 2024 12:25:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1708860328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=S7nA9BU0TKW+eav86mwpU0ZrkzBTn2fU8NrB/7LdmmE=; b=Ixf+Ta+3GSgiUsoEeIZ/ASgn8ENVZQYwZGpzlG/W7CGK11xefIctziRg9cEguAu+A/U42a dl0IFPXjjnHLCA87FceE7ZfFgrUKgYKRd/ASYUaHOhiqv5sOq9kLDNgd14kpttiY+c9WlH fqDEaeLyxOU4jnVu+FwM73/MaYEl0OoKMoiNR8Bb3b0lTCNe9KK9y3tJhx6CJ/yi9XqAnU 5Ve3JWbdENxoevMWfTdPcVQMYAkcpnR709DQIoSkPuzn88bU3oJNo47Px/49j4x5QMjx6a mkPRxeI7gpymkMTfZSnSv2NKhcLqTefRQr9zcT/RwYFJr+dWLzfumr7UALGbTg== From: Troy Figiel Date: Sun, 25 Feb 2024 11:24:41 +0100 Message-ID: <875xycaiqf.fsf@troyfigiel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4TjLyc4DWRz9sRx 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-xyz.scm (go-github-com-tklauser-go-sysconf): New variable. --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index ad6b8f04e6..1badc3856c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1190,6 +1190,43 @@ (define-public go-github-com-stathat-go (home-page "https://github.com/stathat/go") (license license:expat)))) +(define-public go-github-com-tklauser-go-sysconf + (package + (name "go-github-com-tklauser-go-sysconf") + (version "0.3.13") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tklauser/go-sysconf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07vkimncnmh89706s49599h2w9gwa6jyrv70f8ifw90nsh766km9")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.18 + #:import-path "github.com/tklauser/go-sysconf" + #:phases #~(modify-phases %standard-phases + (add-before 'check 'remove-failing-tests + (lambda* (#:key import-path #:allow-other-keys) + (delete-file-recursively + ;; sysconf_test.go (among others) tries to read the + ;; number of online CPUs using /proc/stat and + ;; /sys/devices/system/cpu/online. These files are not + ;; accessible in the test environment. + (string-append "src/" import-path + "/cgotest/sysconf_test.go"))))))) + (propagated-inputs (list go-golang-org-x-sys + go-github-com-tklauser-numcpus)) + (home-page "https://github.com/tklauser/go-sysconf") + (synopsis "Go implementation of @code{sysconf}") + (description + "This package implements @code{sysconf} and provides the associated +@code{SC_*} constants to query system configuration values at run time.") + (license license:bsd-3))) + (define-public go-github-com-tklauser-numcpus (package (name "go-github-com-tklauser-numcpus")