Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469564 - sys-cluster/ceph-0.61 should depend on dev-libs/leveldb[snappy]
Summary: sys-cluster/ceph-0.61 should depend on dev-libs/leveldb[snappy]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-12 11:25 UTC by Denis Kaganovich
Modified: 2014-02-18 15:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Kaganovich 2013-05-12 11:25:34 UTC
Summary from #465120 & #463218: ceph depend from leveldb & snappy, but more precise: dev-libs/leveldb[snappy]. Else it can cause behavior when snappy installed AFTER leveldb and levedb will be without snappy linkage, but ceph don't use directly snappy, it use snappy in leveldb (and just check separately).

So, to avoid broken build (random? in my case snappy installed ONLY after levedb without it), dependence must be fixed to dev-libs/leveldb[snappy].

Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2014-01-14 07:46:27 UTC
check 0.72.2 source code, snappy is needed by leveldb

# check is snappy-devel is installed, needed by leveldb
AC_CHECK_LIB([snappy], [snappy_compress], [], [AC_MSG_FAILURE([libsnappy not found])])

./src/os/LevelDBStore.cc:
  if (options.compression_enabled)
    ldoptions.compression = leveldb::kSnappyCompression;
    else
    ldoptions.compression = leveldb::kNoCompression;

(sounds it would be optional, from this source code)
Comment 2 Yixun Lan archtester gentoo-dev 2014-01-14 09:57:25 UTC
@denis, could you give the detail error messages or whatever detail info you confronted with? I'm still interested..
Comment 3 Yixun Lan archtester gentoo-dev 2014-01-15 08:25:36 UTC
fixed in version 0.72.2, 0.67.5, thanks
Comment 4 Denis Kaganovich 2014-02-18 15:16:31 UTC
I don't remember, but IMHO there are no error messages. But compressed leveldb database can be created for monitor or OSD, so in some cases (mainly in data migration, IMHO) it can cause strange failures. In any case, usable features can be randomly supported or no - this is bad sleeping bug... Or in ceph configuration time? Also I was use compressed monitor database - in old time of buggy Cuttlefish release (database size growing). Now I not use snappy compression, but it is possible.
Comment 5 Denis Kaganovich 2014-02-18 15:19:21 UTC
PS To use snappy compression:
mon leveldb compression = true
and|or
osd leveldb compression = true