mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
app-crypt/gnupg: provide /usr/bin/gpg and /usr/bin/gpgv in pkg_postinst
After app-crypt/gnupg[alternatives] is merged, gnupg no longer provides /usr/bin/gpg, and there's no /usr/bin/gpg on the system until app-alternatives/gpg can be merged. That's somewhat-fine unless app-alternatives/gpg is a signed binpkg, in which case gpg is needed to verify it. Provide gpg and gpgv as orphaned symlinks in pkg_postinst to handle this case. Reported-by: Jay Faulkner <jayf@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
90e01486c2
commit
133742ca3a
@ -204,3 +204,14 @@ my_src_install_all() {
|
||||
dodoc "${FILESDIR}"/README-systemd
|
||||
systemd_douserunit "${GNUPG_SYSTEMD_UNITS[@]/#/${T}/}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# If /usr/bin/gpg and /usr/bin/gpgv do not exist, provide them.
|
||||
if [[ ! -e ${EROOT}/usr/bin/gpg ]]; then
|
||||
ln -sf -- gpg-reference "${EROOT}"/usr/bin/gpg || die
|
||||
fi
|
||||
|
||||
if [[ ! -e ${EROOT}/usr/bin/gpgv ]]; then
|
||||
ln -sf -- gpgv-reference "${EROOT}"/usr/bin/gpgv || die
|
||||
fi
|
||||
}
|
||||
@ -208,3 +208,14 @@ my_src_install_all() {
|
||||
dodoc "${FILESDIR}"/README-systemd
|
||||
systemd_douserunit "${GNUPG_SYSTEMD_UNITS[@]/#/${T}/}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# If /usr/bin/gpg and /usr/bin/gpgv do not exist, provide them.
|
||||
if [[ ! -e ${EROOT}/usr/bin/gpg ]]; then
|
||||
ln -sf -- gpg-reference "${EROOT}"/usr/bin/gpg || die
|
||||
fi
|
||||
|
||||
if [[ ! -e ${EROOT}/usr/bin/gpgv ]]; then
|
||||
ln -sf -- gpgv-reference "${EROOT}"/usr/bin/gpgv || die
|
||||
fi
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user