What should be in scripts shebangs for python2?

Lev Serebryakov lev at FreeBSD.org
Thu Feb 20 07:14:31 UTC 2014


Hello, Marcus.
You wrote 19 февраля 2014 г., 19:55:00:


MvA> In short:
MvA> * Use ${PYTHON_CMD} to replace the shebang lines or references of the  
MvA> python command
  So, it is not possible to use "static" patch? It is pity :(

MvA> * Use the proper supported python version (yes for any, 2 or 3 for a  
MvA> branch, X.Y for a release)
MvA>    for USE_PYTHON_BUILD
 I've hoped, that USE_PYTHON_BUILD=2 guarantee me, that here is
/usr/local/bin/python2 in system, but looks like it depends on something
else. On my system I get "lang/python2" dependency:

# make build-depends-list
/usr/ports/devel/gcc-arm-embedded
/usr/ports/devel/gmake
/usr/ports/lang/python2
/usr/ports/lang/python27
/usr/ports/ports-mgmt/pkg
#

 But port building cluster fails (it doesn't try to install python2 at all):

 ===>   libopencm3-0.0.20140213 depends on file: /usr/local/bin/python2.7 - not found
===>    Verifying install for /usr/local/bin/python2.7 in /usr/ports/lang/python27
===>   Installing existing package /packages/All/python27-2.7.6_2.txz
Installing python27-2.7.6_2...Installing gettext-0.18.3.1... done
 done
====
Note that some of the standard modules are provided as separate
ports since they require extra dependencies:

bsddb           databases/py-bsddb
gdbm            databases/py-gdbm
sqlite3         databases/py-sqlite3
tkinter         x11-toolkits/py-tkinter

Install them as needed.
====
===>   Returning to build of libopencm3-0.0.20140213
===>   libopencm3-0.0.20140213 depends on executable: gmake - not found
....
===>  Building for libopencm3-0.0.20140213
  GENHDR  include/libopencm3/sam/3n/irq.json
env: python2: No such file or directory
gmake: *** [include/libopencm3/sam/3n/irq.json.genhdr] Error 127


-- 
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>



More information about the freebsd-ports mailing list