[tahoe-dev] [Greg Troxel] CVS commit: pkgsrc/security/py-cryptopp

Jeffrey Johnson n3npq at mac.com
Wed Mar 21 01:06:55 UTC 2012


On Mar 20, 2012, at 8:12 PM, Greg Troxel wrote:

> Do linux package systems handle version components with an mpi package?
> 

MPI is overkill.

RPM pads shorter digit string with leading zero's and then calls strcmp(3).
(actually shorter digit string is always smaller, even easier than padding)

Same truth table as MPI comparison.

Multi-component versions are split into segments comparing digits w digits,
alphas w alphas, punctuation w punctuation, piece wise.

73 de Jeff

> 
> From: "Greg Troxel" <gdt at netbsd.org>
> Subject: CVS commit: pkgsrc/security/py-cryptopp
> Date: March 20, 2012 7:38:26 PM EDT
> To: pkgsrc-changes at NetBSD.org
> Reply-To: gdt at netbsd.org
> 
> 
> Module Name:	pkgsrc
> Committed By:	gdt
> Date:		Tue Mar 20 23:38:26 UTC 2012
> 
> Modified Files:
> 	pkgsrc/security/py-cryptopp: Makefile
> 
> Log Message:
> Split version into sane and excessive parts.
> 
> Upstream's version is 0.6.0.X, where X appears to be a large integer
> in decimal that corresponds to a git sha1 has.  Such large numbers
> violate the assumption, true with just about every previous package,
> that version number components will fit in an int --- code that
> handles version numbers does not use a multiprecision integer library
> like gmp.  To address this, split the version into what would have
> been the version under normal procedures (0.6.0), and put the bignum
> into ${VERSION_EXCESSIVE}, allowing it be used in DISTNAME but not
> PKGNAME.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.7 -r1.8 pkgsrc/security/py-cryptopp/Makefile
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 
> 
> 
> _______________________________________________
> tahoe-dev mailing list
> tahoe-dev at tahoe-lafs.org
> http://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20120320/b86d0221/attachment.html>


More information about the tahoe-dev mailing list