Bug #3945
closedosd: dynamically link to leveldb
0%
Description
We hit a problem with quantal that underscored the danger of linking statically to libleveldb. After some discussion with Sam we think we should stop doing that.
Instead, we need to:
- create our own libleveldb package (debs and rpms)
- change debian/rules to dynamically link
- update debian/control so that we require >= the current static version.
- for older distros, include our libleveldb package in the release repo, and make debian/control require >= that version.
- remove our submodule
Updated by Anonymous about 11 years ago
The current version of leveldb that is being used by ceph is 1.2. The wip-leveldb has version 1.9 which is the latest release.
The versions included with distributions are listed below:
Debian Releases
Jessie (8.0)
N/A
Wheezy (7.0)
libleveldb1 1.5 (0+20120530.gitdd0d562-1i)
libleveldb-dev
Squeeze (6.0)
No upstream package
Ubuntu Releases
Raring (13.04)
N/A
Quantal (12.10)
libleveldb1 1.5 (0+20120530.gitdd0d562-2)
libleveldb-dev
Precise (12.04)
libleveldb-dev 1.2 (0+20120125.git3c8be10-1)
static library only
Oneric (11.10)
No upstream package
Natty (11.04)
No upstream package
Centos
Centos6
leveldb-devel 1.7 (epel)
RHEL
RHEL 7
N/A
RHEL 6
leveldb-devel 1.7 (epel)
Fedora
Fedora 19 (TBD)
N/A
Fedora 18
leveldb-devel 1.7
Fedora 17
leveldb-devel 1.7
OpenSuSE
OpenSuse12 (12.2)
No upstream package
SLES
SLES 11 (SP2)
No upstream package
Updated by Danny Al-Gaaf about 11 years ago
leveldb 1.9 for openSUSE/SLE11SP2: https://build.opensuse.org/package/show?package=leveldb&project=home%3Adalgaaf%3Aceph%3Aextra
Updated by Anonymous about 11 years ago
The leveldb backports (and libsnappy) available for for platforms that need them.
Updated by Mark Nelson about 11 years ago
packages on gitbuilder currently appear to be broken. An update attempt this morning shows:
nhm@burnupiX:~$ sudo apt-get install ceph
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ceph : Depends: libleveldb1 (>= 1.2) but it is not installable
Recommends: ceph-mds but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Updated by Danny Al-Gaaf about 11 years ago
The problem is that quantal only have libleveldb1 version 0+20120530.gitdd0d562-2 (check http://packages.ubuntu.com/search?lang=de&keywords=libleveldb-dev&searchon=names), which is in fact v1.2 (due to the source of the package, check the NEWS file: "Release 1.2 2011-05-16").
Check pull request for a fix #79 (https://github.com/dalgaaf/ceph/commit/f42a63ba1b1ad7a0948b180bef0bb4a947633e98)
Updated by Dan Mick about 11 years ago
We should also update README to include the new packages
Updated by Anonymous about 11 years ago
Danny's pull request updated the README file. Thanks for the reminder.
Updated by Anonymous about 11 years ago
Backports of leveldb should only be needed for squeeze, oneiric, sles, and opensuse. Squeeze also requires a snappy backport. Packages are on http://gitbuilder.ceph.com/
leveldb-deb-i686/
leveldb-deb-x86_64/
leveldb-rpm-opensuse12.2-x86_64/
leveldb-rpm-sles11-x86_64/
leveldb and snappy are available in the epel repository for centos6/rhel6.
A repository that can be used with apt or yum is in progress.
Updated by Stefan Priebe almost 11 years ago
Can somebody tell me where the snappy .deb is? i can't find it for squeeze under the gitbuilder
Updated by Dan Mick almost 11 years ago
Stefan: I opened http://gitbuilder.ceph.com and it was right there:
http://gitbuilder.ceph.com/leveldb-deb-x86_64/
Edit: nope, you said snappy. Sorry, I don't know about that one.