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

Nagy Gabor ngaba at bibl.u-szeged.hu
Sat Mar 1 05:16:41 EST 2008


Idézés Xavier <shiningxc at 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/





More information about the pacman-dev mailing list