Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77223 - lxd 5.10-1 broken, links libraft.so.2 but declares no dependency on raft

Attached to Project: Community Packages
Opened by Matt Berry (mwberry) - Saturday, 21 January 2023, 23:59 GMT
Last edited by Toolybird (Toolybird) - Sunday, 22 January 2023, 00:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

lxd 5.10-1 is broken, it links to libraft.so.2 but declares no dependency on raft. The current version of raft is 0.17.1-1 which produces libraft.so.3

Additional info:
* package version(s)

lxd 5.10-1
raft 0.17.1-1

* config and/or log files etc.

```
$ pacman -Qi lxd
Name : lxd
Version : 5.10-1
Architecture : x86_64
Groups : None
Provides : None
Depends On : lxc lxcfs squashfs-tools dnsmasq dqlite libuv ebtables
Optional Deps : lvm2: lvm2 support [installed]
thin-provisioning-tools: thin provisioning support [installed]
btrfs-progs: btrfs storage driver support
minio: storage buckets support
cdrtools: VM support
qemu: VM support [installed]
edk2-ovmf: VM support [installed]
systemd-libs: unix device hotplug support [installed]
apparmor: apparmor support
Build Date : Thu 12 Jan 2023 10:48:49 PM PST

$ pacman -Qi raft
Name : raft
Version : 0.17.1-1
Architecture : x86_64
Groups : None
Provides : None
Depends On : libuv
Optional Deps : None
Required By : dqlite
Optional For : None
Build Date : Sat 21 Jan 2023 07:02:06 AM PST
```

* link to upstream bug report, if any

N/A - packaging bug

Steps to reproduce:


Install the named versions of the above packages and then run:

```
$ ldd /usr/bin/lxd
linux-vdso.so.1 (0x00007ffe9a1d4000)
liblxc.so.1 => /usr/lib/liblxc.so.1 (0x00007f477f6e9000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f4782d20000)
libacl.so.1 => /usr/lib/libacl.so.1 (0x00007f4782d16000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f477f59c000)
libraft.so.2 => not found
libdqlite.so.0 => /usr/lib/libdqlite.so.0 (0x00007f4782c92000)
libudev.so.1 => /usr/lib/libudev.so.1 (0x00007f4782c5f000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f4782c3f000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f477f3b5000)
libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f477f2d9000)
libseccomp.so.2 => /usr/lib/libseccomp.so.2 (0x00007f477f2b9000)
libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x00007f477ee00000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f4782d3e000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f477ed18000)
libuv.so.1 => /usr/lib/libuv.so.1 (0x00007f477f288000)
libraft.so.3 => /usr/lib/libraft.so.3 (0x00007f477ecb2000)
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f477eb6a000)
liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f477f255000)
libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007f477eac1000)
liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f477ea9f000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f477ea79000)
```
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 22 January 2023, 00:15 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#77205 
Comment by Matt Berry (mwberry) - Sunday, 22 January 2023, 00:03 GMT
Oh, even weirder, it links to both versions of raft?! I just tried a quick downgrade of raft and noticed that now the other version is missing.

```
$ sudo pacman -U /var/cache/pacman/pkg/raft-0.16.0-1-x86_64.pkg.tar.zst
loading packages...
warning: downgrading package raft (0.17.1-1 => 0.16.0-1)
resolving dependencies...
looking for conflicting packages...

Packages (1) raft-0.16.0-1

Total Installed Size: 0.24 MiB
Net Upgrade Size: -0.01 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [#######################################################] 100%
(1/1) checking package integrity [#######################################################] 100%
(1/1) loading package files [#######################################################] 100%
(1/1) checking for file conflicts [#######################################################] 100%
(1/1) checking available disk space [#######################################################] 100%
:: Processing package changes...
(1/1) downgrading raft [#######################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

$ ldd /usr/bin/lxd
linux-vdso.so.1 (0x00007ffdc03f0000)
liblxc.so.1 => /usr/lib/liblxc.so.1 (0x00007f8201ae9000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f8205112000)
libacl.so.1 => /usr/lib/libacl.so.1 (0x00007f8205108000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f820199c000)
libraft.so.2 => /usr/lib/libraft.so.2 (0x00007f82050ab000)
libdqlite.so.0 => /usr/lib/libdqlite.so.0 (0x00007f8201918000)
libudev.so.1 => /usr/lib/libudev.so.1 (0x00007f8205078000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f8205058000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f8201731000)
libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f8201655000)
libseccomp.so.2 => /usr/lib/libseccomp.so.2 (0x00007f8205038000)
libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x00007f8201200000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f8205130000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f8201118000)
liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f82010f6000)
libuv.so.1 => /usr/lib/libuv.so.1 (0x00007f82010c5000)
libraft.so.3 => not found
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f8200f7d000)
liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f8200f4a000)
libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007f8200ea1000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f8200e7b000)
```
Comment by Doug Newgard (Scimmia) - Sunday, 22 January 2023, 00:09 GMT
Dupe of  FS#77205 

Loading...