]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
configure.ac,debian,rpm: do not package .a files in rpm/deb packages 9476/head
authorKefu Chai <kchai@redhat.com>
Mon, 6 Jun 2016 03:08:27 +0000 (11:08 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 7 Jun 2016 06:08:59 +0000 (14:08 +0800)
this change removes *.a from -dev or -devel packages.

* configure.ac:
  - use LT_INIT instead of AM_PROG_LIBTOOL. the later is deprecated.
  - disable static lib:
    .a static libraries not not useful, it's tricky to generate both
    static libraries and shared libraries in cmake.
    see http://www.spinics.net/lists/ceph-devel/msg30637.html
* ceph.spec.in: fedora packaging policy forbids this
  see
  https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries
* debian/*-dev.install: debian does not requires this
  see
  https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-static

Signed-off-by: Kefu Chai <kchai@redhat.com>
PendingReleaseNotes
ceph.spec.in
configure.ac
debian/libcephfs-dev.install
debian/librados-dev.install
debian/libradosstriper-dev.install
debian/librbd-dev.install
debian/librgw-dev.install

index db109a697ea4baae72353369710d11fa9e467750..080fe32b6db95ee6aefe3fa846596f66554fbedf 100644 (file)
 
 * The `osd crush location` config option is no longer supported.  Please
   update your ceph.conf to use the `crush location` option instead.
+
+* The static libraries are not included by the debian development packages
+  (lib*-dev) any more. As it is not required per debian packaging policy.
+  And their shared versions are packaged as before.
+
+* The libtool pseudo-libraries (.la files) are not included by the debian
+  development packages (lib*-dev) any more. As it is unneeded, and per
+  https://wiki.debian.org/ReleaseGoals/LAFileRemoval and
+  https://www.debian.org/doc/manuals/maint-guide/advanced.en.html,
+  we should remove them.
\ No newline at end of file
index 79bef540c3890fbfb3da4e08e13598960e3f69d8..10687fc893eddb1bd92e358e1abaade96c41c0f8 100644 (file)
@@ -688,7 +688,6 @@ make %{?_smp_mflags} check
 %install
 make DESTDIR=%{buildroot} install
 find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
-find %{buildroot} -type f -name "*.a" -exec rm -f {} ';'
 install -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
 %if 0%{?fedora} || 0%{?rhel}
 install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph
index aae79163038257695ba5b9c28dc4d7b9eed9f434..b6453b187393d79c7f10396d2c5f70931b20a236 100644 (file)
@@ -47,7 +47,7 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 
 # Automake
 AM_PROG_CC_C_O
-AM_PROG_LIBTOOL
+LT_INIT([disable-static])
 AM_PROG_AS
 
 
index 97ddfc7edea285e33520129ea3038c67787b0c9d..625c874ec146bd8c646732415f5ca3236cebc750 100644 (file)
@@ -1,3 +1,2 @@
 usr/include/cephfs/libcephfs.h
-usr/lib/libcephfs.a
 usr/lib/libcephfs.so
index 1baf60aab04ad4ef4e8345376fce7ed5c078b4c6..c3231c96bb2d1250bc365ee905ad4f28bf6ab929 100644 (file)
@@ -8,6 +8,5 @@ usr/include/rados/page.h
 usr/include/rados/rados_types.h
 usr/include/rados/rados_types.hpp
 usr/include/rados/memory.h
-usr/lib/librados.a
 usr/lib/librados.so
 usr/share/man/man8/librados-config.8
index 14b8a124027a431eb3e255f1e03dbdcd699d4feb..f7986d30f2d7ce0c710b9cf29fc3885fc58b9a9c 100644 (file)
@@ -1,4 +1,3 @@
 usr/include/radosstriper/libradosstriper.h
 usr/include/radosstriper/libradosstriper.hpp
-usr/lib/libradosstriper.a
 usr/lib/libradosstriper.so
index ffdd1de1e2a4bc1e6bcc6fdb9c022013642bc9ab..dd0109a3427474a84703bcf6bc274d05e6e01f2e 100644 (file)
@@ -1,5 +1,4 @@
 usr/include/rbd/features.h
 usr/include/rbd/librbd.h
 usr/include/rbd/librbd.hpp
-usr/lib/librbd.a
 usr/lib/librbd.so
index c88a0a7ae87783b68f7bc39471bb5984ebf995e9..ed2a81dba5013a2be67fec3e78bf2c1f918de02d 100644 (file)
@@ -1,4 +1,3 @@
 usr/include/rados/librgw.h
 usr/include/rados/rgw_file.h
-usr/lib/librgw.a
 usr/lib/librgw.so