void-packages/srcpkgs/perl-GnuPG-Interface/patches/0002-Hardcode-path-to-usr-b...

39 lines
1.1 KiB
Diff

From 4185798921211925d38e9ea2cd0f28f3eb32ddca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Wed, 15 Jun 2022 13:10:01 +0200
Subject: [PATCH 2/2] Hardcode path to /usr/bin/gpg
---
lib/GnuPG/Interface.pm | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/GnuPG/Interface.pm b/lib/GnuPG/Interface.pm
index 7fd2321..ed2f49e 100644
--- a/lib/GnuPG/Interface.pm
+++ b/lib/GnuPG/Interface.pm
@@ -76,7 +76,7 @@ sub gnupg_call { shift->call(@_); }
sub BUILD {
my ( $self, $args ) = @_;
- $self->hash_init( call => 'gpg', %$args );
+ $self->hash_init( call => '/usr/bin/gpg', %$args );
}
struct(
@@ -1183,9 +1183,8 @@ keys to list in a key-listing.
=item call
-This defines the call made to invoke GnuPG. Defaults to 'gpg'; this
-should be changed if 'gpg' is not in your path, or there is a different
-name for the binary on your system.
+This defines the call made to invoke GnuPG. Defaults to '/usr/bin/gpg'; this
+should be changed if there is a different name for the binary on your system.
=item passphrase
--
2.36.1