]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix 'make glimport' and update CONTRIBUTING.md
authorTim Rühsen <tim.ruehsen@gmx.de>
Mon, 28 Jan 2019 14:25:30 +0000 (15:25 +0100)
committerTim Rühsen <tim.ruehsen@gmx.de>
Mon, 28 Jan 2019 19:32:34 +0000 (20:32 +0100)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
CONTRIBUTING.md
cfg.mk

index 482dded5d7aa6088df1a8577cdeb552b42df221a..201efd133bba371bc5afd9ed1a24858c96dfa694 100644 (file)
@@ -278,18 +278,16 @@ are always active.
 
 # Gnulib
 
-The files at `gl/`, `src/gl/` and `lib/unistring` directories are part of
-gnulib project and are included mainly for systems which may miss functionality
-available in glibc and unistring libraries. These files are updated when new
-functionality is needed or bug fixes affecting gnutls are required.
+The directories `gl/`, `src/gl/` and `lib/unistring` contain gnulib files
+copied/created by `./bootstrap`. Gnulib is a portability source code library
+to handle API or behavior incompatibilities between target systems.
 
-They can be updated by the following make rule.
+To take advantage of the latest gnulib files, we have to update the
+`gnulib/` submodule from time to time:
 ```
 $ make glimport
 ```
 
-That rule assumes that an updated gnulib is present at `../gnulib/`.
-
 Note that the gnulib library in `gl/` is used by the GnuTLS library
 and is kept separate from the gnulib used by the GnuTLS tools because
 of license issues, and also to prevent any gnulib networking modules
diff --git a/cfg.mk b/cfg.mk
index 7402dc6e6330b9d9d5ba3daea771066b7668028a..8f1470c99251d3dfb5b015433d1ca5f482e86b35 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -23,7 +23,7 @@ ADDFLAGS ?=
 CFGFLAGS ?= --enable-gtk-doc --enable-gtk-doc-pdf --enable-gtk-doc-html $(ADDFLAGS) $(WFLAGS)
 PACKAGE ?= gnutls
 
-.PHONY: config
+.PHONY: config glimport
 
 INDENT_SOURCES = `find . -name \*.[ch] -o -name gnutls.h.in | grep -v -e ^./build-aux/ -e ^./lib/minitasn1/ -e ^./lib/build-aux/ -e ^./gl/ -e ^./src/libopts/ -e -args.[ch] -e asn1_tab.c -e ^./tests/suite/`
 
@@ -72,19 +72,10 @@ config:
 
 bootstrap: autoreconf .submodule.stamp
 
-UNISTRING_MODULES = "unistr/u8-check unistr/u8-to-u16 unistr/u8-to-u32 unistr/u32-to-u8 \
-       unistr/u16-to-u8 uninorm/nfc uninorm/nfkc uninorm/u8-normalize uninorm/u16-normalize \
-       uninorm/u32-normalize unictype/category-all unictype/property-not-a-character \
-       unictype/property-default-ignorable-code-point unictype/property-join-control"
-
-unistringimport:
-       ../gnulib/gnulib-tool --without-tests --libtool --macro-prefix=unistring --lgpl=3orGPLv2 --dir=. --local-dir=lib/unistring/override --lib=libunistring --without-tests --source-base=lib/unistring --m4-base=lib/unistring/m4 --doc-base=doc --aux-dir=build-aux --import $(UNISTRING_MODULES)
-
-# The only non-lgpl modules used are: gettime progname timespec. Those
-# are not used (and must not be used) in the library)
-glimport: unistringimport
-       ../gnulib/gnulib-tool --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gl/tests --aux-dir=build-aux --lgpl=2 --add-import
-       ../gnulib/gnulib-tool --dir=. --local-dir=src/gl/override --lib=libgnu_gpl --source-base=src/gl --m4-base=src/gl/m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --add-import
+glimport:
+       pushd gnulib && git checkout master && git pull && popd
+       echo "If everything looks well, commit the gnulib update with:"
+       echo "  git commit -m "Update gnulib submodule" gnulib"
 
 # Code Coverage