Project

General

Profile

Actions

Feature #3228

closed

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

Added by pespin almost 6 years ago. Updated over 5 years 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.0Resolvedkeith04/16/2018

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

Actions
Actions #1

Updated by pespin almost 6 years ago

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

Updated by pespin almost 6 years ago

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

Updated by pespin over 5 years ago

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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)