diff options
author | Kefu Chai <tchaikov@gmail.com> | 2022-08-04 15:52:43 +0200 |
---|---|---|
committer | Kefu Chai <tchaikov@gmail.com> | 2022-08-05 03:10:04 +0200 |
commit | 04967404ed682835f81c1a5e51f94d09805d38b3 (patch) | |
tree | 3304ce971160a4619a39d2b50d5fba4e4bd0bc90 /debian | |
parent | Merge pull request #47449 from tchaikov/rpm-gts-11 (diff) | |
download | ceph-04967404ed682835f81c1a5e51f94d09805d38b3.tar.xz ceph-04967404ed682835f81c1a5e51f94d09805d38b3.zip |
cmake,debian: install pure python module to deb_system path
in ubuntu 22.04 and debian unstable, the layout (scheme) for system
python module is named "deb_system", the default one is 'posix_local'.
and 'posix_local' installs python modules into paths like
usr/local/lib/python3.10/dist-packages/. hence dh_install fails
when it tries to find the files to be packaged under directory of
usr/lib/python3*/site-packages/.
in this change, the "deb_system" scheme is used if it is available,
and fall back to "posix_prefix" to be backward compatible with older
debian (derivative) distros.
also, update the source directories of pure python's installation
from `site-packages` to `*-packages`, to be compatible with ubuntu focal
and ubuntu jammy. as we are now using the specified scheme instead of
the default one.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/python3-ceph-argparse.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/python3-ceph-argparse.install b/debian/python3-ceph-argparse.install index d3339be7690..52479f93535 100755 --- a/debian/python3-ceph-argparse.install +++ b/debian/python3-ceph-argparse.install @@ -1,4 +1,4 @@ #! /usr/bin/dh-exec -usr/lib/python3*/site-packages/ceph_argparse.py /usr/lib/python3/dist-packages/ -usr/lib/python3*/site-packages/ceph_daemon.py /usr/lib/python3/dist-packages/ +usr/lib/python3*/*-packages/ceph_argparse.py /usr/lib/python3/dist-packages/ +usr/lib/python3*/*-packages/ceph_daemon.py /usr/lib/python3/dist-packages/ |