Re: libressl pc files
[this is re: https://marc.info/?l=openbsd-tech=160673147428172=2] On 2021/04/12 13:25, Todd C. Miller wrote: > This is a bit of a mess. LibreSSL portable puts the LibreSSL version > number in the pc files. In-tree LibreSSL uses 1.0.0 which is clearly > wrong--using SHLIB_VERSION_NUMBER for the version makes absolutely > no sense to me. The pc files used by OpenSSL also use the release > version. The simplest thing would be for us to use the LibreSSL > version too. > > For third-party code that uses "pkg-config --atleast-version=foo", > it might be more useful to list what version of OpenSSL we are > "compatible" with but I don't think that is really workable since > there is no one-to-one comparison. My preference would be to just > extract the version from LIBRESSL_VERSION_TEXT in opensslv.h. > > - todd That sounds reasonable. I also found https://marc.info/?l=openbsd-tech=149244066604660=2 suggesting the same approach with LIBRESSL_VERSION_TEXT (and a 2015 mail of mine with a related problem). I don't really expect problems (and can do ports tests at least on i386) but for safety let's look at this after unlock.
Re: libressl pc files
On Mon, 12 Apr 2021 13:25:06 -0600, "Todd C. Miller" wrote: > This is a bit of a mess. LibreSSL portable puts the LibreSSL version > number in the pc files. In-tree LibreSSL uses 1.0.0 which is clearly > wrong--using SHLIB_VERSION_NUMBER for the version makes absolutely > no sense to me. The pc files used by OpenSSL also use the release > version. The simplest thing would be for us to use the LibreSSL > version too. > > For third-party code that uses "pkg-config --atleast-version=foo", > it might be more useful to list what version of OpenSSL we are > "compatible" with but I don't think that is really workable since > there is no one-to-one comparison. My preference would be to just > extract the version from LIBRESSL_VERSION_TEXT in opensslv.h. As Stu points out this is the wrong time in the release cycle to change this. We should revisit it post-6.9. - todd
Re: libressl pc files
This is a bit of a mess. LibreSSL portable puts the LibreSSL version number in the pc files. In-tree LibreSSL uses 1.0.0 which is clearly wrong--using SHLIB_VERSION_NUMBER for the version makes absolutely no sense to me. The pc files used by OpenSSL also use the release version. The simplest thing would be for us to use the LibreSSL version too. For third-party code that uses "pkg-config --atleast-version=foo", it might be more useful to list what version of OpenSSL we are "compatible" with but I don't think that is really workable since there is no one-to-one comparison. My preference would be to just extract the version from LIBRESSL_VERSION_TEXT in opensslv.h. - todd