ports/154431: [patch] ports/Tools/scripts: python scripts use bad shebang

David Demelier demelier.david at gmail.com
Tue Feb 1 09:00:21 UTC 2011


>Number:         154431
>Category:       ports
>Synopsis:       [patch] ports/Tools/scripts: python scripts use bad shebang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 01 09:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     David Demelier
>Release:        8.2-RC3
>Organization:
>Environment:
FreeBSD Melon.malikania.fr 8.2-RC3 FreeBSD 8.2-RC3 #7: Mon Jan 31 18:36:52 CET 2011     root at Melon.malikania.fr:/usr/obj/usr/src/sys/Melon  amd64

>Description:
I just realized that python script does not use a correct shebang. It uses by default /usr/local/bin/python. 

Of course not much people use a different LOCALBASE, but using /usr/bin/env python is still better.
>How-To-Repeat:
Use a different ${LOCALBASE} probably
>Fix:
--- Tools-scripts-shebang.diff begins here ---
--- Tools/scripts/checkcats.py.orig	2011-02-01 09:49:01.000000000 +0100
+++ Tools/scripts/checkcats.py	2011-02-01 09:49:35.000000000 +0100
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#!/usr/bin/env python
 #
 # checkcats.py - verify that master categories in all ports are correct and
 # report any problems.
--- Tools/scripts/chkdepschain.py.orig	2011-02-01 09:49:07.000000000 +0100
+++ Tools/scripts/chkdepschain.py	2011-02-01 09:49:42.000000000 +0100
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#!/usr/bin/env python
 #
 # ----------------------------------------------------------------------------
 # "THE BEER-WARE LICENSE" (Revision 42, (c) Poul-Henning Kamp):
--- Tools/scripts/gnomedepends.py.orig	2011-02-01 09:49:13.000000000 +0100
+++ Tools/scripts/gnomedepends.py	2011-02-01 09:49:47.000000000 +0100
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#!/usr/bin/env python
 #
 # gnomedepends
 # Analyse pkg/PLIST and give an advice as to which GNOME
--- Tools/scripts/patchtool.py.orig	2011-02-01 09:49:18.000000000 +0100
+++ Tools/scripts/patchtool.py	2011-02-01 09:49:59.000000000 +0100
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#!/usr/bin/env python
 # ex:ts=4
 #-*- mode: Fundamental; tab-width: 4; -*-
 #
--- Tools-scripts-shebang.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list