mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
pacman: our gpg is gpg2
This commit is contained in:
parent
d172751748
commit
ebf986fa2d
2 changed files with 5 additions and 44 deletions
|
@ -1,38 +0,0 @@
|
||||||
gpg to gpg2:
|
|
||||||
Arch's "gnupg" package is this distro's "gnupg2"
|
|
||||||
This patches all references to the gpg command to use
|
|
||||||
gpg2 instead.
|
|
||||||
|
|
||||||
diff -Naur pacman-5.2.1.orig/scripts/pacman-key.sh.in pacman-5.2.1/scripts/pacman-key.sh.in
|
|
||||||
--- a/scripts/pacman-key.sh.in 2019-10-24 06:29:08.000000000 -0700
|
|
||||||
+++ b/scripts/pacman-key.sh.in 2020-05-24 02:30:26.838797182 -0700
|
|
||||||
@@ -51,6 +51,7 @@
|
|
||||||
UPDATEDB=0
|
|
||||||
USE_COLOR='y'
|
|
||||||
VERIFY=0
|
|
||||||
+GPG_COMMAND='gpg2'
|
|
||||||
|
|
||||||
usage() {
|
|
||||||
printf "pacman-key (pacman) %s\n" ${myver}
|
|
||||||
@@ -591,8 +592,8 @@
|
|
||||||
unset ALL_OFF BOLD BLUE GREEN RED YELLOW
|
|
||||||
fi
|
|
||||||
|
|
||||||
-if ! type -p gpg >/dev/null; then
|
|
||||||
- error "$(gettext "Cannot find the %s binary required for all %s operations.")" "gpg" "pacman-key"
|
|
||||||
+if ! type -p ${GPG_COMMAND} >/dev/null; then
|
|
||||||
+ error "$(gettext "Cannot find the %s binary required for all %s operations.")" "${GPG_COMMAND}" "pacman-key"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -611,7 +612,7 @@
|
|
||||||
# file, falling back on a hard default
|
|
||||||
PACMAN_KEYRING_DIR=${PACMAN_KEYRING_DIR:-$(pacman-conf --config="$CONFIG" gpgdir)}
|
|
||||||
|
|
||||||
-GPG_PACMAN=(gpg --homedir "${PACMAN_KEYRING_DIR}" --no-permission-warning)
|
|
||||||
+GPG_PACMAN=(${GPG_COMMAND} --homedir "${PACMAN_KEYRING_DIR}" --no-permission-warning)
|
|
||||||
if [[ -n ${KEYSERVER} ]]; then
|
|
||||||
GPG_PACMAN+=(--keyserver "${KEYSERVER}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pacman'
|
# Template file for 'pacman'
|
||||||
pkgname=pacman
|
pkgname=pacman
|
||||||
version=5.2.2
|
version=5.2.2
|
||||||
revision=2
|
revision=3
|
||||||
make_dirs="/var/lib/pacman 0755 root root
|
make_dirs="/var/lib/pacman 0755 root root
|
||||||
/usr/var/cache/pacman/pkg 0755 root root
|
/usr/var/cache/pacman/pkg 0755 root root
|
||||||
/usr/share/libalpm/hooks 0755 root root"
|
/usr/share/libalpm/hooks 0755 root root"
|
||||||
|
@ -9,7 +9,7 @@ conf_files="/etc/pacman.conf"
|
||||||
build_style=meson
|
build_style=meson
|
||||||
hostmakedepends="autoconf automake curl libtool gettext-devel pkg-config asciidoc"
|
hostmakedepends="autoconf automake curl libtool gettext-devel pkg-config asciidoc"
|
||||||
makedepends="libarchive-devel gpgme-devel libcurl-devel"
|
makedepends="libarchive-devel gpgme-devel libcurl-devel"
|
||||||
depends="gnupg2"
|
depends="gnupg>=2"
|
||||||
checkdepends="fakeroot"
|
checkdepends="fakeroot"
|
||||||
short_desc="Simple library-based package manager"
|
short_desc="Simple library-based package manager"
|
||||||
maintainer="oreo639 <oreo6391@gmail.com>"
|
maintainer="oreo639 <oreo6391@gmail.com>"
|
||||||
|
@ -17,11 +17,10 @@ license="GPL-2.0-or-later"
|
||||||
homepage="https://www.archlinux.org/pacman/"
|
homepage="https://www.archlinux.org/pacman/"
|
||||||
distfiles="https://sources.archlinux.org/other/pacman/pacman-${version}.tar.gz"
|
distfiles="https://sources.archlinux.org/other/pacman/pacman-${version}.tar.gz"
|
||||||
checksum=bb201a9f2fb53c28d011f661d50028efce6eef2c1d2a36728bdd0130189349a0
|
checksum=bb201a9f2fb53c28d011f661d50028efce6eef2c1d2a36728bdd0130189349a0
|
||||||
|
make_check=ci-skip
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
||||||
do_check() {
|
make_check=no # fakechroot is not available
|
||||||
: fakechroot is not available
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
checkdepends+=" fakechroot"
|
checkdepends="fakeroot fakechroot gnupg"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue