[OpenIndiana-discuss] GPG2 on OI
stes@PANDORA.BE
stes at telenet.be
Sat Oct 2 11:01:40 UTC 2021
----- Op 1 okt 2021 om 20:25 schreef Discussion list for OpenIndiana openindiana-discuss at openindiana.org:
> In regard to: Re: [OpenIndiana-discuss] GPG2 on OI, stes at PANDORA.BE said...:
>
>> Do we know whether the GNUPG developers are testing/developing with GNU
>> libncurses ?
>>
>> Or whether they have access to a more traditional UNIX system with older
>> original style, AT&T or BSD curses ?
>
> The code is written to support both, though being a GNU project their
> primary focus is ncurses.
According to https://en.wikipedia.org/wiki/Ncurses,
ncurses is (nowadays) part of the GNU project but,
under a permissive free software licence, similar to the MIT License.
As a test I rebuilt the pinentry package to use libncurses :
COMPONENT_NAME= pinentry
COMPONENT_VERSION= 1.1.0
+COMPONENT_REVISION= 1
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/pinentry/
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
@@ -65,7 +66,6 @@ CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
CONFIGURE_OPTIONS += --enable-pinentry-curses
CONFIGURE_OPTIONS += --enable-pinentry-gtk2
CONFIGURE_OPTIONS += --disable-pinentry-qt
-CONFIGURE_OPTIONS += --disable-ncurses
CONFIGURE_OPTIONS += --disable-pinentry-fltk
build: $(BUILD_64)
@@ -84,6 +84,7 @@ test: $(NO_TESTS)
REQUIRED_PACKAGES += library/desktop/gtk2
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += library/libsecret
+REQUIRED_PACKAGES += library/ncurses
This builds ok and it is possible to install that version:
# pkg list -af pinentry
security/pinentry 1.1.0-2020.0.1.0 ---
security/pinentry (userland) 1.1.0-2020.0.1.1 i--
It uses libncurses:
# ldd /usr/lib/pinentry-curses
...
libncurses.so.5 => /usr/lib/64/libncurses.so.5
It seems that when I use text login console with TERM=sun-color,
it now displays a frame. It looks decent.
I can enter a passphrase and it works.
However it is unclear to me whether this is the right approach
(to use libncurses). That approach is not necessarily the right one.
It changes the dependencies
$ pkg contents -t depend pinentry
TYPE FMRI
...
require pkg:/library/ncurses at 6.2.20200212-2020.0.1.1
...
require pkg:/system/library at 0.5.11-2020.0.1.20711
The version with libncurses still has issues.
With the TERM=xterm-256color the frame looks weird, even with libncurses.
So it is not solving all problems, although that it solves the sun-color TERM problem.
David Stes
More information about the openindiana-discuss
mailing list