Date: Wed, 05 Jun 2024 10:36:59 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 256510] Mk/Uses/shebang.mk Silently fails on .py files if python env isn't initialized Message-ID: <bug-256510-21822-F4e8uinMzA@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-256510-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-256510-21822@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256510 --- Comment #7 from Shane <FreeBSD@ShaneWare.Biz> --- (In reply to Gleb Popov from comment #6) I was updating graphics/openshadinglanguage, a shebang line was added to a script in the repo (for 1.13.x), they have `#!/usr/bin/env python` After changing version to 1.13.10.0 `make stage-qa` reported the bad shebang. I added USES=shebangfix and SHEBANG_FILES= src/build-scripts/serialize-bc.py Then I got the local/bin/python is invalid. I tried adding PYTHON_NO_DEPENDS=yes as well as USES=python:env and neither changed the error message. I then edited the script in the work stage dir to have python3.9 and make stage-qa didn't report the shebang error. -- You are receiving this mail because: You are on the CC list for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256510-21822-F4e8uinMzA>
