Project

General

Profile

Actions

Fix #12529

closed

moving files between packages with deb

Added by Loïc Dachary almost 9 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When moving a file from one package to the other, from ceph to ceph-common for instance, the following must be done in the debian/control file:

Package: ceph
Depends: ceph-common (>= 0.94.2-2)

Package: ceph-common
Replaces: ceph-client-tools,
       ceph (<< 0.94.2-2),
Breaks: ceph (<< 0.94.2-2),

The -2 is greater than -1trusty, -1jessie etc. which are used for releases (see https://github.com/ceph/ceph-build/blob/master/gen_debian_version.sh and https://github.com/ceph/ceph-build/blob/master/build_debs.sh#L35).

This method is difficult to remember and to understand. It could probably be fixed by moving the packaging outside of the sources or by using native package names (without the -1trusty for instance) when releasing deb packages to reflect the fact that they really are native packages.

See also the Breaks & Replaces in debian/control in backports discussion on ceph-devel.

Actions

Also available in: Atom PDF