Python in shebang
Dagobert Michelsen
dam at opencsw.org
Thu Feb 18 09:42:45 CET 2016
Hi Slow,
Am 18.02.2016 um 05:32 schrieb slowfranklin <slowfranklin at opencsw.org>:
> Hey folks!
>
> I just tried to package a Netatalk update and got this at the end of mgar package:
> ---8<---
> [ Generating checkpkg override for package CSWnetatalk ]
>
> # # ###### ##### #### ######
> ## ## # # # # # #
> # ## # ##### # # # #####
> # # # ##### # ### #
> # # # # # # # #
> # # ###### # # #### ######
>
> pkgrepo create -s /home/slow/staging/ips
> pkgrepo set -s /home/slow/staging/ips publisher/prefix=opencsw
> PKG: opencsw/netatalk
> echo "<transform file path=etc/opt/csw/afp.conf -> default preserve renamenew>" >> work/solaris11-i386/build-global/netatalk.proto.filtered; echo "<transform file path=etc/opt/csw/extmap.conf -> defa
> ult preserve renamenew>" >> work/solaris11-i386/build-global/netatalk.proto.filtered;
> mv work/solaris11-i386/build-global/netatalk.proto.filtered work/solaris11-i386/build-global/netatalk.proto
> echo "set name=variant.arch value=i386" >> work/solaris11-i386/build-global/netatalk.meta;
> cd work/solaris11-i386/build-global && cat netatalk.meta netatalk.proto > netatalk.premog
> pkgmogrify -I /home/slow/opencsw/.buildsys/v2/gar/transforms -I work/solaris11-i386/build-global netatalk.premog defaults | pkgfmt > work/solaris11-i386/build-global/netatalk.mogrified
> pkgdepend generate -D ISALIST=amd64 -D ISALIST=i386 -md /home/slow/opencsw/netatalk/trunk/work/solaris11-i386/pkgroot work/solaris11-i386/build-global/netatalk.mogrified > work/solaris11-i386/build-glo
> bal/netatalk.depend
> The file to be installed in opt/csw/bin/afpstats does not specify a specific version of python either in its installed path nor in its text. Such a file cannot be analyzed for dependencies since the v
> ersion of python it will be used with is unknown. The text of the file is here: /home/slow/opencsw/netatalk/trunk/work/solaris11-i386/pkgroot/opt/csw/bin/afpstats.
> /home/slow/opencsw/.buildsys/v2/gar//gar.pkg.mk:1160: recipe for target 'packageips-netatalk' failed
> ---8<---
>
> head -n 1 /home/slow/opencsw/netatalk/trunk/work/solaris11-i386/pkgroot/opt/csw/bin/afpstats
> #!/usr/bin/env python
>
> How can I fix this?
You need to use a specific Python interpreter, like
#!/opt/csw/bin/python2.7
Can you specific something like —with-python=… or something?
Best regards
— Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20160218/fecc5089/attachment-0001.asc>
More information about the maintainers
mailing list