Page MenuHomeFreeBSD

Fix Shebangs

Authored by tcberner on Apr 27 2017, 7:08 PM.
Referenced Files
Unknown Object (File)
Fri, Sep 15, 7:03 PM
Unknown Object (File)
Aug 19 2023, 6:57 AM
Unknown Object (File)
Jul 31 2023, 12:03 PM
Unknown Object (File)
Jul 25 2023, 7:35 AM
Unknown Object (File)
May 26 2023, 10:59 AM
Unknown Object (File)
May 21 2023, 7:25 AM
Unknown Object (File)
Apr 20 2023, 5:47 PM
Unknown Object (File)
Mar 26 2023, 11:19 AM


  • comms/gnuradio
  • graphics/hugin
  • math/asymptote - also modify and post-patch, as one of the files is generated on the fly.
  • science/afni

Diff Detail

rP FreeBSD ports repository
Lint Not Applicable
Tests Not Applicable

Event Timeline

  • x11-wm/fvwm2 - add PYTHON=${PYTHON_CMD} to the configure environment to fix shebangs
  • x11-wm/fvwm-crystal
25–32 ↗(On Diff #27808)

So you are adding python as a dependency so that a tool that nobody will ever use gets the right shebang ? It is ludicrous, please don't.

16–17 ↗(On Diff #27808)

There is no real need for the patch, you could simply use /usr/bin/env python in the sed line in the Makefile.

26–27 ↗(On Diff #27809)

Same here, it never needed python before, now it requires it to run ?

25–32 ↗(On Diff #27808)

according to INDEX it depends on python anyways, no?

So should this shebang error just be ignored?

25–32 ↗(On Diff #27808)

There are talks about reducing the pain for the python interpreter shebang thing, only if the port depends on python.

Now, if this already has python as a run dependencies through some dependency, it may be ok. Be sure to say so when you commit it.

  • Get rid of patch in math/asymptote
  • x11/mate-applets
  • math/kig - python is already an implicit run time dependency anyways.

Regenerate against current tree.

Looks ok, you might want to investigate using SHEBANG_REGEX or SHEBANG_GLOB in some cases.

This revision is now accepted and ready to land.May 3 2017, 10:15 AM
This revision was automatically updated to reflect the committed changes.