7zip: do not run xbps-alternatives in INSTALL script

This results in a deadlock since now that xbps correctly holds the lock
on the pkgdb, xbps-alternatives in the INSTALL script will just wait
for the lock indefinitely.
This commit is contained in:
Duncaen 2025-08-02 17:50:33 +02:00
parent 261359efed
commit e1c0007ec4
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35
2 changed files with 1 additions and 9 deletions

View file

@ -1,8 +0,0 @@
# https://github.com/void-linux/void-packages/issues/41209
# When p7zip is updated from 16.02 or earlier,
# /usr/bin/7z symlink will be lost because
# - 7zip installed first -> alternatives system will `ln -s 7zip usr/bin/7z'
# - p7zip upgrade will remove its old files, aka `rm -f usr/bin/7z
if [ ! -L usr/bin/7z ]; then
xbps-alternatives -r "$PWD" -s 7zip
fi

View file

@ -1,7 +1,7 @@
# Template file for '7zip'
pkgname=7zip
version=25.00
revision=1
revision=2
short_desc="File archiver with a high compression ratio"
maintainer="Roberto Ricci <io@r-ricci.it>"
license="LGPL-2.1-or-later, BSD-3-Clause"