[PATCH] gnu: Add cpu-features.

  • Done
  • quality assurance status badge
Details
3 participants
  • Andy Tai
  • Guillaume Le Vaillant
  • Vincent Legoll
Owner
unassigned
Submitted by
Andy Tai
Severity
normal
A
A
Andy Tai wrote on 16 Jun 19:24 +0200
(address . guix-patches@gnu.org)(name . Andy Tai)(address . atai@atai.org)
850016747fd2a6da6c888ba224aad3e20d7300d3.1718558616.git.atai@atai.org
* gnu/packages/assembly.scm (cpu-features): New variable.

Change-Id: I9f3e0340024dbdbfb6f2f2a7e0820d71e5e5ba84
---
gnu/packages/assembly.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Toggle diff (52 lines)
diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm
index 3f1db2b67a..44efb67bc8 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
+ ;; XXX: insists on using bundled googletest
+ (list
+ #:tests? #f
+ #:configure-flags #~(list "-DBUILD_TESTING=off")))
+ (home-page "https://github.com/google/cpu_features")
+ (synopsis "Cross platform C99 library to get cpu features at runtime")
+ (description
+ "Bcpu_features cross-platform C library to retrieve CPU features
+(such as available instructions) at runtime, and supports these CPU architecutres
+@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
--
2.34.1
V
V
Vincent Legoll wrote on 16 Jun 20:34 +0200
(address . 71597@debbugs.gnu.org)
CAEwRq=o=CsrmM=u9YD6yHc1HyAu-gsdO1jYAAc4YS1KD=V79ow@mail.gmail.com
Hello,

the description has "Bcpu_features", is that typo or markup ?
And "architecutres" typo

--
Vincent Legoll
A
A
Andy Tai wrote on 17 Jun 01:02 +0200
[PATCH v2] gnu: Add cpu-features.
(address . 71597@debbugs.gnu.org)(name . Andy Tai)(address . atai@atai.org)
cb287452a402a7fc7afa590e55824d8bcd2cd30f.1718578915.git.atai@atai.org
* gnu/packages/assembly.scm (cpu-features): New variable.

Change-Id: I9f3e0340024dbdbfb6f2f2a7e0820d71e5e5ba84
---
gnu/packages/assembly.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Toggle diff (53 lines)
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
A
A
Andy Tai wrote on 17 Jun 02:32 +0200
[PATCH v3] gnu: Add cpu-features.
(address . 71597@debbugs.gnu.org)(name . Andy Tai)(address . atai@atai.org)
116d08814192d7ba0b4e0633364fa3ce42f66219.1718584341.git.atai@atai.org
* gnu/packages/assembly.scm (cpu-features): New variable.

Change-Id: I9f3e0340024dbdbfb6f2f2a7e0820d71e5e5ba84
---
gnu/packages/assembly.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (54 lines)
diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm
index 3f1db2b67a..fb8ef53901 100644
--- a/gnu/packages/assembly.scm
+++ b/gnu/packages/assembly.scm
@@ -646,6 +646,44 @@ (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
+ "-DBUILD_SHARED_LIBS=ON")))
+ (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
G
G
Guillaume Le Vaillant wrote on 26 Jun 16:33 +0200
Re: [bug#71597] [PATCH] gnu: Add cpu-features.
(name . Andy Tai)(address . atai@atai.org)(address . 71597-done@debbugs.gnu.org)
878qyrrcxw.fsf@kitej
Patch applied as 8c9902b131e06b1b0645698135fdabeacb381983.
Thanks.
-----BEGIN PGP SIGNATURE-----

iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCZnwmuw8cZ2x2QHBvc3Rl
by5uZXQACgkQa+ggit8h/j8ghQD/fZqpPRsHZ8dyTHMg37ZUG8DUWW/NkJ9/mGzl
+ThRIKoA/06PCAQeyL0tM3I8ucKf4Kr0km2LblGJM+QdS2e41I60
=mtV8
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 71597@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 71597
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch