From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7aXQ-0001F2-Bc for guix-patches@gnu.org; Thu, 26 Oct 2017 01:17:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7aXO-00075z-LP for guix-patches@gnu.org; Thu, 26 Oct 2017 01:17:04 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7aXO-00075t-H7 for guix-patches@gnu.org; Thu, 26 Oct 2017 01:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7aXO-0001xi-Ba for guix-patches@gnu.org; Thu, 26 Oct 2017 01:17:02 -0400 Subject: [bug#28934] ROCA detect Resent-Message-ID: Date: Thu, 26 Oct 2017 05:16:31 +0000 From: ng0 Message-ID: <20171026051631.mmywbseta2x6wfc2@abyayala> References: <20171021234901.7bysdc2dx3jrours@abyayala> <877evijyhp.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="axrhhkw72rnnnnx7" Content-Disposition: inline In-Reply-To: <877evijyhp.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 28934-done@debbugs.gnu.org --axrhhkw72rnnnnx7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s transcribed 7.2K bytes: > Hi ng0, >=20 > ng0 skribis: >=20 > > From 412e84ce5e2f03ab67c29d751667bfd7b53ef34a Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 22:46:06 +0000 > > Subject: [PATCH 1/6] gnu: Add python-humanfriendly. > > > > * gnu/packages/python.scm (python-humanfriendly): New variable. >=20 > Note: commit logs should also mention the =E2=80=9Cpython2-=E2=80=9D vari= ables that are > added. I amended them. Oh? Hardly anyone does this ever, that's why I never picked up on it. Thanks for the notice :) > Committed with these adjustments: >=20 > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index edb434fb3..6e01d2e2d 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -1112,15 +1112,18 @@ etc.). The package is structured to make adding = new modules easy.") > "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi")))) > (build-system python-build-system) > (arguments > - `(; Tests depend on coloredlogs, which in turn depends on humanfrie= ndly. > + `(;; XXX: Tests depend on coloredlogs, which in turn depends on hum= anfriendly. Imo we should bootstrap this eventually. > #:tests? #f)) > (propagated-inputs > `(("python-monotonic" ,python-monotonic))) > (home-page "https://humanfriendly.readthedocs.io") > - (synopsis "Human friendly input and output in Python") > + (synopsis "Human-friendly input and output in Python") > (description > - "The functions and classes in the humanfriendly package can be used > -to make text interfaces more user friendly.") > + "The functions and classes in @code{humanfriendly} can be used to m= ake > +text interfaces more user-friendly. It includes tools to parse and form= at > +numbers, file sizes, and timespans, timers for long-running operations, = menus > +to allow the user to choose from a list of options, and terminal interac= tion > +helpers.") > (license license:expat))) > =20 > (define-public python2-humanfriendly >=20 > > From 81e9157501ffa3e4f47498fe802702b3bf66004c Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 22:56:09 +0000 > > Subject: [PATCH 2/6] gnu: Add python-capturer. > > > > * gnu/packages/python.scm (python-capturer): New variable. >=20 > [...] >=20 > > From 662d4fa2c40202cfeb2e1ce8918d23f3cc4469b2 Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 23:12:17 +0000 > > Subject: [PATCH 3/6] gnu: Add python-verboselogs. > > > > * gnu/packages/python.scm (python-verboselogs): New variable. >=20 > [...] >=20 > > From 36170f8801dbb33d91626447ff3e69bf1ac31dca Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 23:29:17 +0000 > > Subject: [PATCH 4/6] gnu: Add python-coloredlogs. > > > > * gnu/packages/python.scm (python-coloredlogs): New variable. >=20 > Applied with similar modifications to descriptions. >=20 > > From 8ff7e30582a6d84b6c9bf56cd985ef9c04af9eaa Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 23:41:26 +0000 > > Subject: [PATCH 5/6] gnu: Add python-pgpdump. > > > > * gnu/packages/gnupg.scm (python-pgpdump): New variable. >=20 > I made these modifications: >=20 > diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm > index 9a6ff68f8..fabeee232 100644 > --- a/gnu/packages/gnupg.scm > +++ b/gnu/packages/gnupg.scm > @@ -851,9 +851,9 @@ them to transform your existing public key into a sec= ret key.") > files, to verify signatures, and to manage the private and public keys.") > (license license:gpl3+))) > =20 > -(define-public python-pgpdump > +(define-public python2-pgpdump > (package > - (name "python-pgpdump") > + (name "python2-pgpdump") > (version "1.5") > (source > (origin > @@ -863,21 +863,21 @@ files, to verify signatures, and to manage the priv= ate and public keys.") > (base32 > "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw")))) > (build-system python-build-system) > + > + ;; Currently fails to build with Python 3. > + (arguments `(#:python ,python-2)) > + > (home-page "https://github.com/toofishes/python-pgpdump") > (synopsis "Python library for parsing PGP packets") > (description > - "Python-pgpdump is based on the pgpdump > -(http://www.mew.org/~kazu/proj/pgpdump/). Currently supported things > -include: > - > -@enumerate > -@item Signature packets > -@item Public key packets > -@item Secret key packets > -@item Trust, user ID, and user attribute packets > -@item ASCII-armor decoding and CRC check > -@end enumerate\n") > + "Python-pgpdump is an OpenPGP packet parser based on > +@uref{http://www.mew.org/~kazu/proj/pgpdump/, pgpdump}. It notably supp= orts: > + > +@itemize > +@item signature packets; > +@item public key packets; > +@item secret key packets; > +@item trust, user ID, and user attribute packets; > +@item ASCII-armor decoding and CRC check. > +@end itemize\n") > (license license:bsd-3))) > - > -(define-public python2-pgpdump > - (package-with-python2 python-pgpdump)) >=20 > This is because the Python 3.x variant fails to build: >=20 > --8<---------------cut here---------------start------------->8--- > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > FAIL: test_parse_partial_length (pgpdump.test.EncryptedPacketsTestCase) > This file contains an encrypted message with a Partial Body Length header > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test= =2Epy", line 435, in test_parse_partial_length > rawdata =3D self.load_data('partial_length.gpg') > File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test= =2Epy", line 102, in load_data > self.assertTrue(os.path.exists(full_path)) > AssertionError: False is not true >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > FAIL: test_parse_partial_length (pgpdump.test.EncryptedPacketsTestCase) > This file contains an encrypted message with a Partial Body Length header > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test= =2Epy", line 435, in test_parse_partial_length > rawdata =3D self.load_data('partial_length.gpg') > File "/tmp/guix-build-python-pgpdump-1.5.drv-0/pgpdump-1.5/pgpdump/test= =2Epy", line 102, in load_data > self.assertTrue(os.path.exists(full_path)) > AssertionError: False is not true >=20 > ---------------------------------------------------------------------- > Ran 58 tests in 0.546s >=20 > FAILED (failures=3D2) > --8<---------------cut here---------------end--------------->8--- Strange=E2=80=A6 I did build it. > > From ed8ec89c1bd898aa927ddca9c453bc6e950e61a3 Mon Sep 17 00:00:00 2001 > > From: ng0 > > Date: Sat, 21 Oct 2017 23:45:51 +0000 > > Subject: [PATCH 6/6] gnu: Add python-roca-detect. > > > > * gnu/packages/crypto.scm (python-roca-detect): New variable. >=20 > Applied with similar changes as above. >=20 > Thank you! >=20 > Ludo=E2=80=99. Thanks! --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://dist.ng0.infotropique.org/dist/keys/ https://www.infotropique.org https://ng0.infotropique.org --axrhhkw72rnnnnx7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlnxb64ACgkQ4i+bv+40 hYhbNg/9F9N3YB0LO/UkQt/xISnlqxi810O4Lsi0F+fhEbjfA5IV3MHRofGXhWbi s/TxqvRdSfK7ljiEgGTvnNOGAl7yeesSTdNEKbnL9tSp64TknGFIBlqiu8++jKQV LjmHRDLdQL5EAL63iv43pJ979k5KIq4KB/fTrnHyDHDYZr72zszXxFNlGW7DQ9cZ vaJM3MSaoAOUEqEly9qOdjA4p9ixJ4eBc7Ky3sNofKZ3oBBKlLA7tz3Ps8AKeZ28 f37Ewvi5TkbgTwHlWTD2J2AGcL9cl41qWC/arLSGofPppZkg58n8ZzvWElWk28/7 jPWN6PjFtW49KRnXFNWMDITSIlcY/SRS/3sriITR/eapJ6jF+mrOJqHnlhtclIbT jcxFTL999eu1b8B84XK4CJdhXgjqwq2Ws2z1u91nwOYLXCcWV7ff4cBQpZjfLYli K9M8wQRwDkxWMfCUh7eJztBmkQIdNR1ISjyjNhHsR2Bz5mDn/sMUGZgT2kHr8rRT X+yyND0gYR3eKZ111QdQ3VqkK/7VoyBKfVgDfdo8ekkPahVdt7qy8rGw8oiBBeN0 0Rbr+7PlUywRLz/ZosdDmUa/otYaoP2GYbTOqU0TClxLlf1XgT/q3w1uMUDcq1KP PUJ2b3tkyk2oA4PSlRI9uNWKYE/Pj49HRM1KwSu01KkUoVtMPfE= =AOA5 -----END PGP SIGNATURE----- --axrhhkw72rnnnnx7--