diff --git a/.travis.yml b/.travis.yml index 100abe9e0..b210c83a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,30 +1,49 @@ language: c -sudo: required -dist: trusty -install: -- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi -- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi -# install build tools -- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install automake autoconf libtool; fi -- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libtool pkg-config; fi -# install libxml2/libxslt libraries -- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libxml2 libxml2-dev libxslt1.1 libxslt1-dev; fi -# install openssl libraries -- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libssl1.0.0 libssl-dev; fi -- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install openssl; fi -# install nspr/nss libraries -- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libnspr4 libnspr4-dev libnss3 libnss3-dev libnss3-tools; fi -- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install nss; fi -# install gcrypt libraries -- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libgcrypt11 libgcrypt11-dev; fi -# install gnutls libraries -- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libgnutls28 libgnutls-dev; fi +os: linux +dist: bionic + +addons: + apt: + packages: + - automake + - autoconf + - libtool + - libtool-bin + - libltdl-dev + - libltdl7 + - libxml2 + - libxml2-dev + - libxslt1.1 + - libxslt1-dev + - libssl1.0.0 + - libssl-dev + - libnspr4 + - libnspr4-dev + - libnss3 + - libnss3-dev + - libnss3-tools + - libgcrypt20 + - libgcrypt20-dev + - libgnutls28-dev + homebrew: + packages: + - libtool + - openssl + - nss + - libgcrypt + - gnutls + script: - . scripts/travis-env.sh && mkdir build && cd build && ../autogen.sh --enable-werror && make && make check -matrix: + +jobs: include: - - name: "linux" + - name: "linux-x86_64" os: linux + arch: amd64 - name: "osx" os: osx osx_image: xcode9.3 + - name: "linux-s390x" + os: linux + arch: s390x diff --git a/INSTALL b/INSTALL index baa984f47..a585a07a0 100644 --- a/INSTALL +++ b/INSTALL @@ -1,6 +1,7 @@ Compilation 1. How to compile XMLSec? + As most UNIX libraries XMLSec follows the "standard": gunzip -c xmlsec-xxx.tar.gz | tar xvf - @@ -19,6 +20,14 @@ that the library is compiled successfully by running make check +Alternatively there are several community maintained ports to CMake +build system: + +* https://github.com/vmiklos/odfsig/tree/master/extern/xmlsec + +* https://github.com/microsoft/vcpkg/tree/master/ports/xmlsec + + 2.What other libraries are needed to compile/install XMLSec? XMLSec requires following libraries: diff --git a/appveyor.yml b/appveyor.yml index 4d956a1ae..00d15e2cf 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,7 +12,7 @@ # You can check the whole build process in the logs, and any later commit will start # a new build using a fresh virtual machine. -version: '1.2.29-{build}' +version: '1.2.30-{build}' shallow_clone: true skip_branch_with_pr: true diff --git a/autogen.sh b/autogen.sh index fe00bb356..5d2d4a891 100755 --- a/autogen.sh +++ b/autogen.sh @@ -36,6 +36,11 @@ fi echo "You must have autoconf installed to compile xmlsec." DIE=1 } +(autoreconf --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have autoreconf installed to compile xmlsec." + DIE=1 +} (automake --version) < /dev/null > /dev/null 2>&1 || { echo echo "You must have automake installed to compile xmlsec." @@ -76,6 +81,8 @@ echo "Running automake..." automake --gnu --add-missing echo "Running autoconf..." autoconf +echo "Running autoreconf..." +autoreconf -i cd $THEDIR diff --git a/configure.ac b/configure.ac index e2f6393d3..6dd4a8f8b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,10 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([xmlsec1],[1.2.29],[http://www.aleksey.com/xmlsec]) +AC_INIT([xmlsec1],[1.2.30],[http://www.aleksey.com/xmlsec]) XMLSEC_PACKAGE=xmlsec1 XMLSEC_VERSION_MAJOR=1 XMLSEC_VERSION_MINOR=2 -XMLSEC_VERSION_SUBMINOR=29 +XMLSEC_VERSION_SUBMINOR=30 XMLSEC_VERSION="$XMLSEC_VERSION_MAJOR.$XMLSEC_VERSION_MINOR.$XMLSEC_VERSION_SUBMINOR" XMLSEC_VERSION_INFO=`echo $XMLSEC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'` XMLSEC_VERSION_SAFE=`echo $XMLSEC_VERSION | sed 's/\./_/g'` @@ -315,7 +315,7 @@ if test "z$LIBXML_FOUND" = "zno" -a "z$with_libxml" != "z" -a "z$with_libxml" != AC_MSG_RESULT([yes]) elif test [ -f "$with_libxml/include/libxml2/$LIBXML_INCLUDE_MARKER" ] -a [ -f "$with_libxml/lib/$LIBXML_SHARED_LIB_MARKER" -o -f "$with_libxml/lib/$LIBXML_STATIC_LIB_MARKER" ] ; then LIBXML_INCLUDE_PATH="$with_libxml/include/libxml2" - LIBXSLT_LIB_PATH="$with_libxml/lib" + LIBXML_LIB_PATH="$with_libxml/lib" LIBXML_FOUND="yes" AC_MSG_RESULT([yes]) else diff --git a/docs/Makefile.am b/docs/Makefile.am index a89ba76c3..4b196026e 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -27,9 +27,9 @@ docs-copy: if [ z"$(srcdir)" != z"$(builddir)" -a z"`uname`" != z"Darwin" ]; \ then \ $(CP) -ru $(srcdir)/*.html $(srcdir)/*.ico $(srcdir)/images $(builddir)/ ; \ - chmod u+w $(builddir)/*.html ; \ - chmod u+w $(builddir)/*.ico ; \ - chmod -R u+w $(builddir)/images ; \ + (chmod u+w $(builddir)/*.html || true) ; \ + (chmod u+w $(builddir)/*.ico || true) ; \ + (chmod -R u+w $(builddir)/images || true) ; \ fi \ ) @@ -94,8 +94,8 @@ endif clean-local: -rm -f *.stamp ( if [ z"$(srcdir)" != z"$(builddir)" ] ; then \ - chmod -R u+w $(builddir)/images && rm -rf $(builddir)/images ; \ - chmod -R u+w $(builddir)/src && rm -rf $(builddir)/src ; \ + (chmod -R u+w $(builddir)/images || true) && rm -rf $(builddir)/images ; \ + (chmod -R u+w $(builddir)/src || true) && rm -rf $(builddir)/src ; \ (for i in `find $(builddir) -name "*.html" -print` ; do \ echo "Removing files '$$i' ... " ; \ chmod -R u+w $$i && rm -f $$i ; \ diff --git a/docs/api/Makefile.am b/docs/api/Makefile.am index a1ffd3a73..dcf093d12 100644 --- a/docs/api/Makefile.am +++ b/docs/api/Makefile.am @@ -268,9 +268,9 @@ clean-local: -rm -rf $(SOURCE_CODE_DIR) $(EXAMPLES_DIR) $(SCAN_DIR)/*.txt $(SGML_DIR) $(GTKDOC_MKDB_OUTPUT_DIR) -rm -f *.stamp *.types index.sgml @( if [ z"$(builddir)" != z"$(srcdir)" ] ; then \ - chmod -R u+w $(builddir)/src && rm -rf $(builddir)/src ; \ - chmod -R u+w $(builddir)/images && rm -rf $(builddir)/images ; \ - chmod -R u+w $(builddir)/*.png && rm -rf $(builddir)/*.png ; \ + (chmod -R u+w $(builddir)/src || true) && rm -rf $(builddir)/src ; \ + (chmod -R u+w $(builddir)/images || true) && rm -rf $(builddir)/images ; \ + (chmod -R u+w $(builddir)/*.png || true) && rm -rf $(builddir)/*.png ; \ fi ; ) distclean-local: clean-local diff --git a/docs/api/xmlsec-index.html b/docs/api/xmlsec-index.html index 6eb125bcd..400621309 100644 --- a/docs/api/xmlsec-index.html +++ b/docs/api/xmlsec-index.html @@ -1352,6 +1352,7 @@
void
+xmlSecParsePrepareCtxt (xmlParserCtxtPtr ctxt
);
+Prepares parser context for parsing XML for XMLSec.
+ +xmlSecTransformId
xmlSecTransformXmlParserGetKlass (void
);
diff --git a/docs/api/xmlsec-version.html b/docs/api/xmlsec-version.html
index d669ce78a..915f5f44e 100644
--- a/docs/api/xmlsec-version.html
+++ b/docs/api/xmlsec-version.html
@@ -78,7 +78,7 @@ #define XMLSEC_VERSION "1.2.29" +#define XMLSEC_VERSION "1.2.30"The library version string in the format "$major_number.$minor_number.$sub_minor_number".
@@ -100,14 +100,14 @@version
XMLSEC_VERSION_SUBMINOR
-#define XMLSEC_VERSION_SUBMINOR 29 +#define XMLSEC_VERSION_SUBMINOR 30The library sub-minor version number.
XMLSEC_VERSION_INFO
-#define XMLSEC_VERSION_INFO "3:29:2" +#define XMLSEC_VERSION_INFO "3:30:2"The library version info string in the format "$major_number+$minor_number:$sub_minor_number:$minor_number".
diff --git a/docs/api/xmlsec.devhelp2 b/docs/api/xmlsec.devhelp2 index cfffbeb66..7c3a47c0e 100644 --- a/docs/api/xmlsec.devhelp2 +++ b/docs/api/xmlsec.devhelp2 @@ -681,6 +681,7 @@+ diff --git a/docs/download.html b/docs/download.html index 9d4effe10..4c3e2263d 100644 --- a/docs/download.html +++ b/docs/download.html @@ -420,10 +420,10 @@ Download
Stable releases.
-The latest stable XML Security Library version is 1.2.29:
+The latest stable XML Security Library version is 1.2.30:
- -Sources for latest version.
+Sources for latest version.- Windows binaries for XMLSec Library (as well as LibXML2, LibXSLT and OpenSSL) from Igor Zlatkovic.
@@ -461,6 +461,11 @@Installation (source archive)
GIT
XML Security Library is available from the GitHub.
+Other languages
+