2fca33462b
A malformed input file can lead to a segfault due to an out of bounds array access in raptor_xml_writer_start_element_common. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# raptor
|
|
#
|
|
################################################################################
|
|
|
|
RAPTOR_VERSION = 2.0.15
|
|
RAPTOR_SOURCE = raptor2-$(RAPTOR_VERSION).tar.gz
|
|
RAPTOR_SITE = http://download.librdf.org/source
|
|
RAPTOR_DEPENDENCIES = libxml2 libxslt
|
|
RAPTOR_LICENSE = GPL-2.0+ or LGPL-2.1+ or Apache-2.0+
|
|
RAPTOR_LICENSE_FILES = LICENSE.txt
|
|
RAPTOR_CPE_ID_VENDOR = librdf
|
|
RAPTOR_CPE_ID_PRODUCT = raptor_rdf_syntax_library
|
|
RAPTOR_INSTALL_STAGING = YES
|
|
|
|
# Flag is added to make sure the patch is applied for the configure.ac of raptor.
|
|
RAPTOR_AUTORECONF = YES
|
|
|
|
# 0002-Calcualte-max-nspace-declarations-correctly-for-XML-.patch
|
|
RAPTOR_IGNORE_CVES += CVE-2017-18926
|
|
|
|
# 0003-XML-Writer-compare-namespace-declarations-correctly.patch
|
|
RAPTOR_IGNORE_CVES += CVE-2020-25713
|
|
|
|
RAPTOR_CONF_OPTS =\
|
|
--with-xml2-config=$(STAGING_DIR)/usr/bin/xml2-config \
|
|
--with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
RAPTOR_DEPENDENCIES += libcurl
|
|
RAPTOR_CONF_OPTS += --with-curl-config=$(STAGING_DIR)/usr/bin/curl-config
|
|
else
|
|
RAPTOR_CONF_OPTS += --with-curl-config=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_YAJL),y)
|
|
RAPTOR_DEPENDENCIES += yajl
|
|
RAPTOR_CONF_ENV += LIBS="-lm"
|
|
RAPTOR_CONF_OPTS += --with-yajl=$(STAGING_DIR)/usr
|
|
else
|
|
RAPTOR_CONF_OPTS += --with-yajl=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
|
RAPTOR_DEPENDENCIES += icu
|
|
RAPTOR_CONF_OPTS += --with-icu-config=$(STAGING_DIR)/usr/bin/icu-config
|
|
else
|
|
RAPTOR_CONF_OPTS += --with-icu-config=no
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|