Artix Linux Forum

Artix Linux => Package management => Topic started by: cr6 on 25 March 2024, 12:32:36

Title: libunwind files in /usr/libexec ?
Post by: cr6 on 25 March 2024, 12:32:36
Hello,

According to the Arch package guidelines (https://wiki.archlinux.org/title/Arch_package_guidelines#Package_etiquette),
it specifically says: "Avoid using /usr/libexec/ for anything. Use /usr/lib/$pkgname/ instead."

Looking at the latest release (https://github.com/libunwind/libunwind/releases/tag/v1.8.1) of libunwind,
it says: "By default these executables are installed in ${libexecdir}/libunwind where ${libexecdir} defaults to ${prefix}/libexec, but all this can be set explicitly though arguments to configure."

However, I have these files on my system:

Code: [Select]
$ pacman -Ql libunwind
[...]
libunwind /usr/libexec/
libunwind /usr/libexec/libunwind/
libunwind /usr/libexec/libunwind/Gperf-simple
libunwind /usr/libexec/libunwind/Gperf-trace
libunwind /usr/libexec/libunwind/Gtest-bt
libunwind /usr/libexec/libunwind/Gtest-concurrent
libunwind /usr/libexec/libunwind/Gtest-exc
libunwind /usr/libexec/libunwind/Gtest-init
libunwind /usr/libexec/libunwind/Gtest-resume-sig
libunwind /usr/libexec/libunwind/Gtest-resume-sig-rt
libunwind /usr/libexec/libunwind/Gtest-trace
libunwind /usr/libexec/libunwind/Gx64-test-dwarf-expressions
libunwind /usr/libexec/libunwind/Lperf-simple
libunwind /usr/libexec/libunwind/Lperf-trace
libunwind /usr/libexec/libunwind/Lrs-race
libunwind /usr/libexec/libunwind/Ltest-bt
libunwind /usr/libexec/libunwind/Ltest-concurrent
libunwind /usr/libexec/libunwind/Ltest-exc
libunwind /usr/libexec/libunwind/Ltest-init
libunwind /usr/libexec/libunwind/Ltest-init-local-signal
libunwind /usr/libexec/libunwind/Ltest-mem-validate
libunwind /usr/libexec/libunwind/Ltest-nocalloc
libunwind /usr/libexec/libunwind/Ltest-nomalloc
libunwind /usr/libexec/libunwind/Ltest-resume-sig
libunwind /usr/libexec/libunwind/Ltest-resume-sig-rt
libunwind /usr/libexec/libunwind/Ltest-trace
libunwind /usr/libexec/libunwind/Ltest-varargs
libunwind /usr/libexec/libunwind/Lx64-test-dwarf-expressions
libunwind /usr/libexec/libunwind/check-namespace.sh
libunwind /usr/libexec/libunwind/crasher
libunwind /usr/libexec/libunwind/forker
libunwind /usr/libexec/libunwind/mapper
libunwind /usr/libexec/libunwind/run-coredump-unwind
libunwind /usr/libexec/libunwind/run-coredump-unwind-mdi
libunwind /usr/libexec/libunwind/run-ptrace-mapper
libunwind /usr/libexec/libunwind/run-ptrace-misc
libunwind /usr/libexec/libunwind/test-async-sig
libunwind /usr/libexec/libunwind/test-coredump-unwind
libunwind /usr/libexec/libunwind/test-flush-cache
libunwind /usr/libexec/libunwind/test-init-remote
libunwind /usr/libexec/libunwind/test-mem
libunwind /usr/libexec/libunwind/test-proc-info
libunwind /usr/libexec/libunwind/test-ptrace
libunwind /usr/libexec/libunwind/test-ptrace-misc
libunwind /usr/libexec/libunwind/test-reg-state
libunwind /usr/libexec/libunwind/test-runner
libunwind /usr/libexec/libunwind/test-setjmp
libunwind /usr/libexec/libunwind/test-static-link
libunwind /usr/libexec/libunwind/test-strerror
libunwind /usr/libexec/libunwind/x64-unwind-badjmp-signal-frame

Shouldn't they go to /usr/lib instead?
Title: Re: libunwind files in /usr/libexec ?
Post by: gripped on 25 March 2024, 14:26:31
Maybe they, or at least some of them, don't need to be installed at all ?
To quote more of the context of the text and link you posted.
Quote
One of the functional changes is that the testsuite is now installed with a make install, which may affect downstream packagers. By default these executables are installed in ${libexecdir}/libunwind where ${libexecdir} defaults to ${prefix}/libexec, but all this can be set explicitly though arguments to configure.

So the test suite now gets installed.

The upstream Arch package is the same.
Title: Re: libunwind files in /usr/libexec ?
Post by: cr6 on 25 March 2024, 15:05:32
The upstream Arch package is the same.

Yes, I know that.

But maybe:
Code: [Select]
./configure --libexecdir=/usr/lib

should be considered?
Title: Re: libunwind files in /usr/libexec ?
Post by: cr6 on 07 April 2024, 17:49:53
Fixed by commit (https://gitea.artixlinux.org/packages/libunwind/commit/83fe28b4d1c571dc60d45cb3d5c7be9f912f08b1) 
Title: Re: libunwind files in /usr/libexec ?
Post by: gripped on 07 April 2024, 18:33:14
Fixed by commit (https://gitea.artixlinux.org/packages/libunwind/commit/83fe28b4d1c571dc60d45cb3d5c7be9f912f08b1) 
Which was just mirroring the upstream change (https://gitlab.archlinux.org/archlinux/packaging/packages/libunwind/-/commit/0295eec941069eadc425038e8c06e7c787291375)
But you probably know that.