[OpenIndiana-discuss] GPG2 on OI
Tim Mooney
Tim.Mooney at ndsu.edu
Thu Sep 30 20:29:12 UTC 2021
In regard to: Re: [OpenIndiana-discuss] GPG2 on OI, stes at PANDORA.BE said...:
> If I try it on X11/MATE desktop,
> then the default /usr/bin/pinentry works using the link to the /usr/lib/pinentry-gtk2,
> and it asks a passphrase and that works.
>
> If I alt+ctrl+F2 to start a console on vt2 (text console) using
>
> online 19:11:44 svc:/system/console-login:vt2
>
> and then try it in text mode using TERM=sun-color and modify the gpg-agent.conf to set:
>
> pinentry-program /usr/lib/pinentry-curses
>
> then it uses the curses pinentry but it does not seem to work on the
> text-console sun-color for me, screen goes blank, no decent curses
> interface ...
David, can I get you to test something?
Repeat the console test you tried, but instead of using TERM=sun-color,
try
TERM=vt100; export TERM
and then run the test.
I'm seeing much different behavior between TERM=xterm and TERM=vt100
for pinentry, I'm wondering if you get the same results.
Thanks,
Tim
> ----- Op 30 sep 2021 om 17:56 schreef Andreas Wacknitz A.Wacknitz at gmx.de:
>
>> Am 9/30/21 um 10:37 AM schrieb Tim Mooney via openindiana-discuss:
>>> In regard to: Re: [OpenIndiana-discuss] GPG2 on OI, stes at PANDORA.BE
>>> said...:
>>>
>>>> It is perhaps possible to try out older versions and find a solution,
>>>> I'd be interested if you find a solution and are willing to share it !
>>>
>>> I reported the issue to the GnuPG bug tracker and have been working with
>>> one of the developers (gniibe) to diagnose the problem. He or she
>>> tracked
>>> the hang down really quickly.
>>>
>>> It's an issue with clock_gettime(). Both Solaris < 11.4 and the Illumos
>>> kernel define CLOCK_THREAD_CPUTIME_ID for thread interval timing, but
>>> it's effectively broken. Calling clock_gettime with
>>> CLOCK_THREAD_CPUTIME_ID as the first argument will always result in
>>> an EINVAL error return. Because CLOCK_THREAD_CPUTIME_ID is actually
>>> defined in the headers, though, the threading code in gpg-agent is trying
>>> to use it.
>>>
>>> Note that Solaris 11.4 added working CLOCK_THREAD_CPUTIME_ID, so
>>> clock_gettime() with CLOCK_THREAD_CPUTIME_ID works for latest OG Solaris,
>>> but not older versions or any Illumos (currently). Another place where
>>> the distros have now diverged.
>>>
>>> There's a Python bug report about the issue that the GnuPG developer
>>> referenced:
>>>
>>> https://bugs.python.org/issue35455
>>>
>>> The developer is going to fix it in the gnupg mainline, so I expect gnupg
>>> 2.3.3 or 2.3.4 will have the hang fixed.
>>>
>>> I'll follow-up again as things progress with this issue and with the
>>> (apparently unrelated) issue with pinentry-curses drawing.
>>>
>>> Tim
>>
>> Hi,
>>
>> Nice work from you and the GnuPG developer. I propose to either open a
>> ticket for it on https://www.illumos.org/projects/illumos-gate
>> or post the results from your analysis on #illumos. Maybe some illumos
>> maintainers find it interesting enough to fix this problem in ilumos-gate.
>>
>> Andreas
>>
>>
>> _______________________________________________
>> openindiana-discuss mailing list
>> openindiana-discuss at openindiana.org
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
>
--
Tim Mooney Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure /
Division of Information Technology / 701-231-1076 (Voice)
North Dakota State University, Fargo, ND 58105-5164
More information about the openindiana-discuss
mailing list