Subject: [bug#78687] [PATCH 1/5] gnu: xnnpack: Update to 0.0-4.51a0103.

From: Ayan Das <[email-masked]>
Date: Wed, 04 Jun 2025 02:42:09 +0000

>From 03b89b7e77ba9d80f6ad5c376d001c8fd7123bed Mon Sep 17 00:00:00 2001
Message-ID:
<[email-masked]>
In-Reply-To: <[email-masked]>
References: <[email-masked]>
From: Ayan Das <[email-masked]>
Date: Tue, 3 Jun 2025 22:43:13 +0530
Subject: [PATCH 1/5] gnu: xnnpack: Update to 0.0-4.51a0103.

* gnu/packages/machine-learning.scm (xnnpack): Update to 0.0-4.51a0103.
[source]: Remove deprecated -a flag from update-microkernels.py
invocation.
[snippet]: Adjust directory list for autogenerated file removal.
---
 gnu/packages/machine-learning.scm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index bd090d63b1..32269d1513 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -4512,8 +4512,8 @@ (define-public qnnpack
 (define-public xnnpack
   ;; There's currently no tag on this repo.
   (let ((version "0.0")
-        (commit "08f1489fc815e8f121d4d2676c4863d2b51bfe73")
-        (revision "3"))
+        (commit "51a0103656eff6fc9bfd39a4597923c4b542c883")
+        (revision "4"))
     (package
       (name "xnnpack")
       (version (git-version version revision commit))
@@ -4525,7 +4525,7 @@ (define-public xnnpack
          (file-name (git-file-name name version))
          (sha256
           (base32
-           "00jjhz0nfggbdnqqvcznba03pcyy7gssd24yhhzjhincnz9qh8jr"))
+           "0j4smj8yaxw6r14caqn0dgb8j8mnsq34zp8ixxn11zmgbab306ly"))
          (modules '((guix build utils)
                     (ice-9 ftw)
                     (ice-9 textual-ports)
@@ -4547,7 +4547,7 @@ (define-public xnnpack
                        (delete-file path))))
                  (scandir dir (negate (cut member <> '("." ".."
"simd"))))))
               (cons*
-               "test" "bench" "eval" "models" "src/enums" "src/xnnpack"
+               "test" "bench/models" "src/enums" "src/xnnpack"
                "gen" "cmake/gen"
                (filter
                 identity
@@ -4624,7 +4624,7 @@ (define target-deps "")
                 ;; These need to run after the above scripts
                 (display "Remaining files\n")
                 (invoke "python3" "tools/update-microkernels.py")
-                (invoke "python3" "tools/update-microkernels.py" "-a")
+                ;; The -a flag is no longer supported in newer versions
                 (invoke "python3" "tools/generate-lut-norm-test.py"
                         "--spec" "test/u8-lut32norm.yaml"
                         "--output" "test/u8-lut32norm.cc")
-- 
2.49.0