From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eKPQNvsj22X8LgAAe85BDQ:P1 (envelope-from ) for ; Sun, 25 Feb 2024 12:26:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eKPQNvsj22X8LgAAe85BDQ (envelope-from ) for ; Sun, 25 Feb 2024 12:26:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=Ixf+Ta+3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708860411; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=S7nA9BU0TKW+eav86mwpU0ZrkzBTn2fU8NrB/7LdmmE=; b=FxPDEbQ3lKYA12LFo6G9nwojU8XHre4ihIMnVQA1eWwEpfXaikL5dwfNlRFLgDnCPe/xja mXFxYVyzKZCOhSDqL7qW8vry6j0Vd9hRIiHfIwc+P7R1pHH6e4bbIJDsMz2YnhnY4W56b6 w5xFCa4zMqykr8IvaI3p4y9SjH20e0aigDr3qM8BNHPZDTWRlYLTaOV0wO2C2Z0FIQD68r 9aJu+XSDHMWQ/aP7Kf3+jWGDveywtJP8WekaR9drULMaxJqQZ3Gy/TmbUyPf7X8L7RmC79 CVV3UdKlMigZs3IOwb7flO+3j9eX9yx4dZKuzT6EZsDUWgGHnV5tVyCXMIk0vw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=Ixf+Ta+3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708860411; a=rsa-sha256; cv=none; b=Av/QfyD0PWjT46PwdTiFGxVbw+MpF5Mefb9AjlV66J/uX0jePtuhNLua5OoCavJTSxJMmI SA94oMhmL7MfpjralslOWMXwFk0ajGkpjkUjVeORH1fqfKWHsdDj4rgPV6d5jexGnvjB9W znz5HmjQB1lagftsSFtgUI8Wq0y0jHM4XTYTL6n4ddsp6mGLNqALgAJqFlWyWfqNEKiEI1 4wVqbbJ7tSZVNL9j7469spfzbmxKXF+2/z1lFEDFLmircsTAmAKu9OijtkQ9CofP1FBMnh JsDE4I5ndbmLHo8ZhWD+XubSVpF0t8tLGekiKvRbscwamjacyy1JAAhFfQXiew== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CADC51584C for ; Sun, 25 Feb 2024 12:26:51 +0100 (CET) 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 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.53 X-Spam-Score: 2.53 X-Migadu-Queue-Id: CADC51584C X-Migadu-Scanner: mx13.migadu.com X-TUID: mR25FA/X/d4d * 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") -- 2.42.0