[Rpm-maint] [rpm-software-management/rpm] Add test for libtool versioning sanity (#1463)

Panu Matilainen notifications at github.com
Thu Dec 17 07:14:27 UTC 2020


@pmatilai commented on this pull request.



> +# Check that libtool versioning matches expectations, it's easy to screw up.
+AT_SETUP([rpm library version])
+AT_KEYWORDS([basic])
+AT_CHECK([
+cd ${RPMTEST}/${RPMLIBDIR}
+ls lib*.so.*
+],
+[0],
+[librpm.so.9
+librpm.so.9.1.0
+librpmbuild.so.9
+librpmbuild.so.9.1.0
+librpmio.so.9
+librpmio.so.9.1.0
+librpmsign.so.9
+librpmsign.so.9.1.0

https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html

Following those instructions creates perfectly predictable and sensible versions in the filename, one just needs to remember the libtool version *you* pass is *an abstraction* that libtool then turns into something suitable for the OS. On unix-like systems it's the libraryt's major.minor.micro -style version (with major equaling the soname) we're all familiar with, on some other OS I guess it can be something else (otherwise, why would the abstraction exist?)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1463#discussion_r544860670
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201216/860d15d0/attachment.html>


More information about the Rpm-maint mailing list