From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#40029: Preventing automatic python2 transformation of some packages Date: Thu, 12 Mar 2020 14:04:35 +0100 Message-ID: <87r1xxu3ks.fsf@gnu.org> References: <87lfo6zqwp.fsf@devup.no> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48082) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCNWK-0007tO-Vn for bug-guix@gnu.org; Thu, 12 Mar 2020 09:05:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCNWK-0005RM-0P for bug-guix@gnu.org; Thu, 12 Mar 2020 09:05:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50187) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCNWJ-0005RH-TN for bug-guix@gnu.org; Thu, 12 Mar 2020 09:05:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCNWI-0001vg-OG for bug-guix@gnu.org; Thu, 12 Mar 2020 09:05:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87lfo6zqwp.fsf@devup.no> (Marius Bakke's message of "Wed, 11 Mar 2020 19:29:26 +0100") 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-mx.org@gnu.org Sender: "bug-Guix" To: Marius Bakke Cc: 40029@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi! Marius Bakke skribis: > 'python2-sphinx' is obsolete and increasingly a maintenance burden, > because we need to keep special versions around just to make it build. > > The only reason we have this package is because it gets pulled in > automatically when using (package-with-python2 ...) on a Python 3 > package that has 'python-sphinx' in inputs. What about this evil hack? --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 323d5b4457..66306e97fc 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -99,7 +99,7 @@ for Python projects or other documents consisting of multiple reStructuredText sources.") (license license:bsd-2) - (properties `((python2-variant . ,(delay python2-sphinx)))))) + (properties `((python2-variant . ,(delay python-sphinx)))))) ;; Sphinx 2 does not support Python 2, so we stick with this older version here. ;; Remove this package once python2-pbcore no longer requires it. --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The effect should be that =E2=80=98package-with-python2=E2=80=99 always kee= ps =E2=80=98python-sphinx=E2=80=99 unchanged. (It=E2=80=99s a double-edge swo= rd.) Ludo=E2=80=99. --=-=-=--