[botan-devel] specific version for botan-config and pkgconfig
lloyd at randombit.net
Fri Aug 26 10:21:11 EDT 2011
I would recommend testing for the specific versions you want to
support. For instance pkg-config, using --exists to check for which
versions you care to support. This is a good idea because 1.8 and 1.10
are in fact not source compatible with each other, which is what the
change in minor numbers means. If you are willing to support either
1.8 or 1.10, check for both.
I think you can likely not safely rely on what exactly the pkg-config
or *-config files will be named from distro to distro or release to
release anyway, at least going by the comments in
(which is some m4 code for checking for semi-arbitrarily renamed
Splitting these by major versions was done to allow for Debian (and,
presumably, other distros, though I don't know if any of them are
doing so currently) to support parallel installation of 1.8 and 1.10.
Ie on a Debian system you might have 1.8, 1.10, or both installed.
On Wed, Aug 24, 2011 at 09:12:05AM -0500, Jeremy C. Reed wrote:
> (I didn't recall getting any followup so I am posting again. I didn't
> register for the bug tracker. I see gentoo now has a bug on this too,
> but there suggested work-around has the same issue -- don't know
> version so can't get flags.)
> On Tue, 24 May 2011, Jeremy C. Reed wrote:
> > Normally a configure scripts would use the generic name
> > "botan-config" to find out details, but since:
> > Revision: 76cf44edb8490685708fbaef5899e551954c27cf
> > Date: 05/12/11 12:56:46
> > (I think) this now has a specific name. I can understand how the
> > versioned binary helps some, but now may break many.
> > On my main system I have 60 "foo-config" style scripts. Of these 14 have
> > versioned names.
> > I may adjust my projects configure.ac to also check for
> > botan-config-1.9, but that means I will need to maintain this for later
> > versions too. But maybe that is a good idea to force me to confirm it
> > works first. Any thoughts on this?
> > Maybe a symlink should be there? And if some packager does not want it,
> > they can disable that symlinking?
> > On a related note, the pkgconfig file has same problem -- for example
> > "pkg-config --libs botan" does not work -- need specific version
> > like: "pkg-config --libs botan-1.9".
> > On my system I have at least 259 .pc files. Of those, around 82 have
> > versions as part of filenames -- but even of those they are very
> > different APIs, so only a few are specific (like botan-1.8.pc).
> > _______________________________________________
> > botan-devel mailing list
> > botan-devel at randombit.net
> > http://lists.randombit.net/mailman/listinfo/botan-devel
> botan-devel mailing list
> botan-devel at randombit.net
More information about the botan-devel