From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:35879) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvfqy-0006IT-7i for guix-patches@gnu.org; Thu, 08 Aug 2019 06:41:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvfqx-0000fi-34 for guix-patches@gnu.org; Thu, 08 Aug 2019 06:41:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hvfqw-0000fa-Qn for guix-patches@gnu.org; Thu, 08 Aug 2019 06:41:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hvfqw-0004us-Ml for guix-patches@gnu.org; Thu, 08 Aug 2019 06:41:02 -0400 Subject: [bug#35813] [PATCH] Add crate-recursive-import. Resent-Message-ID: Date: Thu, 8 Aug 2019 13:39:56 +0300 From: Efraim Flashner Message-ID: <20190808103956.GD5507@E2140> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="idY8LE8SD6/8DnRI" Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Brian Leung Cc: 35813@debbugs.gnu.org --idY8LE8SD6/8DnRI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 06, 2019 at 06:03:23PM +0200, Brian Leung wrote: > Should have sent this to you too, Ivan. >=20 > On Tue, Aug 6, 2019 at 5:42 AM Brian Leung wrote: >=20 > > OK, I updated to remove print statements I missed. > > > > On Mon, Aug 5, 2019 at 7:50 PM Brian Leung wrote: > > > >> I took Karl's changes and updated them accordingly. I've also added a > >> small test. The patch containing his importer, my changes, and my test= is > >> attached (the commit was made using my name--not sure if I should inst= ead > >> apply Karl's patch). > >> > > I ran 'guix import crate -r afl' on a machine where I had a bunch of crates pre-packaged the (very shorted output looked like this: (define-public rust-xdg =2E.. (define-public rust-xdg =2E.. (define-public rust-afl (package (name "rust-afl") (version "0.4.4") (source (origin (method url-fetch) (uri (crate-uri "afl" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "14k6hnwzqn7rrs0hs87vcfqj4334k9wff38d15378frlxpviaard")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-cc" ,rust-cc) ("rust-clap" ,rust-clap) ("rust-rustc-version" ,rust-rustc-version) ("rust-xdg" ,rust-xdg)) #:cargo-development-inputs (("rust-rustc-version" ,rust-rustc-version) ("rust-xdg" ,rust-xdg)))) (home-page "https://github.com/rust-fuzz/afl.rs") (synopsis "Fuzzing Rust code with american-fuzzy-lop") (description "Fuzzing Rust code with american-fuzzy-lop") (license #f))) I know rust-xdg is there twice, but IMO it should only be printed once. also 'guix import crate -r rusty-fork' gives me #f 'guix import crate rusty-fork' gives me: guix import: error: failed to download meta-data for package 'rusty-fork' --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --idY8LE8SD6/8DnRI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl1L++sACgkQQarn3Mo9 g1GtBA//QcgZ57jbzLlVV/yvMwgp7MuCEx6ZeKKNkWeXg4sT6KzcBoYcPUNKDXhf cO8LrZptUHgZPOR+JLsnSIApHlUEjY2BNIBT4l2ZJKUFaCd0J5SZiuvU6vYWBsSj QQMoW065hZOtAhoYga9m1rsIfOWkMO5jzyyu/+9RNgcgnjRu5H+O9wRttuKXCmih baNQOC0z91SLbwNf5uCkpUhSgluTid/3GON6v52yKm4qL6sCMtYDUe59p02N5Rth 6ZYjnNwOSHBz+9zSYDAY9mRaza17OWdh3ecVXyDK8+MI6AMc7Lt1peiPcUSmQJs8 Yen1rNbZ+0eh9f4pWR242kWvpQrTpErc8eFrjVX27XNyTPClPeVOofjdDoAO6ntT jQF4MGrvjvafwUvTXZmfGPihnVVL6RKKJQf6KR3n3RDNhkEfVyFZ2tK+OOczEHcy MZUWp30S/8zzIKFpSBjDL0RleL75RbPCLsFx5GmB1Dk8SXB4uFgO3+KRziA4ZKfZ rwtCuV586+LV/FYDNTy/3p/+oaaTCzFPcR0XECaI9x6/OzF28vkUaUY75D85ZYxv xcPTYBGSFAQUqbbZArcOj/0+Uj4U0JIHXbfdo/LsyOsuzWbi6oOv++lFzP8QYPps j3flw+DcKb/V3KsL/CwOWztwhsSRN+cys3UXyz+calKnQD1Lzls= =9Fqc -----END PGP SIGNATURE----- --idY8LE8SD6/8DnRI--