From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oF+qGXtvb2aCIgAA62LTzQ:P1 (envelope-from ) for ; Sun, 16 Jun 2024 23:04:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oF+qGXtvb2aCIgAA62LTzQ (envelope-from ) for ; Mon, 17 Jun 2024 01:04:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=f9GO8bEA; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718579067; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=J8YnN4RMCrTvcidW5S001UY3d3tUKsFj/xrTQIjQrL4=; b=e6pWn6iUodJ3ySuazKPUkppD6Sq1T4WFELCZG3smf9X7CgoGPJqhsHeZ/o+gdkOZ/NU9SA /FGOsRilt63x7sVFJNtMHKIuyC6Ss0SOQo3JjWn8BLxK+IybMwEnarBZ8MAcjQYxhic463 pBZ8+KNy4wUU5qKydntO2AFDkc0jjHptqcYnDMER6fvzT9wHg6wmRQKlYUKVOH1IEV7MDL oK0AhJbqg6ypS6vX82WJ4T8EPdhAR1R6YboX+v/gInqmPOd5qTkpbrCRojq69WVr1HFJ4B zLw3KSG+QGRLgNYCFtq7AszjeUvVTilvY+6mNzRaYbT2XBrttgSuk381NVIpIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=f9GO8bEA; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718579067; a=rsa-sha256; cv=none; b=RjH9PnYy/1nIkyZsKuM1ULQnma0PDsEdk20a+e0AHLWeHj1LdLes64Nl9ODQWMzAlUy5ZU xMVkjKqaWiC3CCX6pFKoqVjyhdI4y8YhlfGEaFYMcWJAv6GAtj5ybhljBo9iNWWiD+NvO/ cBMRizdnhqc6Y6WOJhvLX6uNq23gB7slOM8qr11ZFWiUrM2QsivmAevgUnlpqEZ4v+EB8u BsmKpsvXLmgbegkJ5iS0705j3Kf19yqxcb7EtqnoyiPwK0CZvvfGk3GMdYW5Y3F2cs6hqG rflhy5c32LI7ihnnBRgbEaIiw7ML4vPwVTSUFkDCPqkNaEpI7pkEOnQ1HfRGlQ== 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 DE7D13AEEC for ; Mon, 17 Jun 2024 01:04:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIyuq-0000E5-5T; Sun, 16 Jun 2024 19:04:04 -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 1sIyum-0000D7-Di for guix-patches@gnu.org; Sun, 16 Jun 2024 19:04:00 -0400 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 1sIyum-0004n3-5h for guix-patches@gnu.org; Sun, 16 Jun 2024 19:04:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sIyun-0004Lr-NM for guix-patches@gnu.org; Sun, 16 Jun 2024 19:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71597] [PATCH v2] gnu: Add cpu-features. References: <850016747fd2a6da6c888ba224aad3e20d7300d3.1718558616.git.atai@atai.org> In-Reply-To: <850016747fd2a6da6c888ba224aad3e20d7300d3.1718558616.git.atai@atai.org> Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Jun 2024 23:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71597 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71597@debbugs.gnu.org Cc: Andy Tai Received: via spool by 71597-submit@debbugs.gnu.org id=B71597.171857903916716 (code B ref 71597); Sun, 16 Jun 2024 23:04:01 +0000 Received: (at 71597) by debbugs.gnu.org; 16 Jun 2024 23:03:59 +0000 Received: from localhost ([127.0.0.1]:56557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIyul-0004LY-Cl for submit@debbugs.gnu.org; Sun, 16 Jun 2024 19:03:59 -0400 Received: from mail-pj1-f43.google.com ([209.85.216.43]:48518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIyuj-0004LK-UT for 71597@debbugs.gnu.org; Sun, 16 Jun 2024 19:03:58 -0400 Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2bfff08fc29so3216608a91.1 for <71597@debbugs.gnu.org>; Sun, 16 Jun 2024 16:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718578970; x=1719183770; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=J8YnN4RMCrTvcidW5S001UY3d3tUKsFj/xrTQIjQrL4=; b=f9GO8bEAod43zJNkEy1Wlkw9I8d03397pGDAM2eQQRKDGWef5m0N046KS8F53yGFFc n5PgkJGljsce6wp9ZrbhQQuE/d7tQQs7hRwHecahPisZpNYKEav4TEWzkr6YcIALtpkz WtGvBFOKoinm+MZaiLFjRAjXljxGPHU+igmrbzvsvhGixu0cEuqiugKMZL9knrxeYM7I UukcXKQZdxolqCX/CvQ9e3MpSFVEhw0JO5cbIere3Tks+UE/Y8TbY964IU7AtRUuKcZL JQR+aMaXHlpBzRmw4chs97Zg4Liuri5s0YQvVzdghI+t+KCM50yk8ZqMhQkhY/UYrWL0 NZ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718578970; x=1719183770; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=J8YnN4RMCrTvcidW5S001UY3d3tUKsFj/xrTQIjQrL4=; b=Kjmid8R2WsmvKllTmEvehUq20qiK7XgJqxhEJsZV5SE87007FKswkkVvjvsaRJ2OPF vA2O7zgGYxs+VnXKtYCssIafz8JomGma8vABvAbYLtIUcGfVKCtu4lfUzayEimSVlvrc aYbooY8fw1HPHn7TAScF/oa94WoO1IROvRFxy8ZFS2PimWPQBp5D3AyvyfIGKsPe8run JmGzuh3xRL650MCuY8kHSOvCUfk+jfi5ckUuqiFdt9ApaNbdmBw2x7JV70EYyYs0Q11E sk/sYtiJO0Nwmo0sZ34zMQM7bRA+AK5FhX4cmNHyBMvdtS4xTJ0bxpKJTlmE8cMXxfSu yyQQ== X-Gm-Message-State: AOJu0YxxymPqcdIs1STD+lqEZ2hkIxUSSHMEhwK45Sarh3W51eCwL3Qu HApzcKWpQbPqLGua+rKT4vK9QXvkaj9/lx8rwvKXq2I+27XtIuiJVO7YRw== X-Google-Smtp-Source: AGHT+IH6VTWYWZWh/TQeaYyo9hTT516S1lBpwD+opLF4stOq5xHNm4m03dVI7BTLIFYwZModrxxaDg== X-Received: by 2002:a17:90b:4a51:b0:2bf:8fbf:e4c7 with SMTP id 98e67ed59e1d1-2c4db242694mr8197726a91.16.1718578969833; Sun, 16 Jun 2024 16:02:49 -0700 (PDT) Received: from DEskMiniX300.. (c-98-37-226-154.hsd1.ca.comcast.net. [98.37.226.154]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c4c45cb92csm7794989a91.14.2024.06.16.16.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 16:02:49 -0700 (PDT) From: Andy Tai Date: Sun, 16 Jun 2024 16:02:46 -0700 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: DE7D13AEEC X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.85 X-Spam-Score: -3.85 X-TUID: 1jZP/V8oVxVA * gnu/packages/assembly.scm (cpu-features): New variable. Change-Id: I9f3e0340024dbdbfb6f2f2a7e0820d71e5e5ba84 --- gnu/packages/assembly.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm index 3f1db2b67a..a6965c8f7e 100644 --- a/gnu/packages/assembly.scm +++ b/gnu/packages/assembly.scm @@ -646,6 +646,43 @@ (define-public neon2sse files.") (license license:bsd-2)))) +(define-public cpu-features + (package + (name "cpu-features") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/cpu_features") + (commit (string-append "v" version)))) + (sha256 + (base32 "0297li3408zm1dqnibaasrb51vs7n7iscnxsji3b78g0pir7jwxr")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:configure-flags #~(list "-DBUILD_TESTING=off"))) + ;; XXX: insists on using bundled googletest + (home-page "https://github.com/google/cpu_features") + (synopsis "Cross platform C99 library to get cpu features at runtime") + (description + "Cpu_features is a cross-platform C library to retrieve CPU features +(such as available instructions) at runtime, and supports these CPU architectures +@itemize +@item x86-64 +@item AArch64 +@item ARM +@item MIPS +@item POWER +@item RISC-V +@item LoongArch +@item S390x +@end itemize") + (license license:asl2.0))) + + (define-public blinkenlights (package (name "blinkenlights") base-commit: 612e4dd98f7d1d015e405af9d029bede3fe3c280 prerequisite-patch-id: 2b0a2ef34ee62e6c6e65551b932237957868bb00 -- 2.34.1