On Mon, Jun 06, 2011 at 02:20:54PM +0200, Matthias Kilian wrote: > On Mon, Jun 06, 2011 at 01:57:07AM -0600, Jasper Lievisse Adriaanse wrote: > > Modified files: > > usr.bin/pkg-config: pkg-config > > > > Log message: > > First steps of teaching pkg-config about 'alpha' and 'beta' versions. > > The order is 'alpha' < 'beta' < ' ' , and the common shorts 'a' and 'b' > > are also accepted. > > It may have some rought edges, but they will be dealt with later. > > What's the plan with pkg-config? The freedesktop version has a very > weird version comparision algorithm which doesn't recognize any special > strings like `alpha', 'beta', rc[[:digit:]]* etc. > > While a more correct (and documented) version comparision would be > nice, it won't protect us from strange version numbers used in upstream > projects. > > One example: if i understand the code from the freedesktop pkg-config, > the following two version numbers would compqre equal: > > 1.2.3.alpha > 1:2/3alpha
I think we ought to normalize version numbers in .pc files a bit, even if that means a bit more patching. And possibly talking with upstream when we find sane people. Just because upstream is very sloppy doesn't mean we should.