--- findutils-4.7.0/build-aux/gnupload	2019-08-29 21:14:52.000000000 +0000
+++ findutils-4.7.0/build-aux/gnupload.new	2019-08-30 09:25:36.421027685 +0000
@@ -24,7 +24,7 @@ scriptversion=2018-05-19.18; # UTC
 
 set -e
 
-GPG=gpg
+GPG?=gpg
 # Choose the proper version of gpg, so as to avoid a
 # "gpg-agent is not available in this session" error
 # when gpg-agent is version 3 but gpg is still version 1.
@@ -32,7 +32,7 @@ GPG=gpg
 gpg_agent_version=`(gpg-agent --version) 2>/dev/null | sed -e '2,$d' -e 's/^[^0-9]*//'`
 case "$gpg_agent_version" in
   2.*)
-    gpg_version=`(gpg --version) 2>/dev/null | sed -e '2,$d' -e 's/^[^0-9]*//'`
+    gpg_version=`(${GPG} --version) 2>/dev/null | sed -e '2,$d' -e 's/^[^0-9]*//'`
     case "$gpg_version" in
       1.*)
         if (type gpg2) >/dev/null 2>/dev/null; then
