Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Nov 2016 04:04:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 213717] net-p2p/bitmessage: Update fixing python path
Message-ID:  <bug-213717-13-nURupXfe1Q@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213717-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213717-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213717

Jan Beich (mail not working) <jbeich@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbeich@FreeBSD.org

--- Comment #1 from Jan Beich (mail not working) <jbeich@FreeBSD.org> ---
Comment on attachment 176071
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D176071
patch

>  post-patch:
> -	@${REINPLACE_CMD} -e 's|python2|${PYTHON_CMD}| ; s|share/man|man|' \
> +	@${REINPLACE_CMD} -e 's|@PYTHON@|${PYTHON_CMD}|' \
[...]
> -+	echo 'exec /usr/local/bin/python2.7 bitmessagemain.py' >> ${DESTDIR}${=
PREFIX}/bin/${APP}
> ++	echo 'exec @PYTHON@ bitmessagemain.py' >> ${DESTDIR}${PREFIX}/bin/${AP=
P}

Why not pass $(PYTHON) via MAKE_ENV then completely drop REINPLACE_CMD agai=
nst
${WRKSRC}/Makefile ?

> 	@${REINPLACE_CMD} -e 's|^#!.*$$|#!${PYTHON_CMD}|' \
> 		${WRKSRC}/compiletest.py ${WRKSRC}/src/bitmessagecli.py ${WRKSRC}/src/b=
itmessagemain.py \
> 		${WRKSRC}/src/depends.py \

Convert to USES=3Dshebangfix, see ports r399684 or /usr/ports/CHANGES from
20151022. Ditto for missed files:

  $ pkg info -qxl bitmessage|xargs grep '#!.*/env'
  /usr/local/share/pybitmessage/pyelliptic/cipher.py:#!/usr/bin/env python
  /usr/local/share/pybitmessage/pyelliptic/ecc.py:#!/usr/bin/env python
  /usr/local/share/pybitmessage/pyelliptic/hash.py:#!/usr/bin/env python
  /usr/local/share/pybitmessage/pyelliptic/openssl.py:#!/usr/bin/env python
  /usr/local/share/pybitmessage/qidenticon.py:#!/usr/bin/env python
  /usr/local/share/pybitmessage/singleton.py:#! /usr/bin/env python

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213717-13-nURupXfe1Q>