[kde-freebsd] gpgme upgrade patch

Sticky Bit stickybit at gmx.net
Fri Feb 6 12:40:29 CET 2009


On Thursday 05 February 2009 21:27:11 Doug Barton wrote:
> The attached patch upgrades gpgme to version 1.1.8. Since the kde
> components are the primary consumers of gpgme, I thought I'd ask y'all
> first to give this a test run.

Thanks!

Unfortunately the port does not build with option 'pth' enabled. Without 'pth' 
it builds fine.

BTW is this option actually useful? I think we have an excellent threading 
library. What use case exist for 'GNU portable threads' in gpgme case? Would 
suggest to remove this option and use pthread by default instead.

Regards

--
Trimmed build log:

===>  Found saved configuration for gpgme-1.1.8
===>  Extracting for gpgme-1.1.8
=> MD5 Checksum OK for gpgme-1.1.8.tar.gz.
=> SHA256 Checksum OK for gpgme-1.1.8.tar.gz.
=> MD5 Checksum OK for gpgme-1.1.8.tar.gz.sig.
=> SHA256 Checksum OK for gpgme-1.1.8.tar.gz.sig.
===>  Patching for gpgme-1.1.8
===>  Applying FreeBSD patches for gpgme-1.1.8
  I can't seem to find a patch in there anywhere.
===>   Ignoring patchfile
/usr/ports/security/gpgme/files/patch-gpgme-Makefile.in.orig
===>   Ignoring patchfile
/usr/ports/security/gpgme/files/patch-tests-gpg-Makefile.in.orig
===>   gpgme-1.1.8 depends on executable: gpg2 - found
===>   gpgme-1.1.8 depends on executable: gmake - found
===>   gpgme-1.1.8 depends on file: /usr/local/bin/libtool - found
===>   gpgme-1.1.8 depends on shared library: gpg-error.0 - found
===>   gpgme-1.1.8 depends on shared library: pth - found
===>  Configuring for gpgme-1.1.8
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... amd64-portbld-freebsd7.1
checking host system type... amd64-portbld-freebsd7.1
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for style of include used by gmake... GNU
checking dependency style of cc... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking for windres... no
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... c++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc static flag  works... yes
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd7.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "RC" to libtool
appending configuration tag "CXX" to libtool
checking for ld used by c++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC
checking if c++ PIC flag -fPIC works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd7.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for GNU Pth... version 2.0.7, installed under /usr/local
checking for pthread_create in -pthread... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for inline... inline
checking for unsigned int... yes
checking size of unsigned int... 4
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for off_t... yes
checking for gethostbyname... yes
checking for setsockopt... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for vasprintf... yes
checking for ttyname_r... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking for getenv_r... no
configure: WARNING:
***
*** getenv() is not thread-safe and getenv_r() does not exist
***
checking for timegm... yes
checking for gpg-error-config... /usr/local/bin/gpg-error-config
checking for GPG Error - version >= 1.4... yes
checking for GPG >= 1.3.0... yes
checking for GPGSM >= 1.9.6... yes
checking for gpgconf... /usr/local/bin/gpgconf
checking for GPGCONF >= 2.0.4... yes
checking for funopen... yes
checking for isascii... yes
checking for putc_unlocked... yes
checking for memrchr... yes
checking for stpcpy... yes
checking for unistd.h... (cached) yes
checking for setenv... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for struct cmsghdr.cmsg_len... yes
checking for SO_PEERCRED... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating assuan/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/gpg/Makefile
config.status: creating tests/gpgsm/Makefile
config.status: creating doc/Makefile
config.status: creating complus/Makefile
config.status: creating src/versioninfo.rc
config.status: creating src/gpgme.h
config.status: creating src/gpgme-config
config.status: creating lang/Makefile
config.status: creating lang/cl/Makefile
config.status: creating lang/cl/gpgme.asd
config.status: creating config.h
config.status: executing depfiles commands

	GPGME v1.1.8 has been configured as follows:

	GnuPG path:      /usr/local/bin/gpg2
        GnuPG version:   2.0.10, min. 1.3.0

	GpgSM path:      /usr/local/bin/gpgsm
        GpgSM version:   2.0.10, min. 1.9.6

	GpgConf path:    /usr/local/bin/gpgconf
        GpgConf version: 2.0.10, min. 2.0.4

	GPGME Pthread:   yes
	GPGME Pth:       yes

===>  Building for gpgme-1.1.8
gmake  all-recursive

[...]

rm -fr .libs/libgpgme.lax/libassuan.a
mkdir .libs/libgpgme.lax/libassuan.a
(cd .libs/libgpgme.lax/libassuan.a && ar x
/usr/ports/security/gpgme/work/gpgme-1.1.8/src/../assuan/.libs/libassuan.a)
ar cru .libs/libgpgme.a  conversion.o get-env.o data.o data-fd.o data-stream.o
data-mem.o data-user.o data-compat.o signers.o sig-notation.o wait.o
wait-global.o wait-private.o wait-user.o op-support.o encrypt.o encrypt-sign.o
decrypt.o decrypt-verify.o verify.o sign.o passphrase.o progress.o key.o
keylist.o trust-item.o trustlist.o import.o export.o genkey.o delete.o edit.o
getauditlog.o engine.o rungpg.o engine-gpgsm.o engine-gpgconf.o gpgconf.o
posix-util.o posix-sema.o posix-io.o debug.o gpgme.o version.o error.o ath.o
.libs/libgpgme.lax/libassuan.a/assuan-util.o
.libs/libgpgme.lax/libassuan.a/assuan-errors.o
.libs/libgpgme.lax/libassuan.a/assuan-buffer.o
.libs/libgpgme.lax/libassuan.a/assuan-handler.o
.libs/libgpgme.lax/libassuan.a/assuan-inquire.o
.libs/libgpgme.lax/libassuan.a/assuan-listen.o
.libs/libgpgme.lax/libassuan.a/assuan-connect.o
.libs/libgpgme.lax/libassuan.a/assuan-client.o
.libs/libgpgme.lax/libassuan.a/assuan-pipe-server.o
.libs/libgpgme.lax/libassuan.a/assuan-socket-server.o
.libs/libgpgme.lax/libassuan.a/assuan-pipe-connect.o
.libs/libgpgme.lax/libassuan.a/assuan-socket-connect.o
.libs/libgpgme.lax/libassuan.a/assuan-uds.o
.libs/libgpgme.lax/libassuan.a/assuan-io.o
.libs/libgpgme.lax/libassuan.a/assuan-logging.o
.libs/libgpgme.lax/libassuan.a/assuan-socket.o
ranlib .libs/libgpgme.a
rm -fr .libs/libgpgme.lax
creating libgpgme.la
(cd .libs && rm -f libgpgme.la && ln -s ../libgpgme.la libgpgme.la)
/bin/sh /usr/local/bin/libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -
I.
-I..  -I../assuan -I/usr/local/include -I/usr/local/include/pth
-I/usr/local/include/pth   -O2 -fno-strict-aliasing -pipe -march=athlon64 -
Wall
-Wcast-align -Wshadow -Wstrict-prototypes -MT ath-pthread.lo -MD -MP -MF
.deps/ath-pthread.Tpo -c -o ath-pthread.lo ath-pthread.c
 cc -DHAVE_CONFIG_H -I. -I.. -I../assuan -I/usr/local/include
-I/usr/local/include/pth -I/usr/local/include/pth -O2 -fno-strict-aliasing -
pipe
-march=athlon64 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT
ath-pthread.lo -MD -MP -MF .deps/ath-pthread.Tpo -c ath-pthread.c  -fPIC -DPIC
-o .libs/ath-pthread.o
In file included from ath-pthread.c:36:
/usr/local/include/pth/pthread.h:285: error: conflicting types for 'pthread_t'
/usr/include/sys/_pthreadtypes.h:64: error: previous declaration of 
'pthread_t'
was here
/usr/local/include/pth/pthread.h:286: error: conflicting types for
'pthread_attr_t'
/usr/include/sys/_pthreadtypes.h:65: error: previous declaration of
'pthread_attr_t' was here
/usr/local/include/pth/pthread.h:288: error: conflicting types for
'pthread_once_t'
/usr/include/sys/_pthreadtypes.h:71: error: previous declaration of
'pthread_once_t' was here
/usr/local/include/pth/pthread.h:289: error: conflicting types for
'pthread_mutexattr_t'
/usr/include/sys/_pthreadtypes.h:67: error: previous declaration of
'pthread_mutexattr_t' was here
/usr/local/include/pth/pthread.h:290: error: conflicting types for
'pthread_mutex_t'
/usr/include/sys/_pthreadtypes.h:66: error: previous declaration of
'pthread_mutex_t' was here
/usr/local/include/pth/pthread.h:291: error: conflicting types for
'pthread_condattr_t'
/usr/include/sys/_pthreadtypes.h:69: error: previous declaration of
'pthread_condattr_t' was here
/usr/local/include/pth/pthread.h:292: error: conflicting types for
'pthread_cond_t'
/usr/include/sys/_pthreadtypes.h:68: error: previous declaration of
'pthread_cond_t' was here
/usr/local/include/pth/pthread.h:293: error: conflicting types for
'pthread_rwlockattr_t'
/usr/include/sys/_pthreadtypes.h:73: error: previous declaration of
'pthread_rwlockattr_t' was here
/usr/local/include/pth/pthread.h:294: error: conflicting types for
'pthread_rwlock_t'
/usr/include/sys/_pthreadtypes.h:72: error: previous declaration of
'pthread_rwlock_t' was here
ath-pthread.c: In function '_gpgme_ath_connect':
ath-pthread.c:161: warning: passing argument 2 of '__pthread_connect' discards
qualifiers from pointer target type
gmake[3]: *** [ath-pthread.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/security/gpgme/work/gpgme-1.1.8/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/security/gpgme/work/gpgme-1.1.8/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/security/gpgme/work/gpgme-1.1.8'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/security/gpgme.
*** Error code 1

Stop in /usr/ports/security/gpgme.



More information about the kde-freebsd mailing list