On Fri, 01 Jul 2016, Boyd Waters wrote:
> Hello, world. I am new to OpenBSD and my CVS skills are a dim memory from
> 10 years ago.
>
> Here is a patch for gnupg2 to update to version 2.1.13
>
> My Yubikey (and I suppose, other SmartCard readers) need at least version
> 2.1.11 to push 4096-bit RSA keys to the card.
>
> Tested on amd64.
>
> I will test on MacPPC (PowerPC G3, the 750 CPU) and on MacPPC G4 next week.
>
> Comments welcome. Thanks.
How have you built gnupg-2.1.13 without first updating libassuan?
---8<---
===> Configuring for gnupg-2.1.13
Using /usr/pobj/gnupg-2.1.13/config.site (generated)
...
checking for cc for build... cc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: checking for libraries
checking for gpg-error-config... /usr/local/bin/gpg-error-config
checking for GPG Error - version >= 1.21... yes (1.23)
checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.6.0... yes (1.7.1)
checking LIBGCRYPT API version... okay
checking for libassuan-config... /usr/local/bin/libassuan-config
checking for LIBASSUAN - version >= 2.4.1... no
checking for ksba-config... /usr/local/bin/ksba-config
checking for KSBA - version >= 1.2.0... yes (1.3.3)
checking KSBA API version... okay
checking for libusb_init in -lusb-1.0... yes
checking libusb include dir... /usr/local/include/libusb-1.0
checking for library containing dlopen... none required
checking for SQLITE3... yes
checking for encfs... /usr/bin/encfs
checking for fusermount... /usr/bin/fusermount
checking for openpty in -lutil... (cached) yes
checking for shred... /usr/local/bin/shred
checking for npth-config... /usr/local/bin/npth-config
checking for NPTH - version >= 0.91... yes (1.2)
checking NPTH API version... okay
checking for ntbtls-config... no
checking for NTBTLS - version >= 0.1.0... no
checking for LIBGNUTLS... yes
configure: checking for networking options
checking for gethostbyname... (cached) yes
checking for setsockopt... (cached) yes
checking for library containing res_query... none required
checking for library containing dn_expand... none required
checking for library containing dn_skipname... no
checking for library containing __dn_skipname... none required
checking whether the resolver is usable... yes
configure: WARNING:
***
*** Building without LDAP support.
*** No CRL access or X.509 certificate search available.
***
checking for sendmail... /usr/sbin/sendmail
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.so.6.0
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft,
char * *outbuf, size_t *outbytesleft);
configure: checking for gettext
checking whether NLS is requested... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for working iconv... (cached) yes
checking how to link with libiconv... /usr/local/lib/libiconv.so.6.0
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... /usr/local/lib/libintl.so.6.0
/usr/local/lib/libiconv.so.6.0 -lc -Wl,-rpath,/usr/local/lib
checking for strchr... (cached) yes
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
configure: checking for header files
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for termio.h... (cached) no
checking for locale.h... (cached) yes
checking for getopt.h... (cached) yes
checking for pty.h... (cached) no
checking for utmp.h... (cached) yes
checking for pwd.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for signal.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for signal.h... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
configure: checking for system characteristics
checking for an ANSI C-conforming const... (cached) yes
checking for inline... inline
checking for working volatile... (cached) yes
checking for size_t... (cached) yes
checking for mode_t... (cached) yes
checking return type of signal handlers... (cached) void
checking whether sys_siglist is declared... yes
checking for sys/socket.h... (cached) yes
checking for socklen_t... yes
checking for library containing inet_addr... none required
checking endianess... little
checking for byte typedef... no
checking for ushort typedef... yes
checking for ulong typedef... yes
checking for u16 typedef... no
checking for u32 typedef... no
checking size of unsigned short... (cached) 2
checking size of unsigned int... 4
checking size of unsigned long... 8
checking size of unsigned long long... (cached) 8
checking whether time.h and sys/time.h may both be included... (cached) yes
checking size of time_t... 8
checking whether time_t is unsigned... no
configure: checking for library functions
checking whether getpagesize is declared... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for vprintf... (cached) yes
checking for _doprnt... no
checking for pid_t... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for strerror... (cached) yes
checking for strlwr... no
checking for tcgetattr... (cached) yes
checking for mmap... (cached) yes
checking for canonicalize_file_name... no
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking for ctermid... (cached) yes
checking for times... (cached) yes
checking for gmtime_r... (cached) yes
checking for strtoull... (cached) yes
checking for setenv... (cached) yes
checking for unsetenv... (cached) yes
checking for fcntl... (cached) yes
checking for ftruncate... (cached) yes
checking for inet_ntop... (cached) yes
checking for canonicalize_file_name... (cached) no
checking for gettimeofday... (cached) yes
checking for getrusage... (cached) yes
checking for getrlimit... (cached) yes
checking for setrlimit... (cached) yes
checking for clock_gettime... (cached) yes
checking for atexit... (cached) yes
checking for raise... (cached) yes
checking for getpagesize... (cached) yes
checking for strftime... (cached) yes
checking for nl_langinfo... yes
checking for setlocale... (cached) yes
checking for waitpid... (cached) yes
checking for wait4... (cached) yes
checking for sigaction... (cached) yes
checking for sigprocmask... (cached) yes
checking for pipe... (cached) yes
checking for getaddrinfo... (cached) yes
checking for ttyname... (cached) yes
checking for rand... (cached) yes
checking for ftello... (cached) yes
checking for fsync... (cached) yes
checking for stat... (cached) yes
checking for lstat... (cached) yes
checking for memicmp... no
checking for stpcpy... (cached) yes
checking for strsep... (cached) yes
checking for strlwr... (cached) no
checking for strtoul... (cached) yes
checking for memmove... (cached) yes
checking for stricmp... no
checking for strtol... (cached) yes
checking for memrchr... yes
checking for isascii... (cached) yes
checking for timegm... (cached) yes
checking for getrusage... (cached) yes
checking for setrlimit... (cached) yes
checking for stat... (cached) yes
checking for setlocale... (cached) yes
checking for flockfile... (cached) yes
checking for funlockfile... (cached) yes
checking for getpwnam... (cached) yes
checking for getpwuid... (cached) yes
checking for getenv... (cached) yes
checking for inet_pton... (cached) yes
checking for strpbrk... (cached) yes
checking for struct sigaction... yes
checking for sigset_t... yes
checking for sys/stat.h... (cached) yes
checking for unistd.h... (cached) yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking if mkdir takes one argument... no
checking whether regular expression support is requested... yes
checking for library containing regcomp... none required
checking for regcomp... (cached) yes
checking whether your system's regexp library is broken... no
checking for zlib.h... (cached) yes
checking for deflateInit2_ in -lz... yes
checking for bzlib.h... yes
checking for BZ2_bzCompressInit in -lbz2... yes
checking whether readline via "-lreadline" is present and sane... no
checking whether readline via "-lreadline -ltermcap" is present and sane... yes
configure: checking for cc features
checking if gcc ignores unknown -Wno-* options... no
checking if gcc supports -Wno-pointer-sign... yes
checking if gcc supports -Wpointer-arith... yes
configure:
***
*** You need libassuan to build this program.
*** This library is for example available at
*** ftp://ftp.gnupg.org/gcrypt/libassuan/
*** (at least version 2.4.1 (API 2) is required).
***
configure: error:
***
*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.
***
*** Error 1 in . (/home/cvs/ports/infrastructure/mk/bsd.port.mk:2651
'/usr/pobj/gnupg-2.1.13/.configure_done')
*** Error 1 in /usr/ports/security/gnupg2
(/home/cvs/ports/infrastructure/mk/bsd.port.mk:2396 'fake')