From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euatD-0007eN-5X for guix-patches@gnu.org; Sat, 10 Mar 2018 04:34:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euat8-0007la-0x for guix-patches@gnu.org; Sat, 10 Mar 2018 04:34:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euat7-0007lW-Sn for guix-patches@gnu.org; Sat, 10 Mar 2018 04:34:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1euat7-0007hU-Lp for guix-patches@gnu.org; Sat, 10 Mar 2018 04:34:01 -0500 Subject: [bug#30709] [PATCH 3/4] gnu: Add ubuntu-keyring. Resent-Message-ID: From: Marius Bakke In-Reply-To: <20180305092907.1191-3-efraim@flashner.co.il> References: <20180305092625.1014-1-efraim@flashner.co.il> <20180305092907.1191-1-efraim@flashner.co.il> <20180305092907.1191-3-efraim@flashner.co.il> Date: Sat, 10 Mar 2018 10:33:21 +0100 Message-ID: <87d10cjmvy.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: Efraim Flashner , 30709@debbugs.gnu.org --=-=-= Content-Type: text/plain Efraim Flashner writes: > * gnu/packages/debian.scm (ubuntu-keyring): New variable. [...] > + (build-system trivial-build-system) > + (arguments > + `(#:modules ((guix build utils)) > + #:builder (begin > + (use-modules (guix build utils)) > + (let* ((out (assoc-ref %outputs "out")) > + (apt (string-append out "/etc/apt/trusted.gpg.d/")) > + (key (string-append out "/share/keyrings/"))) > + (setenv "PATH" (string-append > + (assoc-ref %build-inputs "gzip") "/bin:" > + (assoc-ref %build-inputs "tar") "/bin")) > + (invoke "tar" "xvf" (assoc-ref %build-inputs "source")) > + (for-each (lambda (file) > + (install-file file key) > + (install-file file apt)) > + (find-files "." "\\.gpg$"))) > + #t))) Why is having the same files in out/share/keyrings and out/etc/apt/trusted.gpg.d necessary? (this was perhaps the case with the Debian keyring too?) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqjpmEACgkQoqBt8qM6 VPrauQf/T/HSuTQJMBEKxNJiLSm4Kd8n9GZ+69qiZToxc1bD5q4vB+RvRwca9RuK 58atyUU+Hiriycnl7FdULfuJeSogUhEtc1VwLX22bj7T3q2wTJlH3rmB5Tv9FSk2 ya5DW1+HGSgmYnhbblgcUmohhoPRCr+xQvFrK1SKtjQWwWQ7GKEiXDAgTV35lgvS pTnqvPEz9oy1gGjHHHpvgXMxklR1uxbtpT5mEghHfK0USz4rji5QpBQoJUPRwaTN SNTs9NFV0NTkZu6yftK3X2+h5HELmNjKUtbkUNDzKGC7GW4LUWKRpUCpB38H95cL UVMhqApSHYrO05wHs6nHk+RIALrfPQ== =Ep28 -----END PGP SIGNATURE----- --=-=-=--