Skip to content

Commit

Permalink
packaging: erasure-code plugins go in /usr/lib/ceph
Browse files Browse the repository at this point in the history
Install the plugins in /usr/lib/ceph/erasure-code instead of
/usr/lib/erasure-code to comply with FHS : "Applications may use a
single subdirectory under /usr/lib."

http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html

The debian package is modified to install the plugins as part of the
ceph package which also ships rados-classes.

Signed-off-by: Loic Dachary <[email protected]>
  • Loading branch information
Loic Dachary committed Dec 22, 2013
1 parent cf34af8 commit af22b0a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
15 changes: 7 additions & 8 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,13 @@ fi
%{_libdir}/rados-classes/libcls_replica_log.so*
%{_libdir}/rados-classes/libcls_statelog.so*
%{_libdir}/rados-classes/libcls_version.so*
%dir %{_libdir}/erasure-code
%{_libdir}/erasure-code/libec_example.so*
%{_libdir}/erasure-code/libec_fail_to_initialize.so*
%{_libdir}/erasure-code/libec_fail_to_register.so*
%{_libdir}/erasure-code/libec_hangs.so*
%{_libdir}/erasure-code/libec_jerasure.so*
%{_libdir}/erasure-code/libec_missing_entry_point.so*
%{_libdir}/ceph
%dir %{_libdir}/ceph/erasure-code
%{_libdir}/ceph/erasure-code/libec_example.so*
%{_libdir}/ceph/erasure-code/libec_fail_to_initialize.so*
%{_libdir}/ceph/erasure-code/libec_fail_to_register.so*
%{_libdir}/ceph/erasure-code/libec_hangs.so*
%{_libdir}/ceph/erasure-code/libec_jerasure.so*
%{_libdir}/ceph/erasure-code/libec_missing_entry_point.so*
/lib/udev/rules.d/50-rbd.rules
/lib/udev/rules.d/60-ceph-partuuid-workaround.rules
/lib/udev/rules.d/95-ceph-osd.rules
Expand Down
1 change: 1 addition & 0 deletions debian/ceph.install
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ usr/bin/crushtool
usr/bin/monmaptool
usr/bin/osdmaptool
usr/lib/ceph/ceph_common.sh
usr/lib/ceph/erasure-code/*
usr/lib/rados-classes/*
usr/share/doc/ceph/sample.ceph.conf
usr/share/doc/ceph/sample.fetch_config
Expand Down
3 changes: 2 additions & 1 deletion src/Makefile-env.am
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ AM_COMMON_CPPFLAGS = \
-D_THREAD_SAFE \
-D__STDC_FORMAT_MACROS \
-D_GNU_SOURCE \
-DCEPH_LIBDIR=\"${libdir}\"
-DCEPH_LIBDIR=\"${libdir}\" \
-DCEPH_PKGLIBDIR=\"${pkglibdir}\"

AM_COMMON_CFLAGS = \
-Wall \
Expand Down
2 changes: 1 addition & 1 deletion src/osd/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## erasure code plugins
erasure_codelibdir = $(libdir)/erasure-code
erasure_codelibdir = $(pkglibdir)/erasure-code
erasure_codelib_LTLIBRARIES =

include osd/ErasureCodePluginJerasure/Makefile.am
Expand Down

0 comments on commit af22b0a

Please sign in to comment.