Skip to content

Fix convert_to_utf8 build failure on systems where python3 is not in /usr/bin#32

Open
thegushi wants to merge 1 commit into
jaredmauch:mainfrom
thegushi:fix/convert-to-utf8-python-path
Open

Fix convert_to_utf8 build failure on systems where python3 is not in /usr/bin#32
thegushi wants to merge 1 commit into
jaredmauch:mainfrom
thegushi:fix/convert-to-utf8-python-path

Conversation

@thegushi
Copy link
Copy Markdown
Collaborator

scripts/convert_to_utf8 has a hardcoded #!/usr/bin/python3 shebang, which fails on FreeBSD and other systems where Python 3 lives under /usr/local/bin. The build dies in the templates/ step with exec(../scripts/convert_to_utf8): No such file or directory.

Two changes:

  • Change the shebang to #!/usr/bin/env python3 for portability
  • Add PYTHON= @PYTHON@ to templates/Makefile.in and invoke the script as $(PYTHON) ../scripts/convert_to_utf8 so the build always uses the interpreter detected by configure, consistent with every other Makefile.in in the tree

@thegushi thegushi mentioned this pull request May 21, 2026
scripts/convert_to_utf8 had a hardcoded #!/usr/bin/python3 shebang which
fails on FreeBSD and other systems where Python 3 lives in /usr/local/bin.

- Change shebang to #!/usr/bin/env python3 for portability
- Add PYTHON= @python@ to templates/Makefile.in and invoke the script via
  $(PYTHON) so the build uses the exact interpreter detected by configure,
  consistent with all other Makefiles in the tree
@thegushi thegushi force-pushed the fix/convert-to-utf8-python-path branch from 92eae45 to d37bb86 Compare May 21, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant