[pacman-dev] Get the version-number of libalpm

Xavier shiningxc at gmail.com
Fri Feb 29 14:04:10 EST 2008

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 :

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?

More information about the pacman-dev mailing list