* bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string
@ 2019-05-08 8:23 Kazuhiro Ito
2019-05-10 18:26 ` Ken Brown
2019-08-26 6:04 ` Lars Ingebrigtsen
0 siblings, 2 replies; 6+ messages in thread
From: Kazuhiro Ito @ 2019-05-08 8:23 UTC (permalink / raw)
To: 35629
Cygwin's gpg2 has "-unknown" suffix in version string.
> $ gpg2 --version
>
> gpg (GnuPG) 2.2.15-unknown
> ...
version-to-list function fails to parse this version string and
epg-find-configuration can't find gpg2 as supported one.
(epg-find-configuration 'OpenPGP t)
-> ((program . "/usr/bin/gpg")
(compress 0 1 2 3)
(digestname . "MD5;SHA1;RIPEMD160;SHA256;SHA384;SHA512;SHA224")
(digest 1 2 3 8 9 10 11)
(ciphername . "IDEA;3DES;CAST5;BLOWFISH;AES;AES192;AES256;TWOFISH;CAMELLIA128;CAMELLIA192;CAMELLIA256")
(cipher 1 2 3 4 7 8 9 10 11 12 13)
(pubkey 1 2 3 16 17)
(version . "1.4.23"))
Modifying version-regexp-alist variable resolves the issue.
;; I don't know meaning of "-unknown" version, so I don't know whether
;; "-4" is apropriate value.
(progn (add-to-list 'version-regexp-alist
'("^[-._+ ]?unknown$" . -4))
(epg-find-configuration 'OpenPGP t))
-> ((program . "/usr/bin/gpg2")
(curve . "cv25519;ed25519;nistp256;nistp384;nistp521;secp256k1")
(compressname . "Uncompressed;ZIP;ZLIB;BZIP2")
(compress 0 1 2 3)
(digestname . "SHA1;RIPEMD160;SHA256;SHA384;SHA512;SHA224")
(digest 2 3 8 9 10 11)
(ciphername . "IDEA;3DES;CAST5;BLOWFISH;AES;AES192;AES256;TWOFISH;CAMELLIA128;CAMELLIA192;CAMELLIA256")
(cipher 1 2 3 4 7 8 9 10 11 12 13)
(pubkeyname . "RSA;ELG;DSA;ECDH;ECDSA;EDDSA")
(pubkey 1 16 17 18 19 22)
(version . "2.2.15-unknown"))
--
Kazuhiri Ito
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string
2019-05-08 8:23 bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string Kazuhiro Ito
@ 2019-05-10 18:26 ` Ken Brown
2019-05-11 8:32 ` Kazuhiro Ito
2019-08-26 6:04 ` Lars Ingebrigtsen
1 sibling, 1 reply; 6+ messages in thread
From: Ken Brown @ 2019-05-10 18:26 UTC (permalink / raw)
To: Kazuhiro Ito, 35629@debbugs.gnu.org
On 5/8/2019 4:23 AM, Kazuhiro Ito wrote:
> Cygwin's gpg2 has "-unknown" suffix in version string.
>
>> $ gpg2 --version
>>
>> gpg (GnuPG) 2.2.15-unknown
>> ...
This is a bug in the Cygwin build of gnupg2. I've sent a fix to the Cygwin
mailing list:
http://www.cygwin.org/ml/cygwin/2019-05/msg00089.html
Ken
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string
2019-05-10 18:26 ` Ken Brown
@ 2019-05-11 8:32 ` Kazuhiro Ito
2019-05-11 21:18 ` Ken Brown
0 siblings, 1 reply; 6+ messages in thread
From: Kazuhiro Ito @ 2019-05-11 8:32 UTC (permalink / raw)
To: Ken Brown; +Cc: 35629@debbugs.gnu.org
> > Cygwin's gpg2 has "-unknown" suffix in version string.
> >
> >> $ gpg2 --version
> >>
> >> gpg (GnuPG) 2.2.15-unknown
> >> ...
>
> This is a bug in the Cygwin build of gnupg2. I've sent a fix to the Cygwin
> mailing list:
> http://www.cygwin.org/ml/cygwin/2019-05/msg00089.html
Thank you for the investigation. Actually, the same problem occurs in
MSYS2 and MSYS2/mingw packages. Furthermore, as far as I tested,
autoreconf on release tarball adds extra "-unknown" in version string
independently of platforms.
I think that two issues are related with my bug report.
#1. Cygwin, MSYS2's gnupg binary has extra "-unknown" in version string
despite of that they should be released version.
I think it is what you've reported to Cygwin ML.
#2. Locally built gnupg binary may become "-unknown" suffix version.
GnuPG's autogen.sh makes "-unknown" suffix version configure script if
source code directory doesn't have .git directory. If "-unknown"
suffix is a bug as a general thing, I think GnuPG's repository should
be fixed. If not, I hope vertion-to-list function accepts "-unknown"
suffix. How do you think?
--
Kazuhiro Ito
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string
2019-05-11 8:32 ` Kazuhiro Ito
@ 2019-05-11 21:18 ` Ken Brown
0 siblings, 0 replies; 6+ messages in thread
From: Ken Brown @ 2019-05-11 21:18 UTC (permalink / raw)
To: Kazuhiro Ito; +Cc: 35629@debbugs.gnu.org
On 5/11/2019 4:32 AM, Kazuhiro Ito wrote:
>>> Cygwin's gpg2 has "-unknown" suffix in version string.
>>>
>>>> $ gpg2 --version
>>>>
>>>> gpg (GnuPG) 2.2.15-unknown
>>>> ...
>>
>> This is a bug in the Cygwin build of gnupg2. I've sent a fix to the Cygwin
>> mailing list:
>
>> http://www.cygwin.org/ml/cygwin/2019-05/msg00089.html
>
> Thank you for the investigation. Actually, the same problem occurs in
> MSYS2 and MSYS2/mingw packages. Furthermore, as far as I tested,
> autoreconf on release tarball adds extra "-unknown" in version string
> independently of platforms.
That's right. It just happens that the standard procedure for building packages
on Cygwin is to run autoreconf on the distributed source.
> I think that two issues are related with my bug report.
>
> #1. Cygwin, MSYS2's gnupg binary has extra "-unknown" in version string
> despite of that they should be released version.
>
> I think it is what you've reported to Cygwin ML.
>
>
> #2. Locally built gnupg binary may become "-unknown" suffix version.
>
> GnuPG's autogen.sh makes "-unknown" suffix version configure script if
> source code directory doesn't have .git directory. If "-unknown"
> suffix is a bug as a general thing, I think GnuPG's repository should
> be fixed. If not, I hope vertion-to-list function accepts "-unknown"
> suffix. How do you think?
I agree.
Ken
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string
2019-05-08 8:23 bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string Kazuhiro Ito
2019-05-10 18:26 ` Ken Brown
@ 2019-08-26 6:04 ` Lars Ingebrigtsen
2019-08-27 14:50 ` Kazuhiro Ito
1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-26 6:04 UTC (permalink / raw)
To: Kazuhiro Ito; +Cc: 35629
Kazuhiro Ito <kzhr@d1.dion.ne.jp> writes:
> Modifying version-regexp-alist variable resolves the issue.
>
> ;; I don't know meaning of "-unknown" version, so I don't know whether
> ;; "-4" is apropriate value.
> (progn (add-to-list 'version-regexp-alist
> '("^[-._+ ]?unknown$" . -4))
> (epg-find-configuration 'OpenPGP t))
> -> ((program . "/usr/bin/gpg2")
I've now done something similar, but only in `epg-find-configuration',
because this seems to be a problem in the gpg2 config scripts.
Could you test the trunk now and see whether it fixes your problem?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string
2019-08-26 6:04 ` Lars Ingebrigtsen
@ 2019-08-27 14:50 ` Kazuhiro Ito
0 siblings, 0 replies; 6+ messages in thread
From: Kazuhiro Ito @ 2019-08-27 14:50 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 35629-done
> > Modifying version-regexp-alist variable resolves the issue.
> >
> > ;; I don't know meaning of "-unknown" version, so I don't know whether
> > ;; "-4" is apropriate value.
> > (progn (add-to-list 'version-regexp-alist
> > '("^[-._+ ]?unknown$" . -4))
> > (epg-find-configuration 'OpenPGP t))
> > -> ((program . "/usr/bin/gpg2")
>
> I've now done something similar, but only in `epg-find-configuration',
> because this seems to be a problem in the gpg2 config scripts.
>
> Could you test the trunk now and see whether it fixes your problem?
The problem is fixed. Thank you.
--
Kazuhiro Ito
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-08-27 14:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-08 8:23 bug#35629: 27.0.50; version-to-list fails on Cygwin gpg2 version string Kazuhiro Ito
2019-05-10 18:26 ` Ken Brown
2019-05-11 8:32 ` Kazuhiro Ito
2019-05-11 21:18 ` Ken Brown
2019-08-26 6:04 ` Lars Ingebrigtsen
2019-08-27 14:50 ` Kazuhiro Ito
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.