Package: reprepro
Version: 4.4.0-1
Severity: normal
Tags: patch upstream
Hello,
on the host I use reprepro on there is some (not yet debugged) problem
with gpg. reprepro emits:
Error: gpgme returned NULL unexpectedly for gpgme_op_sign_result
This most likely means gpg is confused or produces some error libgpgme
is
not able to understand. Try running
gpg -u 'EEE8DC4DCFBE7252' -u 'EEE8DC4DCFBE7252' --output
'some-other-file' --detach-sign 'some-file'
for hints what this error might have been. (Sometimes just running
it once manually seems also to help...)
The irritating thing is that the option -u 'EEE8DC4DCFBE7252' is printed
twice.
The following patch fixes it and emits the right key ids:
diff --git a/signedfile.c b/signedfile.c
index 08efac91d888..2dfa348aeb96 100644
--- a/signedfile.c
+++ b/signedfile.c
@@ -57,7 +57,7 @@ static retvalue check_signature_created(bool clearsign, bool
willcleanup, /*@nul
uidoptions != NULL && i < options->count ;
i++) {
char *u = mprintf("%s -u '%s'", uidoptions,
- options->values[0]);
+ options->values[i]);
free(uidoptions);
uidoptions = u;
}
The problem was introduced in b344a0710f030c5eace3f0cee663583da74789e8
(= reprepro-4.4.0~8)
Best regards
Uwe
-- System Information:
Debian Release: bookworm/sid
APT prefers testing-debug
APT policy: (700, 'testing-debug'), (700, 'stable-security'), (700,
'stable-debug'), (700, 'testing'), (700, 'stable'), (600, 'unstable'), (500,
'unstable-debug'), (500, 'oldstable-updates'), (500, 'oldstable-debug'), (500,
'oldoldstable'), (500, 'oldstable'), (499, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, arm64
Kernel: Linux 5.15.0-3-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages reprepro depends on:
ii libarchive13 3.5.2-1
ii libbz2-1.0 1.0.8-5
ii libc6 2.33-5
ii libdb5.3 5.3.28+dfsg1-0.8
ii libgpg-error0 1.43-3
ii libgpgme11 1.16.0-1.2
ii liblzma5 5.2.5-2
ii zlib1g 1:1.2.11.dfsg-2
ii zstd 1.4.8+dfsg-3
Versions of packages reprepro recommends:
ii apt 2.3.15
Versions of packages reprepro suggests:
ii gnupg-agent 2.2.27-3
ii gpg-agent [gnupg-agent] 2.2.27-3
pn inoticoming <none>
ii lzip 1.22-5
ii pinentry-curses 1.1.0-4
-- no debconf information