Date: Thu, 20 Feb 2014 11:14:24 +0400 From: Lev Serebryakov <lev@FreeBSD.org> To: Marcus von Appen <mva@freebsd.org> Cc: freebsd-ports@freebsd.org Subject: Re: What should be in scripts shebangs for python2? Message-ID: <607902872.20140220111424@serebryakov.spb.ru> In-Reply-To: <20140219165500.Horde.vg_cyo2bAuxp6Rlju1rQeQ1@webmail.df.eu> References: <254945186.20140219190201@serebryakov.spb.ru> <20140219165500.Horde.vg_cyo2bAuxp6Rlju1rQeQ1@webmail.df.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Marcus.
You wrote 19 =D1=84=D0=B5=D0=B2=D1=80=D0=B0=D0=BB=D1=8F 2014 =D0=B3., 19:55=
:00:
MvA> In short:
MvA> * Use ${PYTHON_CMD} to replace the shebang lines or references of the =
=20
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 =
=20
MvA> branch, X.Y for a release)
MvA> for USE_PYTHON_BUILD
I've hoped, that USE_PYTHON_BUILD=3D2 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):
=3D=3D=3D> libopencm3-0.0.20140213 depends on file: /usr/local/bin/pytho=
n2.7 - not found
=3D=3D=3D> Verifying install for /usr/local/bin/python2.7 in /usr/ports/=
lang/python27
=3D=3D=3D> 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
=3D=3D=3D=3D
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.
=3D=3D=3D=3D
=3D=3D=3D> Returning to build of libopencm3-0.0.20140213
=3D=3D=3D> libopencm3-0.0.20140213 depends on executable: gmake - not fou=
nd
....
=3D=3D=3D> 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
--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?607902872.20140220111424>
