Skip to content
LINUX · OPEN SOURCE · COMMUNITYIndependent editorial publication

Shared Library Transitions in Debian

Computer motherboard
Illustrative photograph. Motherboard; illustrates computing hardware, not the historic software transition. — Kurt Kaiser; CC0 1.0. Source: https://commons.wikimedia.org/wiki/File:Computer_motherboard.jpg

A shared library is used by multiple programs rather than duplicated inside every application. This makes maintenance efficient, but it also means that a significant library change can affect many packages at once. During the Woody-to-Sarge development cycle, the Debian development mailing list discussed temporary inconsistencies between versions of major software components in Testing and Unstable.

Why applications depend on compatible libraries

Programs compiled against a library expect particular functions and data structures to be available. A change in the application binary interface may require applications to be rebuilt. Package relationships communicate these requirements to the package manager, while library naming and versioning help distinguish incompatible interfaces. The goal is to avoid leaving an application installed with a library it cannot use.

During a transition, related packages may reach the archive at different times. Some architectures may need additional builds or testing. The package manager can only choose from the versions available in configured repositories; it cannot create a missing compatible build. A temporary inability to install an application is therefore different from a permanent design defect in the software.

Recognizing a transition

When an upgrade proposes removing a valuable application, inspect its dependency requirements and the available library versions before accepting. Do not solve the issue by manually copying shared libraries into system directories. That makes package ownership and future maintenance difficult to track. Consult the Debian Reference on package management and use the documented maintenance procedures appropriate to the installed release.

Read the historical glibc discussion for a related example, or learn how package dependencies are expressed. The Debian Planet homepage brings together further Debian guides.

Return to homepage