<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34586</bug_id>
          
          <creation_ts>2018-02-26 15:42:40 +0300</creation_ts>
          <short_desc>ceph/common.so.0 упакован в librados2</short_desc>
          <delta_ts>2018-02-28 12:14:22 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ceph</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgeny Sinelnikov">sin</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>maks1ms</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>169267</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2018-02-26 15:42:40 +0300</bug_when>
    <thetext>Наткнулся на вот такой комментарий при сборке пакета зависящего от ceph:

commit 666c6802cbe148356b1b2b19893ce43d3521343a
Author: David Disseldorp &lt;ddiss@suse.de&gt;
Date:   Thu Jul 20 11:10:57 2017 +0200

    build: fix ceph_statx check when configured with libcephfs_dir
    
    When configured with a custom libcephfs_dir, the ceph_statx check fails
    to link. This is due to the location of the ceph-common dependency,
    which is installed under a ceph subdirectory.
    
    ceph/build &gt; make DESTDIR=./inst install
    ...
    ceph/build &gt; find inst/|grep -e /libcephfs -e /libceph-common
    inst/usr/local/lib64/ceph/libceph-common.so.0
    inst/usr/local/lib64/ceph/libceph-common.so
    inst/usr/local/lib64/libcephfs.so.2.0.0
    inst/usr/local/lib64/libcephfs.so.2
    inst/usr/local/lib64/libcephfs.so
    inst/usr/local/include/cephfs/libcephfs.h
    
    Bug: https://bugzilla.samba.org/show_bug.cgi?id=13250
    
    Signed-off-by: David Disseldorp &lt;ddiss@suse.de&gt;
    Reviewed-by: Jeff Layton &lt;jlayton@samba.org&gt;
    
    (cherry picked from commit ff7df3d3f5259362a6bb6780d6b532e57e89681d)
    
    Autobuild-User(v4-6-test): Karolin Seeger &lt;kseeger@samba.org&gt;
    Autobuild-Date(v4-6-test): Tue Feb 13 13:36:13 CET 2018 on sn-devel-144

Вопрос. А разве правильно, что /usr/lib64/ceph/common.so.0 упакован в пакет librados2, а не в libcephfs2?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169293</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2018-02-27 12:23:12 +0300</bug_when>
    <thetext>(В ответ на комментарий №0)
&gt; Вопрос. А разве правильно, что /usr/lib64/ceph/common.so.0 упакован в пакет
&gt; librados2, а не в libcephfs2?
Скорее да. libcephfs2 нужен не так многим, а librados2 нужен всем, кто использует ceph.
Т.к. /usr/lib64/librados.so.2 слинкован с /usr/lib64/ceph/common.so.0, то и упакован в этот же пакет. Как вариант, можно упаковать /usr/lib64/ceph/common.so.0 в отдельный пакет, но от этого мало пользы, сам по себе он никому не нужен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169294</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2018-02-27 12:27:45 +0300</bug_when>
    <thetext>кстати, и в RH, и в debian, /usr/lib64/ceph/common.so.0 тоже в пакете librados.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169315</commentid>
    <comment_count>3</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2018-02-28 12:11:03 +0300</bug_when>
    <thetext>Честно говоря, я пока не понимаю как оно у них собирается. Думаю, что RH и CentOS не имеет смысла смотреть:
http://src.fedoraproject.org/rpms/samba
...
%global with_vfs_cephfs 0
%if 0%{?fedora}
%ifarch aarch64 ppc64le s390x x86_64
%global with_vfs_cephfs 1
%endif
%endif

Да, и на i586 тоже получается.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169316</commentid>
    <comment_count>4</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2018-02-28 12:12:42 +0300</bug_when>
    <thetext>А... Ну, у них тоже есть костыль:

From ebae8df5e4b955f235cdeb629e99d32d35766d65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= &lt;gd@samba.org&gt;
Date: Mon, 15 Jan 2018 23:20:39 +0100
Subject: [PATCH] FIXME: build: fix libceph-common detection

Guenther

Signed-off-by: Guenther Deschner &lt;gd@samba.org&gt;
---
 source3/wscript | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/source3/wscript b/source3/wscript
index 0f8fe5452da..4eba0103be8 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1540,6 +1540,8 @@ main() {
         conf.env[&apos;CPPPATH_CEPHFS&apos;] = Options.options.libcephfs_dir + &apos;/include&apos;
         conf.env[&apos;LIBPATH_CEPHFS&apos;] = Options.options.libcephfs_dir + &apos;/lib&apos;
         conf.env[&apos;LIBPATH_CEPH-COMMON&apos;] = Options.options.libcephfs_dir + &apos;/lib/ceph&apos;
+    else:
+        conf.env[&apos;LIBPATH_CEPH-COMMON&apos;] = Options.options.LIBDIR + &apos;/ceph&apos;
 
     if (Options.options.with_cephfs and
         conf.CHECK_HEADERS(&apos;cephfs/libcephfs.h&apos;, False, False, &apos;cephfs&apos;) and
-- 
2.14.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169318</commentid>
    <comment_count>5</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2018-02-28 12:14:22 +0300</bug_when>
    <thetext>Наверное, у них даже по-изящнее, чем у меня получилось:
http://git.altlinux.org/people/sin/packages/samba.git?p=samba.git;a=commitdiff;h=9a24e06ad5071756737ba8efda51cc29c646be9f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>