Port version difficulties (maybe one for the Python crowd)

Peter Pentchev roam at ringlet.net
Fri Dec 11 18:15:25 UTC 2009

On Mon, Dec 07, 2009 at 05:12:03PM -0500, Greg Larkin wrote:
> Hash: SHA1
> Kevin Golding wrote:
> > In article <4B1D617A.6020303 at FreeBSD.org>, Greg Larkin
> > <glarkin at FreeBSD.org> writes
> >> This might get you further:
> >>
> >> fbsd70# make -V \
> >> PYDISTUTILS_PKGVERSION:C/\(\[\[:digit:\]\]\.\[\[:digit:\]\]\)\./\\1_/g
> >> 0.1_0
> >> fbsd70#
> > 
> > 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:
> > 
> > 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==0.1.0'
> > failed
> > 
> > I actually had to double check I did indeed update the correct file.  A
> > bit strange anyway.
> > 
> > Kevin
> Hi Kevin,
> 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

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'

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


Peter Pentchev	roam at ringlet.net    roam at space.bg    roam at FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13
.siht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20091211/01de4b78/attachment.pgp

More information about the freebsd-ports mailing list