unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: 57747@debbugs.gnu.org
Cc: Maxime Devos <maximedevos@telenet.be>
Subject: [bug#57747] [PATCH core-updates] gnu: rust-libloading: Remove pre-compiled binaries.
Date: Mon, 12 Sep 2022 12:57:06 +0200	[thread overview]
Message-ID: <20220912105706.3699-1-maximedevos@telenet.be> (raw)

* gnu/packages/crates-io.scm
(rust-libloading-0.7)[source]: Add snippet.
(rust-libloading-0.6)[source]: Inherit from rust-liboading-0.7's source.
(rust-libloading-0.5)[source]: Likewise.
(rust-libloading-0.3)[source]: Likewise.
---
 gnu/packages/crates-io.scm | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Number of dependents is unchecked (so not sure if core-updates is appropriate),
I intend to wait for https://qa.guix.gnu.org to inform me
(guix refresh -l cannot be used meaningfully on rust packages currently).

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index db820a3d24..44b6f01c36 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31737,7 +31737,11 @@ (define-public rust-libloading-0.7
         (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "0sidr67nsa693mqrqgk2np3bkqni0778yk147xncspy171jdk13g"))))
+         "0sidr67nsa693mqrqgk2np3bkqni0778yk147xncspy171jdk13g"))
+       (modules '((guix build utils)))
+       (snippet
+        ;; Remove binaries.
+        '(for-each delete-file (find-files "." "\\.dll$")))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
@@ -31761,7 +31765,7 @@ (define-public rust-libloading-0.6
     (version "0.6.7")
     (source
      (origin
-       (method url-fetch)
+       (inherit (package-source rust-libloading-0.7))
        (uri (crate-uri "libloading" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
@@ -31783,7 +31787,7 @@ (define-public rust-libloading-0.5
     (version "0.5.2")
     (source
       (origin
-        (method url-fetch)
+        (inherit (package-source rust-libloading-0.7))
         (uri (crate-uri "libloading" version))
         (file-name (string-append name "-" version ".tar.gz"))
         (sha256
@@ -31811,7 +31815,7 @@ (define-public rust-libloading-0.3
     (version "0.3.4")
     (source
      (origin
-       (method url-fetch)
+       (inherit (package-source rust-libloading-0.7))
        (uri (crate-uri "libloading" version))
        (file-name
         (string-append name "-" version ".tar.gz"))

base-commit: d08411ffd0a36a6b67a238be69d32c9f74101389
prerequisite-patch-id: 7f0d22c4b2743e932cf97342abd5bac2e7bbdaa6
prerequisite-patch-id: 87e197146284fb770478e0c2d73027e68ee3db6d
-- 
2.37.2





             reply	other threads:[~2022-09-12 10:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12 10:57 Maxime Devos [this message]
2022-09-12 10:59 ` [bug#57747] [PATCH core-updates] gnu: rust-libloading: Remove pre-compiled binaries Maxime Devos
2024-01-20 20:42 ` bug#57747: " Maxim Cournoyer

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=20220912105706.3699-1-maximedevos@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=57747@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).