Re: git: 131592de52da - main - devel/automake: Update to 1.19
- In reply to: Dima Panov : "Re: git: 131592de52da - main - devel/automake: Update to 1.19"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Sep 2026 15:01:28 UTC
On Tue, 22 Sep 2026 17:16:56 +0300 Dima Panov wrote:
> Hello!
>
>
> BTW, while our python framework still not ready for -OO optimisation
> and leads to rebuild
> site-packages/_distutils_hack/__pycache__/__init__.cpython-3??.opt-2.pyc
> every time, may be avoid it at all?
>
> diff --git a/devel/automake/Makefile b/devel/automake/Makefile
> index 078d642667..6de086de57 100644
> --- a/devel/automake/Makefile
> +++ b/devel/automake/Makefile
> @@ -27,4 +27,8 @@ PLIST_SUB= BUILD_VERSION=${DISTVERSION:C/(\.[^.]*).*/\1/}
>
> OPTIONS_DEFINE= DOCS
>
> +# avoid generating "*.cpython3*.opt-2.pyc" by -OO on byte compiling
> +post-patch:
> + @${REINPLACE_CMD} -e '/PYTHON/ s|-OO|-O|' ${WRKSRC}/lib/py-compile
> +
> .include <bsd.port.mk>
>
> Only small list of ports will be affected
>
> accessibility/caribou
> comms/hamlib
> devel/libsearpc
> japanese/ibus-anthy
> korean/ibus-hangul
> mail/fetchmailconf
> math/py-spot
> net-mgmt/seafile-client
> net/pacemaker2
> net/py-avahi
> print/lyx
> science/code_saturne
> science/fastjet
> science/meep
> security/py-privleap
> security/py-unicode-show
> security/wazuh-manager
> www/py-css-html-js-minify
> www/py-flatnotes
> x11/alacarte
> x11/kitty
> x11/mate-dock-applet
> x11/xcb-proto
>
> If needed, patches for this list are already ready at my buildbox
The problem is that this affects automake use outside the ports tree as
well. What is the problem with supporting -OO?