Package Details: ceph-libs-bin 19.2.1-2

Git Clone URL: https://aur.archlinux.org/ceph-bin.git (read-only, click to copy)
Package Base: ceph-bin
Description: Distributed, fault-tolerant storage platform delivering object, block, and file system
Upstream URL: https://ceph.com/
Licenses: GPL-2.0-or-later OR LGPL-2.1-or-later OR LGPL-3.0-or-later
Conflicts: ceph-libs
Provides: ceph-libs
Submitter: pbazaah
Maintainer: pbazaah
Last Packager: pbazaah
Votes: 10
Popularity: 0.103019
First Submitted: 2022-08-14 16:06 (UTC)
Last Updated: 2025-02-18 14:48 (UTC)

Required by (5)

Sources (29)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »

pbazaah commented on 2023-05-05 14:56 (UTC)

Actually, there's a rub (I think this is your issue too)

There are two similarly named tars that are relevant:

  • ceph-bin-17.2.6-1.tar.zst
  • ceph-bin-17.2.6-1-x86_64.pkg.tar.zst

The first is the downloaded artifacts from the src build I upload to Github. Naturally, this will have all of the trappings of the ceph project.

The latter is the package this repo produces and is tagged correctly

pbazaah commented on 2023-05-05 14:49 (UTC)

@snack

I can reproduce this behavior, and agree this seems wrong. I can't see anything that would have caused this in the most recent release -- https://aur.archlinux.org/cgit/aur.git/commit/?h=ceph-bin&id=69d8607bb198c477a40a4923c61725b33acc2abe -- so I'm inclined to think there might be a bug in current makepkg.

I'll see if I can track down older packages (built with an older makepkg) to compare

snack commented on 2023-05-05 06:31 (UTC) (edited on 2023-05-05 07:44 (UTC) by snack)

Inspecting the ceph-bin-17.2.6-1.tar.zst produced by makepkg I found that in the .BUILDINFO and .PKGINFO files there are the following lines:

pkgname = ceph
pkgbase = ceph
pkgver = 17.2.6-1
. . . 

which explains why pacman believes to be installing ceph rather than ceph-bin. But I cannot figure out the reason for this.

Edit: in the .PKGINFO I also found:

conflict = ceph-bin
provides = ceph=17.2.6-1

which is complete nonsense. I'm 100% sure I'm building ceph-bin and not ceph, I did it several times from scratch and I consistently get the same result. Still I absolutely cannot figure out why, since the PKGBUILD and the .SRCINFO seems ok, e.g. from the .SRCINFO:

pkgname = ceph-bin
        depends = ceph-libs=17.2.6-1
        . . . 
        depends = gawk
        optdepends = smartmontools: disk monitoring via S.M.A.R.T
        optdepends = nvme-cli: disk monitoring for NVMe drives
        provides = ceph=17.2.6-1
        conflicts = ceph
        . . . 

snack commented on 2023-05-05 06:03 (UTC)

So I removed ceph-bin and ceph-libs-bin, but I still get problems with yay trying to build also ceph when I try to install ceph-bin:

$ yay -S ceph-bin
AUR Dependency (1): ceph-libs-17.2.6-1
AUR Explicit (1): ceph-bin-17.2.6-1
Sync Make Dependency (50): python-elasticsearch-7.9.0-3, python-pkgconfig-1.5.5-5, python-xmlsec-1.3.13-3, python-virtualenv-20.21.0-1, python-scipy-1.10.1-3, python-scikit-learn-1.2.2-3, python-pecan-1.4.2-3, yaml-cpp-0.7.0-2, fcgi-2.4.2-2, coffeescript-2.7.0-1, cunit-2.1.3-3, python-pyjwt-2.6.0-2, rabbitmq-3.11.9-1, python-cheroot-9.0.0-5, python-lazy-object-proxy-1.9.0-3, python-isort-5.12.0-2, python-flask-2.2.2-3, python-portend-3.1.0-3, bc-1.07.1-4, python-coverage-6.5.0-5, python-werkzeug-2.3.2-1, python-wrapt-1.14.1-2, gperf-3.1-4, python-py-1.11.0-4, xmlstarlet-1.6.1-3, python-defusedxml-0.7.1-5, python-pbr-5.11.1-5, python-protobuf-21.12-2, libcroco-0.6.13-2, python-flask-restful-0.3.9-5, jre11-openjdk-headless-11.0.19.u7-1, crypto++-8.7.0-1, cpio-2.13-3, libcurl-compat-8.0.1-1, yasm-1.3.0-6, python-google-api-python-client-2.83.0-2, cython-0.29.34-3, python-astroid-2.15.4-2, gtest-1.13.0-1, lsb-release-2.0.r48.3cf5103-1, python-pluggy-1.0.0-4, python-google-auth-2.16.2-2, python-isodate-0.6.1-3, socat-1.7.4.4-1, python-cherrypy-18.8.0-3, junit-4.13.2-1, python-tempora-5.2.2-2, python-google-auth-httplib2-0.1.0-4, python-mccabe-0.7.0-5, python-prometheus_client-0.16.0-2
Sync Check Dependency (6): python-pycodestyle-2.10.0-2, python-mock-3.0.5-11, python-pylint-2.17.3-2, python-pytest-cov-4.0.0-3, python-nose-1.3.7-15, python-pytest-7.3.1-4
:: (1/2) Downloaded PKGBUILD: ceph-bin
:: (2/2) Downloaded PKGBUILD: ceph
  2 ceph-bin                         (Build Files Exist)
  1 ceph                             (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>

snack commented on 2023-05-05 05:55 (UTC)

@pbazaah I use yay as well, and trying to upgrade with it I got the request to install the makedependencies of the non-bin packages. That's what triggered my suspects. Then I decided to buid the packages with makepkg and then install with pacman -U. That way I did not get any problem with the makedependencies, but then at install time I got the request to remove ceph-bin since it conflicts with ceph, even if I was installing ceph-bin. Now pacman believes the non-bin packages are installed on my system. I inspected the PKGBUILD and I see no evident error so I'm a bit clueless. I'll try to remove ceph and install ceph-bin from scratch using yay.

pbazaah commented on 2023-05-04 22:04 (UTC)

@snack

Nope, but I don't use -U for installs. All I can say is that I've just updated a decent number of machines myself, and never ran into this problem.

Does this problem present itself if you yay -S ceph-libs-bin ceph-bin? If not, I'd guess its a problem with pacman/libalpm dependency resolution, because the ceph packages have a provides clause for the src variant, and a strict dependency on equal versioned sister packages.

@Kevdog

I'm fairly surprised you managed to trigger a cmake error, given this package doesn't invoke cmake at all.


Lastly as PSA: this package will likely need (several) rebuilds in the coming days, as python 3.11 is imminent. I have no idea how much work will be involved in the fixing, as the changes from 3.10 are considerable.

snack commented on 2023-05-04 14:04 (UTC) (edited on 2023-05-04 14:06 (UTC) by snack)

@pbazaah I built and installed ceph-bin and ceph-libs-bin. As I wrote in my previous post pacman removed the installed -bin versions and installed the packages as non -bin. This is the complete output:

$ sudo pacman -U ceph-bin-17.2.6-1.tar.zst ceph-libs-bin-17.2.6-1.tar.zst 
loading packages...
resolving dependencies...
looking for conflicting packages...
:: ceph and ceph-bin are in conflict. Remove ceph-bin? [y/N] y
:: ceph-libs and ceph-libs-bin are in conflict. Remove ceph-libs-bin? [y/N] y

Packages (4) ceph-bin-17.2.5-6 [removal]  ceph-libs-bin-17.2.5-6 [removal]  ceph-17.2.6-1  ceph-libs-17.2.6-1

Total Installed Size:  323.97 MiB
Net Upgrade Size:        1.08 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                                                                                                                     [####################################################################################################] 100%
(2/2) checking package integrity                                                                                                                                   [####################################################################################################] 100%
(2/2) loading package files                                                                                                                                        [####################################################################################################] 100%
(2/2) checking for file conflicts                                                                                                                                  [####################################################################################################] 100%
(4/4) checking available disk space                                                                                                                                [####################################################################################################] 100%
:: Processing package changes...
(1/2) removing ceph-bin                                                                                                                                            [####################################################################################################] 100%
(2/2) removing ceph-libs-bin                                                                                                                                       [####################################################################################################] 100%
(1/2) installing ceph-libs                                                                                                                                         [####################################################################################################] 100%
(2/2) installing ceph                                                                                                                                              [####################################################################################################] 100%
warning: directory permissions differ on /etc/sudoers.d/
filesystem: 750  package: 755
warning: directory permissions differ on /var/log/ceph/
filesystem: 750  package: 755
Optional dependencies for ceph
    smartmontools: disk monitoring via S.M.A.R.T [installed]
    nvme-cli: disk monitoring for NVMe drives
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
(2/4) Reloading system manager configuration...
(3/4) Creating temporary files...
(4/4) Arming ConditionNeedsUpdate...
[15:59 mori@stryke ceph-bin]$ pacman -Qi ceph-bin
error: package 'ceph-bin' was not found
[15:59 mori@stryke ceph-bin]$ pacman -Qi ceph    
Name            : ceph
Version         : 17.2.6-1
Description     : Distributed, fault-tolerant storage platform delivering object, block, and file system
Architecture    : x86_64
URL             : https://ceph.com/
Licenses        : GPL
Groups          : None
Provides        : ceph=17.2.6-1
Depends On      : ceph-libs=17.2.6-1  boost-libs  curl  fuse3  fmt  glibc  gperftools  java-runtime  keyutils  libaio  libutil-linux  librdkafka  cryptsetup  libnl  ncurses  nss  oath-toolkit  python  snappy  sudo  systemd-libs  lua  gawk
Optional Deps   : smartmontools: disk monitoring via S.M.A.R.T [installed]
                  nvme-cli: disk monitoring for NVMe drives
Required By     : None
Optional For    : None
Conflicts With  : ceph-bin
Replaces        : None
Installed Size  : 214.86 MiB
Packager        : Unknown Packager
Build Date      : sab 29 apr 2023, 14:21:31
Install Date    : gio 4 mag 2023, 15:59:44
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

So it can be seen that even if I installed the -bin packages now it seems that pacman believes that non -bin versions are installed. I believe this is not correct, do you have any clue about this? Anybody experiencing the same?

Kevdog commented on 2023-05-04 00:57 (UTC) (edited on 2023-05-04 01:00 (UTC) by Kevdog)

When trying to install ceph-bin I get the following:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Java (missing: Java_JAVAC_EXECUTABLE Java_JAR_EXECUTABLE Java_JAVADOC_EXECUTABLE Development) (found version "11.0.19")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindJava.cmake:314 (find_package_handle_standard_args)
  src/java/CMakeLists.txt:1 (find_package)

I have the following java installed:

java --version
openjdk 11.0.19 2023-04-18
OpenJDK Runtime Environment (build 11.0.19+7)
OpenJDK 64-Bit Server VM (build 11.0.19+7, mixed mode

snack commented on 2023-05-01 17:18 (UTC)

@pbazaah On my system there are just -bin packages as you can see in the output of pacman -Qs ceph below. Still, when trying to install ceph-bin 17.2.6-1 it asks me to remove ceph-bin itself since it conflicts with ceph; but there's no ceph packagebon my system, nor I'm trying to install it. This sounds strange to me.

pbazaah commented on 2023-05-01 12:32 (UTC) (edited on 2023-05-01 12:34 (UTC) by pbazaah)

They are different. Quoting https://aur.archlinux.org/packages/ceph#comment-884150

TLDR:

https://aur.archlinux.org/pkgbase/ceph | From source build (slow)

https://aur.archlinux.org/pkgbase/ceph-bin | Pre-built binaries (fast)

Unlike the original community version, this repo builds ceph from source. Ceph is a large, complicated project so this takes several hours on a good build server.

To get a similar experience to how community/ceph worked (pre-built binaries) use ceph-bin instead.

I'd recommend you only use bin packages, or src packages but not both at the same time