git: 2cf1bf98e61e - main - Mk/Uses/meson.mk: temporarily disable Python bytecode after 19804e371694

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 29 Jul 2023 00:49:54 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2cf1bf98e61e1f6df1d2df912d43037b46a25366

commit 2cf1bf98e61e1f6df1d2df912d43037b46a25366
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-29 00:30:43 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-29 00:35:45 +0000

    Mk/Uses/meson.mk: temporarily disable Python bytecode after 19804e371694
    
    $ poudriere testport -j 131amd64 devel/blueprint-compiler
    [...]
    ====> Running Q/A tests (stage-qa)
    Error: 'lib/python3.9/site-packages/blueprintcompiler/language/__pycache__/gobject_property.cpython-39.pyc' is referring to /wrkdirs/usr/ports/devel/blueprint-compiler/work/stage
    Error: 'lib/python3.9/site-packages/blueprintcompiler/language/__pycache__/gobject_object.cpython-39.pyc' is referring to /wrkdirs/usr/ports/devel/blueprint-compiler/work/stage
    Error: 'lib/python3.9/site-packages/blueprintcompiler/language/__pycache__/adw_breakpoint.cpython-39.pyc' is referring to /wrkdirs/usr/ports/devel/blueprint-compiler/work/stage
    [...]
    ===> Checking for items in STAGEDIR missing from pkg-plist
    Error: Orphaned: %%PYTHON_SITELIBDIR%%/blueprintcompiler/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
    Error: Orphaned: %%PYTHON_SITELIBDIR%%/blueprintcompiler/__pycache__/ast_utils%%PYTHON_EXT_SUFFIX%%.pyc
    Error: Orphaned: %%PYTHON_SITELIBDIR%%/blueprintcompiler/__pycache__/completions%%PYTHON_EXT_SUFFIX%%.pyc
    [...]
    
    PR:             272276
---
 Mk/Uses/meson.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Mk/Uses/meson.mk b/Mk/Uses/meson.mk
index 1442982f7792..ae997ae1a337 100644
--- a/Mk/Uses/meson.mk
+++ b/Mk/Uses/meson.mk
@@ -40,6 +40,9 @@ CONFIGURE_ARGS+=	--prefix ${PREFIX} \
 # expose those as port OPTIONS_* or explicitly pass -D<option>=disabled
 CONFIGURE_ARGS+=	--auto-features=enabled
 
+# Temporarily disable bytecode due to embedding STAGEDIR
+CONFIGURE_ARGS+=	-Dpython.bytecompile=-1
+
 # Disable color output.  Meson forces it on by default, Ninja
 # strips it before it goes to the log, but Samurai does not, so we
 # might end up with ANSI escape sequences in the logs.