Files
Coin/0001-Actually-link-to-system-expat.patch
Stefan Brüns f5025406a9 Accepting request 855908 from home:StefanBruens:branches:science
- Explicitly request system libexpat. The bundled expat 2.0.1 has
  known vulnerabilities, and also causes crashes in e.g. FreeCADs
  SVG import due to using incompatible expat versions in use at
  the same time (https://tracker.freecadweb.org/view.php?id=3307).
  * 0001-Actually-link-to-system-expat.patch
- Cleanup spec file:
  * Update Homepage URL
  * Remove Source URL, bitbucket download is no longer functional
  * Use %license, %make_build, %make_install macros

OBS-URL: https://build.opensuse.org/request/show/855908
OBS-URL: https://build.opensuse.org/package/show/science/Coin?expand=0&rev=21
2020-12-18 23:45:22 +00:00

50 lines
2.2 KiB
Diff

From 7aa9771a15fe561155740fadccf161ed174d997e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Mon, 14 Dec 2020 23:42:09 +0100
Subject: [PATCH] Actually link to system expat
The config variable is HAVE_SYSTEM_EXPAT, USE_SYSTEM_EXPAT is the
Makefile variable.
---
src/Makefile.in | 4 +++-
src/xml/expat/all-expat-c.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/Makefile.in b/src/Makefile.in
index 1d53733..e39b214 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -662,6 +662,8 @@ ExtraIncludeDirs = -I$(top_srcdir)/include/Inventor/annex -I$(top_builddir)
@MAC_FRAMEWORK_FALSE@ 3ds collision hardcopy shadows geo threads shaders profiler \
@MAC_FRAMEWORK_FALSE@ vrml97 foreignfiles scxml doc .
+@USE_SYSTEM_EXPAT_TRUE@EXPATLIBADD = -lexpat
+@USE_SYSTEM_EXPAT_FALSE@EXPATLIBADD =
# **************************************************************************
@MAC_FRAMEWORK_TRUE@SUBDIRS =
@@ -686,7 +688,7 @@ DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_bui
@HACKING_DYNAMIC_MODULES_FALSE@@MAC_FRAMEWORK_FALSE@ 3ds/libformat3ds.la collision/libcollision.la hardcopy/libhardcopy.la \
@HACKING_DYNAMIC_MODULES_FALSE@@MAC_FRAMEWORK_FALSE@ threads/libthreads.la shaders/libshaders.la \
@HACKING_DYNAMIC_MODULES_FALSE@@MAC_FRAMEWORK_FALSE@ shadows/libshadows.la geo/libgeo.la foreignfiles/libforeignfiles.la \
-@HACKING_DYNAMIC_MODULES_FALSE@@MAC_FRAMEWORK_FALSE@ xml/libxml.la xml/expat/libexpat.la profiler/libprofiler.la \
+@HACKING_DYNAMIC_MODULES_FALSE@@MAC_FRAMEWORK_FALSE@ xml/libxml.la xml/expat/libexpat.la $(EXPATLIBADD) profiler/libprofiler.la \
@HACKING_DYNAMIC_MODULES_FALSE@@MAC_FRAMEWORK_FALSE@ vrml97/libvrml97.la scxml/libscxml.la $(SUPERGLULIBADD)
@HACKING_DYNAMIC_MODULES_TRUE@@MAC_FRAMEWORK_FALSE@libCoin@SUFFIX@_la_LIBADD =
diff --git a/src/xml/expat/all-expat-c.c b/src/xml/expat/all-expat-c.c
index 34a1b01..6eb72e2 100755
--- a/src/xml/expat/all-expat-c.c
+++ b/src/xml/expat/all-expat-c.c
@@ -1,6 +1,6 @@
#include "config.h"
-#ifndef USE_SYSTEM_EXPAT
+#ifndef HAVE_SYSTEM_EXPAT
#include "xmltok.c"
#include "xmlparse.c"
#include "xmlrole.c"
--
2.29.2