Project

General

Profile

Feature #3228

build-system: check match between debian package names and shared object files

Added by pespin 7 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
05/03/2018
Due date:
% Done:

100%

Spec Reference:

Description

Debian names packages containing shared object libraries by adding the major version to the package name.

For instance, libfoo.1.2.3 becomes libfoo1 .deb package, where "1" is the major version.

For libtool's system current:revision:age, it gets translated into version number major.age.revision, where major=current-age, reflecting the fact that ABIs can be backwards compatible. Debian uses major to generate the package name.

Further information can be found in https://osmocom.org/projects/cellular-infrastructure/wiki/Make_a_new_release#Versioning-considerations-for-libraries.

Sometimes we incorrectly update LIBVERSION variable in Makefile.am with regards to the debian package name in debian/, and as a result we can end up for instance having a libfoo1 deb package containing a libfoo.0 -> libfoo.0.1.0 library files, which is wrong, since the debian package name should match the installed major version library. See OS#3175 as a real example.

To prevent it, we should add some extra logic/hooks to debian/rules to match filenames being added to a library package are correct regarding its package name.


Related issues

Related to libosmocore - Bug #3175: Packaging: Upgrading libosmocore impossibel due to dpkg error overwriting libosmoctrl.so.0Feedback2018-04-16

Related to Cellular Network Infrastructure - Feature #3229: build-system: jenkins.sh: Improve debian package generation test coverage during gerrit submissionNew2018-05-03

History

#1 Updated by pespin 7 months ago

  • Related to Bug #3175: Packaging: Upgrading libosmocore impossibel due to dpkg error overwriting libosmoctrl.so.0 added

#2 Updated by pespin 7 months ago

  • Related to Feature #3229: build-system: jenkins.sh: Improve debian package generation test coverage during gerrit submission added

#3 Updated by pespin 3 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)