[xerces-c] branch master updated (26db0a1 -> e345919)

2020-06-03 Thread rleigh
This is an automated email from the ASF dual-hosted git repository.

rleigh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git.


from 26db0a1  Merge pull request #14 from 
rleigh-codelibre/XERCESC-2141_build_support_for_c++11_onwards
 new e67e2a2  XERCESC-2201: Update Travis-CI configuration
 new 10e5024  XERCESC-2201: travis-ci updates homebrew packages
 new e345919  Merge pull request #15 from 
rleigh-codelibre/XERCESC-2201_travis_ci_upgrade

The 6408 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .travis.yml   | 14 +-
 scripts/ci-travis | 52 
 2 files changed, 13 insertions(+), 53 deletions(-)


-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[xerces-c] branch master updated (26db0a1 -> e345919)

2020-06-03 Thread rleigh
This is an automated email from the ASF dual-hosted git repository.

rleigh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git.


from 26db0a1  Merge pull request #14 from 
rleigh-codelibre/XERCESC-2141_build_support_for_c++11_onwards
 new e67e2a2  XERCESC-2201: Update Travis-CI configuration
 new 10e5024  XERCESC-2201: travis-ci updates homebrew packages
 new e345919  Merge pull request #15 from 
rleigh-codelibre/XERCESC-2201_travis_ci_upgrade

The 6408 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .travis.yml   | 14 +-
 scripts/ci-travis | 52 
 2 files changed, 13 insertions(+), 53 deletions(-)


-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] [Resolved] (XERCESC-2201) Update Travis-CI image in use

2020-06-03 Thread Roger Leigh (Jira)


 [ 
https://issues.apache.org/jira/browse/XERCESC-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Leigh resolved XERCESC-2201.
--
Resolution: Fixed

> Update Travis-CI image in use
> -
>
> Key: XERCESC-2201
> URL: https://issues.apache.org/jira/browse/XERCESC-2201
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Miscellaneous
>Affects Versions: 3.3.0
>Reporter: Roger Leigh
>Assignee: Roger Leigh
>Priority: Major
> Fix For: 3.3.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Update image to use current image e.g. Ubuntu 20.04 LTS, which should see us 
> supported for some time into the future.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[GitHub] [xerces-c] rleigh-codelibre commented on pull request #15: XERCESC-2201: Upgrade travis-ci

2020-06-03 Thread GitBox


rleigh-codelibre commented on pull request #15:
URL: https://github.com/apache/xerces-c/pull/15#issuecomment-638369418


   Travis build is passing with these changes.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[GitHub] [xerces-c] rleigh-codelibre merged pull request #15: XERCESC-2201: Upgrade travis-ci

2020-06-03 Thread GitBox


rleigh-codelibre merged pull request #15:
URL: https://github.com/apache/xerces-c/pull/15


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[GitHub] [xerces-c] rleigh-codelibre opened a new pull request #15: XERCESC-2201: Upgrade travis-ci

2020-06-03 Thread GitBox


rleigh-codelibre opened a new pull request #15:
URL: https://github.com/apache/xerces-c/pull/15


   * Use Ubuntu bionic image (was trusty)
   * Install all build dependencies with apt (Linux) or homebrew (MacOS X)



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] [Resolved] (XERCESC-2141) Enable C++11/14/17 with autoconf build and CMake build

2020-06-03 Thread Roger Leigh (Jira)


 [ 
https://issues.apache.org/jira/browse/XERCESC-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Leigh resolved XERCESC-2141.
--
Resolution: Fixed

> Enable C++11/14/17 with autoconf build and CMake build
> --
>
> Key: XERCESC-2141
> URL: https://issues.apache.org/jira/browse/XERCESC-2141
> Project: Xerces-C++
>  Issue Type: Improvement
>  Components: Build
>Reporter: Roger Leigh
>Assignee: Roger Leigh
>Priority: Major
>  Labels: autoconf, build, c++11, c++14, c++17
> Fix For: 3.3.0
>
> Attachments: 0001-autoconf-Enable-C-14-or-C-11-when-available.patch
>
>
> The CMake build will try to put the compiler in C++14 mode, falling back to 
> C++11 then C++98.  The autoconf build doesn't do this, and the attached patch 
> makes the behaviour match so both build systems will use the same fallbacks.
> Current compilers default to C++14.  Very old compilers have no support for 
> C++11 or C++14.  But compilers in between support it, but not by default.  
> This adds the feature tests to check for such support and enable it when 
> available.
> The CMake C++ standard support is user-configurable by setting the 
> CMAKE_CXX_STANDARD setting.  Autoconf doesn't provide any way to do this, so 
> the feature enabling isn't explicitly overridable.  I'm not sure if that's 
> too problematic.  The main compatibility concern might be if this causes an 
> ABI break with use of C++11/14 library features like the new string type.  
> However, we aren't making use of any of these features.  The main change 
> would be the XMLCh type switch from uint16_t to char16_t.  I'm not sure what 
> the Xerces policy for such changes has been in the past.  Any thoughts?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[xerces-c] branch master updated: XERCESC-2141: Enable C++17, C++14 or C++11 when available

2020-06-03 Thread rleigh
This is an automated email from the ASF dual-hosted git repository.

rleigh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git


The following commit(s) were added to refs/heads/master by this push:
 new 6883e34  XERCESC-2141: Enable C++17, C++14 or C++11 when available
 new 26db0a1  Merge pull request #14 from 
rleigh-codelibre/XERCESC-2141_build_support_for_c++11_onwards
6883e34 is described below

commit 6883e346fa88f48022edf84328a09a4653b8c2fe
Author: Roger Leigh 
AuthorDate: Sat Mar 10 21:27:27 2018 +

XERCESC-2141: Enable C++17, C++14 or C++11 when available
---
 CMakeLists.txt  |   4 +-
 configure.ac|   9 +
 m4/ax_cxx_compile_stdcxx.m4 | 982 
 3 files changed, 993 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4254f89..f5cdb55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,9 +32,9 @@ if (POLICY CMP0067)
   cmake_policy(SET CMP0067 NEW)
 endif(POLICY CMP0067)
 
-# Try C++14, then fall back to C++11 and C++98.  Used for feature tests
+# Try C++17, then fall back to C++14, C++11 then C++98.  Used for feature tests
 # for optional features.
-set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD 17)
 
 # Use folders (for IDE project grouping)
 set_property(GLOBAL PROPERTY USE_FOLDERS ON)
diff --git a/configure.ac b/configure.ac
index 1a38ec8..8768993 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,6 +79,15 @@ AM_SILENT_RULES([yes])
 AM_INIT_AUTOMAKE([foreign subdir-objects dist-bzip2 tar-ustar])
 AM_MAINTAINER_MODE
 
+# Checks for C++ standard version
+AX_CXX_COMPILE_STDCXX([17], [ext], [optional])
+if test "$HAVE_CXX17" = "0"; then
+  AX_CXX_COMPILE_STDCXX([14], [ext], [optional])
+  if test "$HAVE_CXX14" = "0"; then
+AX_CXX_COMPILE_STDCXX([11], [ext], [optional])
+  fi
+fi
+
 # Check if rpath is disabled
 AC_MSG_CHECKING(whether to use rpath)
 AC_ARG_ENABLE(rpath,
diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4
new file mode 100644
index 000..5032bba
--- /dev/null
+++ b/m4/ax_cxx_compile_stdcxx.m4
@@ -0,0 +1,982 @@
+# ===
+#  https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
+# ===
+#
+# SYNOPSIS
+#
+#   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
+#
+# DESCRIPTION
+#
+#   Check for baseline language coverage in the compiler for the specified
+#   version of the C++ standard.  If necessary, add switches to CXX and
+#   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
+#   or '14' (for the C++14 standard).
+#
+#   The second argument, if specified, indicates whether you insist on an
+#   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
+#   -std=c++11).  If neither is specified, you get whatever works, with
+#   preference for an extended mode.
+#
+#   The third argument, if specified 'mandatory' or if left unspecified,
+#   indicates that baseline support for the specified C++ standard is
+#   required and that the macro should error out if no mode with that
+#   support is found.  If specified 'optional', then configuration proceeds
+#   regardless, after defining HAVE_CXX${VERSION} if and only if a
+#   supporting mode is found.
+#
+# LICENSE
+#
+#   Copyright (c) 2008 Benjamin Kosnik 
+#   Copyright (c) 2012 Zack Weinberg 
+#   Copyright (c) 2013 Roy Stogner 
+#   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov 

+#   Copyright (c) 2015 Paul Norman 
+#   Copyright (c) 2015 Moritz Klammler 
+#   Copyright (c) 2016 Krzesimir Nowak 
+#
+#   Copying and distribution of this file, with or without modification, are
+#   permitted in any medium without royalty provided the copyright notice
+#   and this notice are preserved.  This file is offered as-is, without any
+#   warranty.
+
+#serial 7
+
+dnl  This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro
+dnl  (serial version number 13).
+
+AX_REQUIRE_DEFINED([AC_MSG_WARN])
+AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
+  m4_if([$1], [11], [ax_cxx_compile_alternatives="11 0x"],
+[$1], [14], [ax_cxx_compile_alternatives="14 1y"],
+[$1], [17], [ax_cxx_compile_alternatives="17 1z"],
+[m4_fatal([invalid first argument `$1' to AX_CXX_COMPILE_STDCXX])])dnl
+  m4_if([$2], [], [],
+[$2], [ext], [],
+[$2], [noext], [],
+[m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX])])dnl
+  m4_if([$3], [], [ax_cxx_compile_cxx$1_required=true],
+[$3], [mandatory], [ax_cxx_compile_cxx$1_required=true],
+[$3], [optional], [ax_cxx_compile_cxx$1_required=false],
+[m4_fatal([invalid third argument `$3' to AX_CXX_COMPILE_STDCXX])])
+  AC_LANG_PUSH([C++])dnl
+  ac_success=no
+  AC_CACHE_CHECK(whether $CXX supports C++$1 features by 

[GitHub] [xerces-c] rleigh-codelibre merged pull request #14: XERCESC-2141: Enable C++17, C++14 or C++11 when available

2020-06-03 Thread GitBox


rleigh-codelibre merged pull request #14:
URL: https://github.com/apache/xerces-c/pull/14


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[GitHub] [xerces-c] rleigh-codelibre opened a new pull request #14: XERCESC-2141: Enable C++17, C++14 or C++11 when available

2020-06-03 Thread GitBox


rleigh-codelibre opened a new pull request #14:
URL: https://github.com/apache/xerces-c/pull/14


   * Autoconf supports building with C++17, C++14 or C++11 (using 
ax_cxx_compile_stdcxx.m4)
   * CMake supports up to C++17 (previously C++14)



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[xerces-c] branch master updated (f342e68 -> b73d4a9)

2020-06-03 Thread rleigh
This is an automated email from the ASF dual-hosted git repository.

rleigh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git.


from f342e68  Merge pull request #13 from 
rleigh-codelibre/XERCESC-2202_update_version_to_3.3.0
 new ff73bac  XERCESC-2138: Make XSConstants a namespace
 new 7389761  XERCESC-2138: Drop XERCES_HAS_CPP_NAMESPACE check
 new 34e3bbe  XERCESC-2138: Drop XERCES_STD_NAMESPACE check
 new 58d86ec  XERCESC-2138: Drop XERCES_NO_NATIVE_BOOL check
 new b5da80c  XERCESC-2138: Drop XERCES_NEW_IOSTREAMS check
 new 41169c3  XERCESC-2138: Use  in place of 
 new 08db811  XERCESC-2138: Use  in place of 
 new edb558c  XERCESC-2138: Use  in place of 
 new aa56118  XERCESC-2138: Remove use of strings.h
 new d9cfba1  XERCESC-2138: Use std:: in place of XERCES_STD_QUALIFIER
 new 7beee16  XERCESC-2138: Drop const workarounds
 new 294088c  XERCESC-2138: Drop inline workarounds
 new 1a2c113  XERCESC-2138: Drop unused volatile workarounds
 new 6d41875  XERCESC-2138: Replace XERCES_CPP_NAMESPACE macros with real 
namespace use
 new 7f9e993  XERCESC-2138: Drop last remaining Autoconf 
AC_CXX_HAVE_NAMESPACES check
 new b73d4a9  Merge pull request #12 from 
rleigh-codelibre/XERCESC-2138_c++98_standard

The 6403 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CMakeLists.txt |   7 -
 cmake/XercesBool.cmake |  38 ---
 cmake/XercesConst.cmake|  29 --
 cmake/XercesIncludes.cmake |   3 -
 cmake/XercesInline.cmake   |  48 ---
 cmake/XercesNamespaces.cmake   |  37 ---
 cmake/XercesOperatorDelete.cmake   |   2 +-
 cmake/XercesStdLibs.cmake  |  45 ---
 cmake/XercesStdNamespace.cmake |  33 ---
 cmake/XercesTranscoderSelection.cmake  |   7 +-
 cmake/XercesVolatile.cmake |  29 --
 config.h.cmake.in  |  59 
 configure.ac   |  29 +-
 doc/program-others.xml |  21 +-
 m4/cxx_have_bool.m4|  30 --
 m4/cxx_have_namespaces.m4  |  25 --
 m4/cxx_have_std_libs.m4|  32 --
 m4/cxx_have_std_namespace.m4   |  26 --
 m4/cxx_have_std_thread.m4  |   3 +-
 m4/xerces_transcoder_selection.m4  |   2 +-
 .../src/CreateDOMDocument/CreateDOMDocument.cpp|  24 +-
 samples/src/DOMCount/DOMCount.cpp  |  72 +++--
 samples/src/DOMCount/DOMCount.hpp  |   8 +-
 samples/src/DOMPrint/DOMPrint.cpp  |  70 ++---
 samples/src/DOMPrint/DOMPrintErrorHandler.cpp  |  12 +-
 samples/src/DOMPrint/DOMPrintErrorHandler.hpp  |   2 +-
 samples/src/DOMPrint/DOMPrintFilter.hpp|   2 +-
 samples/src/DOMPrint/DOMTreeErrorReporter.cpp  |  16 +-
 samples/src/DOMPrint/DOMTreeErrorReporter.hpp  |   8 +-
 samples/src/EnumVal/EnumVal.cpp|  58 ++--
 samples/src/MemParse/MemParse.cpp  |  24 +-
 samples/src/MemParse/MemParse.hpp  |  10 +-
 samples/src/MemParse/MemParseHandlers.cpp  |  14 +-
 samples/src/MemParse/MemParseHandlers.hpp  |   6 +-
 samples/src/PParse/PParse.cpp  |  26 +-
 samples/src/PParse/PParse.hpp  |  10 +-
 samples/src/PParse/PParseHandlers.cpp  |  12 +-
 samples/src/PParse/PParseHandlers.hpp  |   2 +-
 samples/src/PSVIWriter/PSVIWriter.cpp  |  34 +--
 samples/src/PSVIWriter/PSVIWriter.hpp  |  10 +-
 samples/src/PSVIWriter/PSVIWriterHandlers.cpp  |   8 +-
 samples/src/PSVIWriter/PSVIWriterHandlers.hpp  |   6 +-
 samples/src/Redirect/Redirect.cpp  |  18 +-
 samples/src/Redirect/Redirect.hpp  |  10 +-
 samples/src/Redirect/RedirectHandlers.cpp  |  14 +-
 samples/src/Redirect/RedirectHandlers.hpp  |   6 +-
 samples/src/SAX2Count/SAX2Count.cpp|  36 +--
 samples/src/SAX2Count/SAX2Count.hpp|  10 +-
 samples/src/SAX2Count/SAX2CountHandlers.cpp|  12 +-
 samples/src/SAX2Count/SAX2CountHandlers.hpp|   2 +-
 samples/src/SAX2Print/SAX2FilterHandlers.hpp   |   2 +-
 samples/src/SAX2Print/SAX2Print.cpp|  22 +-
 samples/src/SAX2Print/SAX2Print.hpp|  10 +-
 samples/src/SAX2Print/SAX2PrintHandlers.cpp|  16 +-
 samples/src/SAX2Print/SAX2PrintHandlers.hpp|   2 +-
 samples/src/SAXCount/SAXCount.cpp

[GitHub] [xerces-c] rleigh-codelibre merged pull request #12: Use C++98 features and remove pre-Standard workarounds

2020-06-03 Thread GitBox


rleigh-codelibre merged pull request #12:
URL: https://github.com/apache/xerces-c/pull/12


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[GitHub] [xerces-c] rleigh-codelibre merged pull request #13: XERCESC-2202: Update version to 3.3.0

2020-06-03 Thread GitBox


rleigh-codelibre merged pull request #13:
URL: https://github.com/apache/xerces-c/pull/13


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[xerces-c] branch master updated (76d2c5b -> f342e68)

2020-06-03 Thread rleigh
This is an automated email from the ASF dual-hosted git repository.

rleigh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git.


from 76d2c5b  Ignore built site.
 new e4e3351  XERCEC-2202: Update version to 3.3.0
 new 11fae34  XERCEC-2202: Update spec file
 new 137fa58  XERCESC-2202: Update ICU message filename
 new f342e68  Merge pull request #13 from 
rleigh-codelibre/XERCESC-2202_update_version_to_3.3.0

The 6387 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 configure.ac | 4 ++--
 src/xercesc/util/MsgLoaders/ICU/ICUMsgLoader.cpp | 4 ++--
 xerces-c.spec| 5 -
 3 files changed, 8 insertions(+), 5 deletions(-)


-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org