FS#69447 - [hwloc] Missing descriptions on optional deps

Attached to Project: Arch Linux
Opened by Sasasu (Sasasu) - Wednesday, 27 January 2021, 04:39 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 02 September 2023, 11:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
```
➜ pacman -Si hwloc
Repository : extra
Name : hwloc
Version : 2.4.0-1
Description : Portable Hardware Locality is a portable abstraction of hierarchical architectures
Architecture : x86_64
URL : https://www.open-mpi.org/projects/hwloc/
Licenses : BSD
Groups : None
Provides : None
Depends On : glibc libtool systemd-libs libpciaccess
Optional Deps : cairo
libxml2
pciutils
libx11
Conflicts With : None
Replaces : None
Download Size : 497.23 KiB
Installed Size : 1484.00 KiB
Packager : Levente Polyak <anthraxx@archlinux.org>
Build Date : Wed Jan 13 06:06:00 2021
Validated By : MD5 Sum SHA-256 Sum Signature
```

lstopo out put is
```
root@spodumene ~# lstopo -h
lstopo: error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory
```

strace
```
root@spodumene ~ [127]# strace -e openat,mmap,read lstopo -h
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
mmap(NULL, 32532, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff1c4531000
openat(AT_FDCWD, "/usr/lib/libhwloc.so.15", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 `\0\0\0\0\0\0"..., 832) = 832
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff1c452f000
mmap(NULL, 361144, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff1c44d6000
mmap(0x7ff1c44dc000, 253952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7ff1c44dc000
mmap(0x7ff1c451a000, 77824, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x44000) = 0x7ff1c451a000
mmap(0x7ff1c452d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x56000) = 0x7ff1c452d000
openat(AT_FDCWD, "/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\363\0\0\0\0\0\0"..., 832) = 832
mmap(NULL, 1331224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff1c4390000
mmap(0x7ff1c439f000, 638976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7ff1c439f000
mmap(0x7ff1c443b000, 626688, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xab000) = 0x7ff1c443b000
mmap(0x7ff1c44d4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143000) = 0x7ff1c44d4000
openat(AT_FDCWD, "/usr/lib/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 p\1\0\0\0\0\0"..., 832) = 832
mmap(NULL, 462072, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff1c431f000
mmap(0x7ff1c4336000, 245760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7ff1c4336000
mmap(0x7ff1c4372000, 98304, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x53000) = 0x7ff1c4372000
mmap(0x7ff1c438a000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6a000) = 0x7ff1c438a000
openat(AT_FDCWD, "/usr/lib/tls/x86_64/x86_64/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/x86_64/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/x86_64/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/x86_64/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
lstopo: error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory
```

Steps to reproduce:

1. remove `cairo`
2. install hwloc
3. run `lstopo -h` or `lstopo --of png`
4. got error while loading shared libraries: libcairo.so.2
This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 02 September 2023, 11:11 GMT
Reason for closing:  Not a bug
Additional comments about closing:  listed as optdepend.
Comment by Sasasu (Sasasu) - Wednesday, 27 January 2021, 04:42 GMT
hwloc is not in community repo, it is in extra repo.
move to archlinux bug tracker.
Comment by Doug Newgard (Scimmia) - Wednesday, 27 January 2021, 21:34 GMT
Optional deps really need descriptions here, that's the only issue I can see.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...