Odd version comparison

Tollef Fog Heen tfheen at err.no
Thu Sep 11 08:24:01 PDT 2008

]] Alpár Jüttner 

| I've just noticed that pkg-config (in fact the function rpmvercmp() in
| pkg.c) compares the version numbers in a quite strange (and sometimes
| dangerous) way.


| Is this behavior intentional?

Not really; I believe it's from RPM's version comparison function.  I'd
be fine with us just using ASCII ordering on each version number
component (which are separated by «.») or something similar to that.


Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

More information about the pkg-config mailing list