From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: bug#22013: python2 versions of packages failing as inputs Date: Thu, 26 Nov 2015 12:06:01 +0200 Message-ID: <20151126120601.06f5e5bc@debian-netbook> References: <20151125205517.0505f317@debian-netbook> <878u5livsz.fsf@elephly.net> <87mvu13zmn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/fXAIcyqXioYwNOQeQgS/4/1"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1tSF-0008Sx-Je for bug-guix@gnu.org; Thu, 26 Nov 2015 05:07:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1tSA-0001cW-PB for bug-guix@gnu.org; Thu, 26 Nov 2015 05:07:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1tSA-0001cB-LT for bug-guix@gnu.org; Thu, 26 Nov 2015 05:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a1tSA-0004xf-8c for bug-guix@gnu.org; Thu, 26 Nov 2015 05:07:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87mvu13zmn.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 22013@debbugs.gnu.org --Sig_/fXAIcyqXioYwNOQeQgS/4/1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 26 Nov 2015 09:59:12 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Ricardo Wurmus skribis: >=20 > > Efraim Flashner writes: > > =20 > >> Guix build python2-cryptography builds fine, guix build python2-oauthl= ib > >> rebuilds python2-cryptography, and fails to build. Python2-cryptograph= y has > >> an additional input of python2-ipaddress which doesn't get carried alo= ng when > >> python2-cryptography is an input and not the final build. =20 > > > > I think that=E2=80=99s pretty normal. We have the same situation in > > =E2=80=98python2-openssl=E2=80=99 where we have to explicitly add =E2= =80=98python2-cryptography=E2=80=99 > > and remove =E2=80=98python-cryptography=E2=80=99. =20 >=20 > Yes, and this is due to the fact that =E2=80=98python2-cryptography=E2=80= =99 is not just > an automatically-translated package: >=20 > (define-public python2-cryptography > (let ((crypto (package-with-python2 python-cryptography))) > (package (inherit crypto) > (propagated-inputs > `(("python2-ipaddress" ,python2-ipaddress) > ,@(package-propagated-inputs crypto)))))) >=20 > If it were simply equal to (package-with-python2 python-cryptography), > there would be no need for the manual tweak in =E2=80=98python-pyopenssl= =E2=80=99. >=20 > Efraim, could you apply the same strategy as for =E2=80=98python2-pyopens= sl=E2=80=99 in > =E2=80=98python2-oauthlib=E2=80=99? Ok, I understand now. I thought I had to edit python2-cryptography to fix python2-oauthlib, now I realize everytime I use python2-cryptography I need to make sure it pulls the right one. >=20 > > It would, of course, be nice if package-with-python2 could handle this > > automatically. =20 >=20 > I think we would need a way to register =E2=80=9Ctranslation=E2=80=9D res= ults. > Currently =E2=80=98package-with-python2=E2=80=99 internally uses a hash t= able to memoize > conversion results. We could imagine adding something like: >=20 > (register-python2-variant PY3VARIANT PY2VARIANT) >=20 > to explicitly add a pair to that hash table. >=20 > The downside of this approach is that this would break referential > transparency. >=20 > WDYT? >=20 > Thanks, > Ludo=E2=80=99. We already have the python- and python2- variants as the same packages, just with the occasional additional input to make it build. Mapping the two together might speed up package-with-python2. I'm going to keep on looking at guix/build-systems/python.scm to see if I c= an come up with something to not need to specifically declare python2-foo every time python-foo ends up being used. --=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 --Sig_/fXAIcyqXioYwNOQeQgS/4/1 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWVtmJAAoJEPTB05F+rO6Tyf8P/2FoXIqIntTmHoFHX5qZ+WuN DF0dPfSRJsTrpXj9TZttLdZlhclrHCJ1Jbw4EgRtGVYhxzMFNHVxzapQ3mHxxxLi 4DpUHyz+BhN4S1a9hQtFz9J4mpd66pUfxw7X7HiUTYslEzTBknRekFDRXdVRFoXU yhH4H4e2PMY4Y4GXAnAXuiMhZy2Yzjx91zREbjHj13JkwQhTeaZJl64w1iOYCVe9 PwqzsYMOs4YX7IrCCB0dO8sQE4DhDLUlvw+fRHy5OoCcit1iSO3XKZ+srou5ZQGK mNCfb2C6gEIjW8stC7uedDo9TYPAuJ8Pu7Bj2e+Fw7I3Lw8WSfTLf/txuHKmxqjg ve/Ank/JeI1WUVJNaolteIAD0zmtOiw5Ar8TFdkovMTEpJdPukwsBFZz1yfinOC/ zXVjc6ITd0ICffQw40YsdcB/1eaPttldMN6AetCg84OQJvheWoCUJQ9HFczQidbZ xUhjQ5NdoZqR+SyFJDfTDCO3JzY1BxSrwym3+FB1UxOTwgO3n1JPNPArUzLom+pJ By8biusJ8x3/oVLYPchlf+QatEu9IsEmssNg/oRXm8OJG0gb4vGauOwea5G+dYg5 CvXDB/s4z9vYOPJgehfSoZtCsHQaCP94D69RldLgveq9SmCRas+1VZmNEZUeAhKm bgXwpJPCWo/82I2M9/nR =Es5B -----END PGP SIGNATURE----- --Sig_/fXAIcyqXioYwNOQeQgS/4/1--