Remove use of gnulib (part 1)
authorWerner Koch <wk@gnupg.org>
Tue, 11 Nov 2014 09:13:10 +0000 (10:13 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 11 Nov 2014 09:13:10 +0000 (10:13 +0100)
commit1adf719b2d8e2d5b912bf6655731e7e586402654
tree840deda4c4ae69807f6b711d42b34d0a5993d9ee
parent7362c8c6e60939588e817384ae2e29195cb3f518
Remove use of gnulib (part 1)

* gl/: Remove entire tree.
* configure.ac: Remove gnulib tests and the gl/ Makefile.
(setenv): Add to AC_CHECK_FUNCS.
* autogen.rc (extra_aclocal_flags): Set to empty.
* Makefile.am (ACLOCAL_AMFLAGS): Remove -I gl/m4
(SUBDIRS): Remove gl/.
* agent/Makefile.am (common_libs): Remove ../gl/gnulib.a
* common/Makefile.am (t_common_ldadd): Ditto.
* dirmngr/Makefile.am (dirmngr_LDADD): Ditto.
(dirmngr_ldap_LDADD, dirmngr_client_LDADD): Ditto.
* g10/Makefile.am (needed_libs): Ditto.
* g13/Makefile.am (g13_LDADD): Ditto.
* kbx/Makefile.am (kbxutil_LDADD): Ditto.
($(PROGRAMS)): Ditto.
* scd/Makefile.am (scdaemon_LDADD): Ditto.
* sm/Makefile.am (common_libs): Ditto.
* tools/Makefile.am (common_libs, commonpth_libs): Ditto.

* agent/gpg-agent.c: Remove "mkdtemp.h"
* g10/exec.c: Ditto.
* scd/scdaemon.c: Ditto.
* tools/symcryptrun.c: Ditto.
* common/sysutils.c: Remove "setenv.h"

* common/t-timestuff.c: Use putenv if setenv is not available.
--

gnulib has always been a cause of trouble in GnuPG because we used
only a very few functions and the complex include machinery of gnulib
is quite complex and the cause for many build problems for example on
OS X.  This is not gnulib's fault but due to our limited use of gnulib
and that we only rarely update the gnulib code to avoid regressions.

In part two we will address the functions

 mkdtemp
 setenv
 unsetenv
 strpbrk

which may bot be implemented on all platforms.  They are not required
on a libc based system.

Signed-off-by: Werner Koch <wk@gnupg.org>
48 files changed:
Makefile.am
agent/Makefile.am
agent/gpg-agent.c
autogen.rc
common/Makefile.am
common/sysutils.c
common/t-timestuff.c
configure.ac
dirmngr/Makefile.am
g10/Makefile.am
g10/exec.c
g13/Makefile.am
gl/Makefile.am [deleted file]
gl/alloca_.h [deleted file]
gl/allocsa.c [deleted file]
gl/allocsa.h [deleted file]
gl/allocsa.valgrind [deleted file]
gl/m4/absolute-header.m4 [deleted file]
gl/m4/alloca.m4 [deleted file]
gl/m4/allocsa.m4 [deleted file]
gl/m4/eealloc.m4 [deleted file]
gl/m4/gnulib-cache.m4 [deleted file]
gl/m4/gnulib-comp.m4 [deleted file]
gl/m4/gnulib-tool.m4 [deleted file]
gl/m4/longdouble.m4 [deleted file]
gl/m4/mkdtemp.m4 [deleted file]
gl/m4/setenv.m4 [deleted file]
gl/m4/size_max.m4 [deleted file]
gl/m4/stdint.m4 [deleted file]
gl/m4/strpbrk.m4 [deleted file]
gl/m4/unistd_h.m4 [deleted file]
gl/m4/xsize.m4 [deleted file]
gl/mkdtemp.c [deleted file]
gl/mkdtemp.h [deleted file]
gl/setenv.c [deleted file]
gl/setenv.h [deleted file]
gl/size_max.h [deleted file]
gl/stdint_.h [deleted file]
gl/strpbrk.c [deleted file]
gl/strpbrk.h [deleted file]
gl/unsetenv.c [deleted file]
gl/xsize.h [deleted file]
kbx/Makefile.am
scd/Makefile.am
scd/scdaemon.c
sm/Makefile.am
tools/Makefile.am
tools/symcryptrun.c