Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2012 06:10:14 GMT
From:      Marcus von Appen <mva@FreeBSD.org>
To:        freebsd-python@FreeBSD.org
Subject:   Re: ports/146957: Mk/bsd.python.mk: PYTHONOPTIMIZE=1 in environ(7) breaks plist
Message-ID:  <201206040610.q546AEsU016999@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/146957; it has been noted by GNATS.

From: Marcus von Appen <mva@FreeBSD.org>
To: swell.k@gmail.com, bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/146957: Mk/bsd.python.mk: PYTHONOPTIMIZE=1 in environ(7)
 breaks plist
Date: Mon, 4 Jun 2012 08:08:51 +0200

 --KFztAG8eRSV9hGtP
 Content-Type: multipart/mixed; boundary="UlVJffcvxoiEqYs2"
 Content-Disposition: inline
 
 
 --UlVJffcvxoiEqYs2
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 The attached change to MAKE_ENV fixes the issue by explicitly (re)setting
 PYTHONOPTIMIZE for distutils targets (default python setup.py and
 easy_install-based installations).
 
 Cheers
 Marcus
 
 --UlVJffcvxoiEqYs2
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="pyopt_fix.diff"
 Content-Transfer-Encoding: quoted-printable
 
 Index: Mk/bsd.python.mk
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/pcvs/ports/Mk/bsd.python.mk,v
 retrieving revision 1.146
 diff -u -r1.146 bsd.python.mk
 --- Mk/bsd.python.mk	30 May 2012 14:54:34 -0000	1.146
 +++ Mk/bsd.python.mk	4 Jun 2012 06:06:32 -0000
 @@ -689,7 +689,7 @@
 =20
  .if defined(USE_PYDISTUTILS)
  LDSHARED?=3D	${CC} -shared
 -MAKE_ENV+=3D	LDSHARED=3D"${LDSHARED}"
 +MAKE_ENV+=3D	LDSHARED=3D"${LDSHARED}" PYTHONOPTIMIZE=3D
 =20
  .if !target(do-configure) && !defined(HAS_CONFIGURE) && !defined(GNU_CONFI=
 GURE)
  do-configure:
 
 --UlVJffcvxoiEqYs2--
 
 --KFztAG8eRSV9hGtP
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (FreeBSD)
 
 iEYEARECAAYFAk/MUPMACgkQi68/ErJnpkfCeACfbimkj2EwZlMKZuMba1oQ9Gwm
 oMUAn1hTt3O8JZbSZvnTlVXaWN71ZZeP
 =BoNP
 -----END PGP SIGNATURE-----
 
 --KFztAG8eRSV9hGtP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206040610.q546AEsU016999>