unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Zheng Junjie <zhengjunjie@iscas.ac.cn>
To: 74559@debbugs.gnu.org
Subject: [bug#74559] [PATCH] gnu: umockdev: Update to 0.18.4.
Date: Wed, 27 Nov 2024 22:39:49 +0800	[thread overview]
Message-ID: <4f5759791ada206a02bd3a9c66c262459680e299.1732718389.git.zhengjunjie@iscas.ac.cn> (raw)

* 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





                 reply	other threads:[~2024-11-27 14:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f5759791ada206a02bd3a9c66c262459680e299.1732718389.git.zhengjunjie@iscas.ac.cn \
    --to=zhengjunjie@iscas.ac.cn \
    --cc=74559@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).