]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: package crypto plugins only on amd64 14820/head
authorKefu Chai <kchai@redhat.com>
Thu, 27 Apr 2017 05:25:58 +0000 (13:25 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 27 Apr 2017 07:14:16 +0000 (15:14 +0800)
currently, only plugin based on isa-l is installed. archs other than
amd64 will not have this directory or the plugin(s) residing in it.
hence dh_install will fail when trying to copy nonexistence file/dir.

* debian/ceph-common.install: chmod +x, and only install crypto on amd64
  so dh_install can filter the install list using dh-exec
* debian/control: depends on dh-exec now. dh-exec v0.13 introduces support
  for filtering based on architecture. see dh-exec's changelog for more
  details. but trusty only offers dh-exec v0.12. so do not require ">=
  0.13) at this moment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
debian/ceph-common.install [changed mode: 0644->0755]
debian/control

old mode 100644 (file)
new mode 100755 (executable)
index e38ede3..0560169
@@ -1,3 +1,5 @@
+#! /usr/bin/dh-exec --with=install
+
 etc/bash_completion.d/rados
 etc/bash_completion.d/rbd
 usr/bin/ceph
@@ -18,7 +20,7 @@ usr/bin/ceph-post-file
 usr/bin/ceph-brag
 usr/sbin/mount.ceph sbin
 usr/lib/ceph/compressor/*
-usr/lib/ceph/crypto/*
+usr/lib/ceph/crypto/* [amd64]
 usr/share/man/man8/ceph-authtool.8
 usr/share/man/man8/ceph-conf.8
 usr/share/man/man8/ceph-dencoder.8
index 1ae3a8a7662c1c8ee0591dedcf5dd99b54897d0c..4e5766362fa8dce73cfee322070ec7ec9b33857e 100644 (file)
@@ -15,6 +15,7 @@ Build-Depends: bc,
                cython,
                cython3,
                debhelper (>= 9),
+               dh-exec,
                dh-python,
               dh-systemd,
                default-jdk,