Idézés Xavier <shiningxc@gmail.com>:
On Fri, Feb 29, 2008 at 07:40:15PM +0100, Nagy Gabor wrote:
Well, I'm not on linux machine atm, but the patch is quite trivial: to alpm.c: const char SYMEXPORT *alpm_getversion() { return(LIB_VERSION) } And modify alpm.h accordingly :-P
Anyway, thx for the question, LIB_VERSION is hardcoded to the front-end now, grr...
Actually, it's not hardcoded. See last commit where Dan bumped it : 8efe0ecb250050e9061854476468298afb5944d2
it's defined in configure.ac.
But don't ask me what to do from there :)
Isn't the version in the lib filename itself (/usr/lib/libalpm.so.2.2.0)? And isn't there a standard way to get a lib version?
I meant, that the front-end used the library version he got in compile-time (see my patch on usage()); so you get the same number even if you replaced libalpm by hand. (Btw, imho that commit bumped the front-end's version number.) Bye ---------------------------------------------------- SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu This mail sent through IMP: http://horde.org/imp/