libxcrypt: noverifyrdeps on libxcrypt-compat

this fixes the dependency cycle when installing e.g. `base-system` on an
empty root:
```
$ mkdir /tmp/testroot
$ xbps-install -SdR https://repo-default.voidlinux.org/current -r /tmp/testroot base-system
...
[DEBUG] Error checking glibc>=2.36_1 for rundeps: Too many levels of symbolic links
[DEBUG] Error checking libxcrypt-compat>=0 for rundeps: Too many levels of symbolic links
...
```

After this change, there should be no special user intervention needed
or error to resolve.
This commit is contained in:
classabbyamp 2024-01-04 12:57:33 -05:00 committed by classabbyamp
parent 2eeb8813ed
commit e255843fd1

View file

@ -1,10 +1,11 @@
# Template file for 'libxcrypt'
pkgname=libxcrypt
version=4.4.36
revision=2
revision=3
archs="~*-musl"
build_style=gnu-configure
configure_args="--enable-hashes=all --disable-failure-tokens --enable-obsolete-api=no"
make_cmd="make -C build"
hostmakedepends="perl-bootstrap"
checkdepends="python3-passlib"
short_desc="Modern library for one-way hashing of passwords"
@ -13,7 +14,6 @@ license="LGPL-2.1-or-later, BSD-3-Clause, BSD-2-Clause, 0BSD, Public Domain"
homepage="https://github.com/besser82/libxcrypt"
distfiles="https://github.com/besser82/libxcrypt/releases/download/v${version}/libxcrypt-${version}.tar.xz"
checksum=e5e1f4caee0a01de2aee26e3138807d6d3ca2b8e67287966d1fefd65e1fd8943
make_cmd="make -C build"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
broken="musl already provides libcrypt"
@ -66,6 +66,7 @@ libxcrypt-devel_package() {
libxcrypt-compat_package() {
short_desc+=" - legacy compatibility"
noverifyrdeps=yes
pkg_install() {
vmove usr/lib/libcrypt.so.1*
}