diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/xerces-c/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/xerces-c/files')
-rw-r--r-- | dev-libs/xerces-c/files/50xerces-c | 1 | ||||
-rw-r--r-- | dev-libs/xerces-c/files/xerces-c-3.1.4-fix-build-system.patch | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-libs/xerces-c/files/50xerces-c b/dev-libs/xerces-c/files/50xerces-c new file mode 100644 index 000000000000..6fdb7ffbdee9 --- /dev/null +++ b/dev-libs/xerces-c/files/50xerces-c @@ -0,0 +1 @@ +XERCESC_NLS_HOME="/usr/share/xerces-c/msg" diff --git a/dev-libs/xerces-c/files/xerces-c-3.1.4-fix-build-system.patch b/dev-libs/xerces-c/files/xerces-c-3.1.4-fix-build-system.patch new file mode 100644 index 000000000000..6b991d24b56f --- /dev/null +++ b/dev-libs/xerces-c/files/xerces-c-3.1.4-fix-build-system.patch @@ -0,0 +1,61 @@ +* Fix build system when USE="-threads" +* Add DESTDIR in order to prevent sandbox failure + +--- a/configure.ac ++++ b/configure.ac +@@ -124,6 +124,7 @@ + AC_CXX_HAVE_LSTRING + + ACX_PTHREAD ++AM_CONDITIONAL([THREADS], [test "x${acx_pthread_ok}" = "xyes"]) + + # Checks for library functions. + #AC_FUNC_ERROR_AT_LINE +--- a/src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in ++++ b/src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in +@@ -5,7 +5,7 @@ + prefix = @prefix@ + INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ +-mkdir_p = @mkdir_p@ ++mkdir_p = @MKDIR_P@ + + include $(top_srcdir)/version.incl + +@@ -48,11 +48,11 @@ + # for installing the library + # for installing the library + install: $(RESTARGET) +- $(mkdir_p) $(prefix)/msg +- $(INSTALL_PROGRAM) $(RESTARGET) $(prefix)/msg ++ $(mkdir_p) $(DESTDIR)/$(prefix)/share/xerces-c/msg ++ $(INSTALL_PROGRAM) $(RESTARGET) $(DESTDIR)/$(prefix)/share/xerces-c/msg + + uninstall: +- -rm -f $(prefix)/msg/$(RESFILES) ++ -rm -f $(DESTDIR)/$(prefix)/share/xerces-c/msg/$(RESFILES) + + + # Needed to support "make dist" +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -21,7 +21,7 @@ + + check_PROGRAMS = ${testprogs} + +-LDADD = ${top_builddir}/src/libxerces-c.la ++LDADD = $(top_builddir)/src/libxerces-c.la $(PTHREAD_LIBS) + # the -I${top_builddir}/src is needed to pick the xercesc/util/Xerces_autoconf_config.hpp + # header file when doing out-of-tree builds + AM_CPPFLAGS = -I${top_builddir}/src -I${top_srcdir}/src +@@ -86,8 +86,10 @@ + # src/ParserTest/ParserTest_Parser.cpp \ + # src/ParserTest/ParserTest_Parser.hpp + ++if THREADS + testprogs += ThreadTest + ThreadTest_SOURCES = src/ThreadTest/ThreadTest.cpp ++endif + + # Fails to compile under gcc 4 (ambiguous calls to NullPointerException) + # dcargill says this is obsolete and we can delete it. |