From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 0/1] Split acme into both Python variants Date: Thu, 31 Dec 2015 00:25:39 -0500 Message-ID: <20151231052539.GA31978@jasmine> References: <87bn98uein.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEVkF-0007fn-MK for guix-devel@gnu.org; Thu, 31 Dec 2015 00:25:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEVkC-0001gy-Fi for guix-devel@gnu.org; Thu, 31 Dec 2015 00:25:51 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:32795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEVkC-0001gi-BJ for guix-devel@gnu.org; Thu, 31 Dec 2015 00:25:48 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8F7C220782 for ; Thu, 31 Dec 2015 00:25:46 -0500 (EST) Content-Disposition: inline In-Reply-To: <87bn98uein.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel@gnu.org On Wed, Dec 30, 2015 at 04:45:04PM +0100, Ludovic Courtès wrote: > Leo Famulari skribis: > > > This patch splits the acme library into both Python variants. Currently, > > its only user in Guix is the Python 2 official Let's Encrypt client, but > > there is other software out there that supports Python 3. > > Sounds reasonable. > > > I tried and tried to make the python2-acme version inherit more from > > python-acme but this is what I got working. > > > > I did try to apply the solution used in python2-pyopenssl and > > python2-oauthlib [0] but I couldn't make it work. I think the issue is > > that python2-acme uses both python2-pyopenssl and python2-cryptography, > > so there are multiple layers of translation to watch out for. > > > > Suggestions welcome! > > What did you try exactly? The workaround is to explicitly list > dependencies instead of using those computed by ‘package-with-python2’. Despite trying the variations below, the build process kept failing as described by Efraim in bug#22013 [0]. Here are the variations that I tested, based on reading python.scm: (define-public python2-acme (let ((acme (package-with-python2 python-acme))) (package (inherit acme) (propagated-inputs `(("python2-cryptography" ,python2-cryptography) ,@(alist-delete "python-cryptography" (package-propagated-inputs acme))))))) (define-public python2-acme (let ((acme (package-with-python2 python-acme))) (package (inherit acme) (propagated-inputs `(("python2-pyopenssl" ,python2-pyopenssl) ("python2-cryptography" ,python2-cryptography) ,@(fold alist-delete (package-propagated-inputs acme) '("python-pyopenssl" "python-cryptography"))))))) ;; I don't understand this one (define-public python2-acme (let ((acme (package-with-python2 python-acme))) (package (inherit acme) (propagated-inputs `(("python2-cryptography" ,python2-cryptography) ("python2-pyopenssl" ,python2-pyopenssl) ,@(alist-delete "python-pyopenssl" (alist-delete "python-cryptography" (package-propagated-inputs acme)))))))) [0] http://lists.gnu.org/archive/html/bug-guix/2015-11/msg00124.html > > HTH, > Ludo'.