pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/58875: python: terminal colours broke in some applications



The following reply was made to PR pkg/58875; it has been noted by GNATS.

From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost, pkgsrc-bugs%NetBSD.org@localhost
Cc: Aleksey Cheusov <cheusov%NetBSD.org@localhost>,
	Christos Zoulas <christos%NetBSD.org@localhost>,
	Jonathan Perkin <jperkin%mnx.io@localhost>
Subject: Re: pkg/58875: python: terminal colours broke in some applications
Date: Thu, 5 Dec 2024 15:29:52 +0000

 This is a multi-part message in MIME format.
 --=_SrNSPSgB67zgKSM708lGSVWnkRl5Kpmj
 
 [cc pkgsrc-branch steward du jour jperkin}
 
 The attached patch resolves the problem by using libreadline
 unconditionally.  Maybe in the future if libedit is changed to support
 colours (which christos tells me it does not right now) we can put the
 option back, but until then I think we should have applications work
 out of the box.
 
 OK to commit?
 
 --=_SrNSPSgB67zgKSM708lGSVWnkRl5Kpmj
 Content-Type: text/plain; charset="ISO-8859-1"; name="pr58875-pythonreadline"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment; filename="pr58875-pythonreadline.patch"
 
 >From 8b3440b785cf4683bd91bad11ce055ce49c75897 Mon Sep 17 00:00:00 2001
 From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
 Date: Thu, 5 Dec 2024 15:25:21 +0000
 Subject: [PATCH] lang/python311, lang/python312: Use libreadline
  unconditionally.
 
 libedit breaks some applications.
 
 PR pkg/58875: python: terminal colours broke in some applications
 ---
  lang/python311/options.mk | 8 ++------
  lang/python312/options.mk | 2 +-
  2 files changed, 3 insertions(+), 7 deletions(-)
 
 diff --git a/lang/python311/options.mk b/lang/python311/options.mk
 index c057b81f38a2..4e4782124e27 100644
 --- a/lang/python311/options.mk
 +++ b/lang/python311/options.mk
 @@ -41,12 +41,8 @@ CONFIGURE_ARGS+=3D	--without-pymalloc
  .endif
 =20
  .if ${PKG_OPTIONS:Mreadline}
 -.  include "../../mk/readline.buildlink3.mk"
 -.  if ${READLINE_TYPE} =3D=3D "editline"
 -CONFIGURE_ARGS+=3D	--with-readline=3Deditline
 -.  else
 -CONFIGURE_ARGS+=3D	--with-readline
 -.  endif
 +.  include "../../devel/readline/buildlink3.mk"
 +CONFIGURE_ARGS+=3D	--with-readline=3Dreadline
  PLIST.readline=3D		yes
  .else
  CONFIGURE_ARGS+=3D	--without-readline
 diff --git a/lang/python312/options.mk b/lang/python312/options.mk
 index 3bc304fd8626..f09274e40f91 100644
 --- a/lang/python312/options.mk
 +++ b/lang/python312/options.mk
 @@ -43,7 +43,7 @@ CONFIGURE_ARGS+=3D	--without-pymalloc
  .endif
 =20
  .if ${PKG_OPTIONS:Mreadline}
 -.  include "../../mk/readline.buildlink3.mk"
 +.  include "../../devel/readline/buildlink3.mk"
  CONFIGURE_ARGS+=3D	--with-readline=3Dreadline
  PLIST.readline=3D		yes
  .else
 
 --=_SrNSPSgB67zgKSM708lGSVWnkRl5Kpmj--
 


Home | Main Index | Thread Index | Old Index