unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#74559] [PATCH] gnu: umockdev: Update to 0.18.4.
@ 2024-11-27 14:39 Zheng Junjie
  0 siblings, 0 replies; only message in thread
From: Zheng Junjie @ 2024-11-27 14:39 UTC (permalink / raw)
  To: 74559

* gnu/packages/check.scm (umockdev): Update to 0.18.4.
[source]: Switch to git-fetch.
[arguments]<#:phases>: Add create-version-file phase.

Change-Id: I1716623527a3a6ce5c87ba821fbd0de4099e3b29
---
 gnu/packages/check.scm | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index ef1c08f8f38..e6788fcfc7c 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3895,19 +3895,25 @@ (define-public rapidcheck
 (define-public umockdev
   (package
     (name "umockdev")
-    (version "0.17.13")
+    (version "0.18.4")
     (source (origin
-              (method url-fetch)
-              (uri (string-append "https://github.com/martinpitt/umockdev/"
-                                  "releases/download/" version  "/"
-                                  "umockdev-" version ".tar.xz"))
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/martinpitt/umockdev")
+                    (commit version)))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "1kqkraag5v1jl5qfv0mb3ckm8yq2im21mng08sbs9dh9c9pbyvkc"))))
+                "06zfd30la5j32yi0zamldiyylwwvnm6l48fbhzvsb8r2l31yq3jk"))))
     (build-system meson-build-system)
     (arguments
      (list #:phases
            #~(modify-phases %standard-phases
+               (add-after 'unpack 'create-version-file
+                 (lambda _
+                   (call-with-output-file ".version"
+                     (lambda (port)
+                       (format port #$version)))))
                (add-after 'unpack 'skip-test-umockdev.c
                  ;; This test depends on /sys being available, among other
                  ;; things.

base-commit: c6d15cf27a137051ccd8f301330a70dd0eecc3d4
prerequisite-patch-id: 0509905c24bb0a4a1a1d4c947af00ab44ef0be95
prerequisite-patch-id: 7faf0fdfc6da89cc3e541e58de24de3f9efe47c0
prerequisite-patch-id: f1a19f643d1177f3c5bac509ebc44964a5ee6871
-- 
2.46.0





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-27 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-27 14:39 [bug#74559] [PATCH] gnu: umockdev: Update to 0.18.4 Zheng Junjie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).