Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2009 20:14:28 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Greg Larkin <glarkin@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org, Kevin Golding <kevin@caomhin.demon.co.uk>
Subject:   Re: Port version difficulties (maybe one for the Python crowd)
Message-ID:  <20091211181428.GA1391@straylight.m.ringlet.net>
In-Reply-To: <4B1D7DB3.60507@FreeBSD.org>
References:  <T$6QMzB3cTHLFweT@caomhin.demon.co.uk> <4B1D516D.2060209@FreeBSD.org> <f51z98BLTVHLFwfN@caomhin.demon.co.uk> <4B1D617A.6020303@FreeBSD.org> <WqvBZKCinWHLFwvg@caomhin.demon.co.uk> <4B1D7DB3.60507@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 07, 2009 at 05:12:03PM -0500, Greg Larkin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> Kevin Golding wrote:
> > In article <4B1D617A.6020303@FreeBSD.org>, Greg Larkin
> > <glarkin@FreeBSD.org> writes
> >> This might get you further:
> >>
> >> fbsd70# make -V \
> >> PYDISTUTILS_PKGVERSION:C/\(\[\[:digit:\]\]\.\[\[:digit:\]\]\)\./\\1_/g
> >> 0.1_0
> >> fbsd70#
> >=20
> > Well that does indeed work in that context, but I have no idea why it
> > appears to do nothing in the Makefile.  It seems completely unchanged:
> >=20
> > pkg_delete: unexec command for '/usr/local/bin/easy_install-2.6 -q -m -S
> > /usr/local/lib/python2.6/site-packages django-signals-ahoy=3D=3D0.1.0'
> > failed
> >=20
> > I actually had to double check I did indeed update the correct file.  A
> > bit strange anyway.
> >=20
> > Kevin
>=20
> Hi Kevin,
>=20
> There's a lot more backslash escaping required in the :C suffix above
> when running the make command directly in the shell.  If you remove some
> of the backslashes in the equivalent line in the Makefile, should be all
> set.  Then you can check to make it's working by running "make -V
> PYEASYINSTALL_UNINSTALLARGS".

A bit off-topic, and a bit late, but you can avoid the need for those
additional backslashes by simply placing the string in apostrophes
(single quotes).  It's the shell that tries to interpret the string
before passing it to "make" itself, and the single quotes tell
the shell to not even try to interpret the string.

So, just do:

  make -V 'PYDISTUTILS_PKGVERSION:C/([[:digit:]]\.[[:digit:]])\./\1_/g'

=2E..and you'll see what make(1) thinks of the quoted string, just as if
you'd put it in the Makefile.

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net    roam@space.bg    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13
=2Esiht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI

--WIyZ46R2i8wDzkSu
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)

iQIcBAEBCgAGBQJLIowDAAoJEGUe77AlJ98TKKUQAJHp1tLdnBnFgzCp5oexRGyr
XVtDxVcb0dorv9mHfAxD+iQkhimjzRU837PA2NgFWqLigss/aJpn73N2tbh9F5F5
6OjzS3gNBWqntqgT/+Itp+JKWlgzFNaVPLyLEb21F0GILcfvx2pxVz6eYLtaPfoD
rgGfteFkqLkZkmZwnYDN7SIDTs1qKj+/dG967GDlcT7EKlMEX+EHlJ/ESHb1gWgZ
6eGZSL1xzV3SbUzxHUb4RIxOWdRqBzgyTa8HcilzMYkwGJxfco02sNRWcwCIHMVF
iKLUOAgKTYz9oDcVDgidoLSPEusoP8s3TuD3lGlj74GMflJ8r4JIFjxCmnpt55hm
3dEuGHE8G5fWL4csTXgJpAG8JobRCrKsGNF+bifXOpI0kdVwFLHw+5g7f1ziX/t+
KIpG4vSly2fucVzXt4k3jjKJlSc3o7YNhBpy/5z5Q9pXxp7BoRckObD3jBRe3VV2
sKaG5j+R31tdNJv6etAXzEH2f4l1xS2l3zr4qKe15IsXKHNcixJ1Dhlz6afRNJ/M
gf3ScN0bDZd3zcWejI+kfTwk+5FrbKc3g8UGFYFs9A8BHaa1J9PztnXt6EI++/r5
P4Ekc40PdV7wHFSn4t07f3wrf09yoHSsCNau25u42MqTLMvTtf/GlcXni9tt9YAM
khsMsyiIOXC17KBTBBj/
=OfEa
-----END PGP SIGNATURE-----

--WIyZ46R2i8wDzkSu--



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