Date: Wed, 15 Jan 2020 00:33:50 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 243358] lang/python*: DISABLED_EXTENSIONS doesn't work as advertised Message-ID: <bug-243358-21822-vAyVFHqbgJ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-243358-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-243358-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243358 --- Comment #1 from Enji Cooper <ngie@FreeBSD.org> --- I take it back. My REINPLACE_CMD was wrong. This works: $ git diff ports/lang/ diff --git a/ports/lang/python38/Makefile b/ports/lang/python38/Makefile index 3bdf1c461846..968cd2b167f5 100644 --- a/ports/lang/python38/Makefile +++ b/ports/lang/python38/Makefile @@ -34,9 +34,9 @@ PYTHON_SUFFIX=3D ${PYTHON_VER:S/.//g} DISABLED_EXTENSIONS=3D _sqlite3 _tkinter _gdbm CONFIGURE_ARGS+=3D --enable-shared --without-ensurepip -CONFIGURE_ENV+=3D OPT=3D"" DISABLED_EXTENSIONS=3D"${DISABLED_EXTENSIONS}" # Null out OPT to respec= t user CFLAGS and remove optimizations +CONFIGURE_ENV+=3D OPT=3D""=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 # Null out OPT to respect user CFLAGS and remove optimizations -INSTALL_TARGET=3D altinstall=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 # Don't want cloberring of unprefixed files +INSTALL_TARGET=3D altinstall=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 # Don't want clobbering of unprefixed files TEST_TARGET=3D buildbottest TEST_ARGS=3D TESTOPTS=3D-j${MAKE_JOBS_NUMBER} @@ -132,6 +132,10 @@ post-patch: # which introduces hidden dependency and breaks build @${REINPLACE_CMD} -e 's|uuid/uuid.h|ignore_&|' ${WRKSRC}/configure @${REINPLACE_CMD} -e '/find_library_file/ s|uuid|ignore_&|' ${WRKSRC}/setup.py +.if !empty(DISABLED_EXTENSIONS) + @${REINPLACE_CMD} -e '/^#\*disabled\*/ s|^#||' ${WRKSRC}/Modules/Se= tup + @${ECHO_CMD} "${DISABLED_EXTENSIONS}" >> ${WRKSRC}/Modules/Setup +.endif post-install: .if ! ${PORT_OPTIONS:MDEBUG} --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243358-21822-vAyVFHqbgJ>