From 0f9396e23af9d0589f599874399a9997e3e860c3 Mon Sep 17 00:00:00 2001 From: dvzrv Date: Thu, 2 Mar 2023 18:53:44 +0000 Subject: [PATCH] upgpkg: raptor 2.0.16-1: Upgrade to 2.0.16. Remove patches for fixed issues. Update patch for disabling broken test suites: https://github.com/dajobe/raptor/issues/49 git-svn-id: file:///srv/repos/svn-packages/svn@470140 eb2447ed-0c53-47e4-bac8-5bc4a241df78 --- raptor/trunk/PKGBUILD | 44 ++++++++----------- .../trunk/raptor-2.0.15-CVE-2017-18926.patch | 40 ----------------- ...or-2.0.15-disable_broken_test_suites.patch | 24 ---------- .../trunk/raptor-2.0.15-out_of_bounds.patch | 14 ------ ...or-2.0.16-disable_broken_test_suites.patch | 24 ++++++++++ 5 files changed, 43 insertions(+), 103 deletions(-) delete mode 100644 raptor/trunk/raptor-2.0.15-CVE-2017-18926.patch delete mode 100644 raptor/trunk/raptor-2.0.15-disable_broken_test_suites.patch delete mode 100644 raptor/trunk/raptor-2.0.15-out_of_bounds.patch create mode 100644 raptor/trunk/raptor-2.0.16-disable_broken_test_suites.patch diff --git a/raptor/trunk/PKGBUILD b/raptor/trunk/PKGBUILD index 3bb24912aeb7..b1360bed143d 100644 --- a/raptor/trunk/PKGBUILD +++ b/raptor/trunk/PKGBUILD @@ -6,8 +6,8 @@ _name=raptor2 pkgname=raptor -pkgver=2.0.15 -pkgrel=21 +pkgver=2.0.16 +pkgrel=1 pkgdesc="A C library that parses RDF/XML/N-Triples into RDF triples" arch=(x86_64) url="https://librdf.org/raptor" @@ -17,42 +17,33 @@ makedepends=(curl gtk-doc icu) provides=(libraptor2.so) source=( https://librdf.org/dist/source/$_name-$pkgver.tar.gz{,.asc} - $pkgname-2.0.15-CVE-2017-18926.patch - $pkgname-2.0.15-out_of_bounds.patch - $pkgname-2.0.15-disable_broken_test_suites.patch + $pkgname-2.0.16-disable_broken_test_suites.patch ) -sha512sums=('563dd01869eb4df8524ec12e2c0a541653874dcd834bd1eb265bc2943bb616968f624121d4688579cdce11b4f00a8ab53b7099f1a0850e256bb0a2c16ba048ee' +sha512sums=('9bd5cff36390e1e0ef15ac56e5413ecfceb4018cb531a4da8850d3623615f12a93690a78be61f9d9ae7a24e16f6446e356bc2b7f34051ddc077761d85a9b7c44' 'SKIP' - '82f2f7ea4b72aa2bf444013a81db3cb17fcce2ae650bdb22eaab00d6d5cf7f950f7a550ffff49348db878f90f2753b407e6026d08d543cd0757c1687c6dad159' - '140f90d74fad8cdc6ef7fa14fa655e425552947d57068021362f8ae9efdded8ed31295e9bdd495fe70e646967062e28fa3ecd5831f9902134da5fe0a82607735' - 'bfa5e2c10e33bab9ba85541ca78e903dbcbe07e2fbb654687e0b65fe46531bf385d7b3de36619b9919b7b4db3b803624d294cb8bfd63a89b96fc85cd2fda278e') -b2sums=('0a39c7b5705bfbf2daa0ca633f79693953b4dfe24c144008d1646a9840a36d4d7ce153b527450647127ec2522047dbd0a6e71f307ee5656951f7e4b610adfd22' + '74d7172e67b20be433d41229d24cbceab9a1871215d741d8dbd3e6d1b73ad12910e560bd18acb52153962ed16f5b9a7c8647f6b29a0e6657de9f0b788783d567') +b2sums=('1e5e5742ba4cdaacb98a9ba77a9352589df0da60869e7721ee140c81ed4886bf909b37b247bd925c82a4ac44b3c11a909c913f0851d49a1d9d91c9293189266d' 'SKIP' - '5e86b3bb1e80662363cbefa889b36810a4472c23ddb0a96960c13586124ac13031c6759e4abb3381e17a8f3b7cc941eaa3f97f3bc7c562f165db37efc47a39f8' - 'ab11eeb648bf2cf8ac4ef4bbff4cdb77d1b713ad086268b656c7249363bf5752b535763f9a9fd34be4d72b3ff420cd87ee6970d3da6e24e5e2b067b9dbb9c29e' - '5f623afff5566d47d132c24e32b6b683b7eff15a9a819387b1764b1c222ae47f6e1948892b2a93af77375a3616f9276b00e6686108720da1005b47232b3f6b5f') + '615decc1eefd3a17576c6fdc06e64e8083479c6c1409b685419a3e314bb4d9eaa54ba5717506d4c38410b7d77d936a899ec8d9b027babf7718a12048f48fc49e') validpgpkeys=('F879F0DEDA780198DD08DC6443EC92504F71955A') # Dave Beckett prepare() { - # fix CVE-2017-18926: - # https://bugs.archlinux.org/task/68613 - # https://github.com/dajobe/raptor/commit/590681e546cd9aa18d57dc2ea1858cb734a3863f - patch -d $_name-$pkgver -Np1 -i ../$pkgname-2.0.15-CVE-2017-18926.patch - # fix out-of-bounds read: - # https://bugs.librdf.org/mantis/view.php?id=650 - patch -d $_name-$pkgver -Np1 -i ../$pkgname-2.0.15-out_of_bounds.patch # remove broken test suites: https://github.com/dajobe/raptor/issues/49 - patch -d $_name-$pkgver -Np1 -i ../$pkgname-2.0.15-disable_broken_test_suites.patch + patch -d $_name-$pkgver -Np1 -i ../$pkgname-2.0.16-disable_broken_test_suites.patch cd $_name-$pkgver autoreconf -fiv } build() { + local configure_options=( + --prefix=/usr + --disable-static + --with-icu-config=/usr/bin/icu-config + ) + cd $_name-$pkgver - ./configure --prefix=/usr \ - --disable-static \ - --with-icu-config=/usr/bin/icu-config + ./configure "${configure_options[@]}" # prevent excessive overlinking due to libtool sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make @@ -63,7 +54,10 @@ check() { } package() { - depends+=(libcurl.so libicuuc.so) + depends+=( + curl libcurl.so + icu libicuuc.so + ) make DESTDIR="$pkgdir" install -C $_name-$pkgver install -vDm 644 $_name-$pkgver/{AUTHORS,ChangeLog*,README} -t "$pkgdir/usr/share/doc/$pkgname/" diff --git a/raptor/trunk/raptor-2.0.15-CVE-2017-18926.patch b/raptor/trunk/raptor-2.0.15-CVE-2017-18926.patch deleted file mode 100644 index be61b0d6581e..000000000000 --- a/raptor/trunk/raptor-2.0.15-CVE-2017-18926.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 590681e546cd9aa18d57dc2ea1858cb734a3863f Mon Sep 17 00:00:00 2001 -From: Dave Beckett -Date: Sun, 16 Apr 2017 23:15:12 +0100 -Subject: [PATCH] Calcualte max nspace declarations correctly for XML writer - -(raptor_xml_writer_start_element_common): Calculate max including for -each attribute a potential name and value. - -Fixes Issues #0000617 http://bugs.librdf.org/mantis/view.php?id=617 -and #0000618 http://bugs.librdf.org/mantis/view.php?id=618 ---- - src/raptor_xml_writer.c | 7 ++++--- - 1 file changed, 4 insertions(+), 3 deletions(-) - -diff --git a/src/raptor_xml_writer.c b/src/raptor_xml_writer.c -index 693b94686..0d3a36a5a 100644 ---- a/src/raptor_xml_writer.c -+++ b/src/raptor_xml_writer.c -@@ -181,9 +181,10 @@ raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer, - size_t nspace_declarations_count = 0; - unsigned int i; - -- /* max is 1 per element and 1 for each attribute + size of declared */ - if(nstack) { -- int nspace_max_count = element->attribute_count+1; -+ int nspace_max_count = element->attribute_count * 2; /* attr and value */ -+ if(element->name->nspace) -+ nspace_max_count++; - if(element->declared_nspaces) - nspace_max_count += raptor_sequence_size(element->declared_nspaces); - if(element->xml_language) -@@ -237,7 +238,7 @@ raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer, - } - } - -- /* Add the attribute + value */ -+ /* Add the attribute's value */ - nspace_declarations[nspace_declarations_count].declaration= - raptor_qname_format_as_xml(element->attributes[i], - &nspace_declarations[nspace_declarations_count].length); diff --git a/raptor/trunk/raptor-2.0.15-disable_broken_test_suites.patch b/raptor/trunk/raptor-2.0.15-disable_broken_test_suites.patch deleted file mode 100644 index 5ae1da1b47e6..000000000000 --- a/raptor/trunk/raptor-2.0.15-disable_broken_test_suites.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -ruN a/tests/Makefile.am b/tests/Makefile.am ---- a/tests/Makefile.am 2013-12-08 02:57:05.000000000 +0100 -+++ b/tests/Makefile.am 2022-02-19 16:47:41.562672003 +0100 -@@ -37,7 +37,7 @@ - # Used to make N-triples output consistent - BASE_URI=http://librdf.org/raptor/tests/ - --SUBDIRS = rdfxml ntriples ntriples-2013 nquads-2013 turtle turtle-2013 trig grddl rdfa rdfa11 json feeds -+SUBDIRS = ntriples ntriples-2013 nquads-2013 turtle turtle-2013 trig grddl rdfa rdfa11 json - - - $(top_builddir)/src/libraptor2.la: -diff -ruN a/tests/Makefile.in b/tests/Makefile.in ---- a/tests/Makefile.in 2014-11-02 07:04:38.000000000 +0100 -+++ b/tests/Makefile.in 2022-02-19 16:47:41.569338695 +0100 -@@ -338,7 +338,7 @@ - - # Used to make N-triples output consistent - BASE_URI = http://librdf.org/raptor/tests/ --SUBDIRS = rdfxml ntriples ntriples-2013 nquads-2013 turtle turtle-2013 trig grddl rdfa rdfa11 json feeds -+SUBDIRS = ntriples ntriples-2013 nquads-2013 turtle turtle-2013 trig grddl rdfa rdfa11 json - all: all-recursive - - .SUFFIXES: diff --git a/raptor/trunk/raptor-2.0.15-out_of_bounds.patch b/raptor/trunk/raptor-2.0.15-out_of_bounds.patch deleted file mode 100644 index 04106dc9a70e..000000000000 --- a/raptor/trunk/raptor-2.0.15-out_of_bounds.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/src/raptor_xml_writer.c b/src/raptor_xml_writer.c -index 56993dc3..163f34d5 100644 ---- a/src/raptor_xml_writer.c -+++ b/src/raptor_xml_writer.c -@@ -216,6 +216,9 @@ raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer, - - if(nstack && element->attributes) { - for(i = 0; i < element->attribute_count; i++) { -+ if (nspace_declarations_count > element->attribute_count) -+ goto error; -+ - /* qname */ - if(element->attributes[i]->nspace) { - /* Check if we need a namespace declaration attribute */ diff --git a/raptor/trunk/raptor-2.0.16-disable_broken_test_suites.patch b/raptor/trunk/raptor-2.0.16-disable_broken_test_suites.patch new file mode 100644 index 000000000000..61a816e03224 --- /dev/null +++ b/raptor/trunk/raptor-2.0.16-disable_broken_test_suites.patch @@ -0,0 +1,24 @@ +diff -ruN a/tests/Makefile.am b/tests/Makefile.am +--- a/tests/Makefile.am 2014-11-14 19:11:13.000000000 +0100 ++++ b/tests/Makefile.am 2023-03-02 19:49:59.269974344 +0100 +@@ -37,7 +37,7 @@ + # Used to make N-triples output consistent + BASE_URI=http://librdf.org/raptor/tests/ + +-SUBDIRS = rdfxml ntriples ntriples-2013 nquads-2013 turtle mkr turtle-2013 trig grddl rdfa rdfa11 json feeds ++SUBDIRS = ntriples ntriples-2013 nquads-2013 mkr turtle-2013 trig grddl rdfa rdfa11 json + + + $(top_builddir)/src/libraptor2.la: +diff -ruN a/tests/Makefile.in b/tests/Makefile.in +--- a/tests/Makefile.in 2023-03-01 18:58:10.000000000 +0100 ++++ b/tests/Makefile.in 2023-03-02 19:50:09.006659970 +0100 +@@ -618,7 +618,7 @@ + + # Used to make N-triples output consistent + BASE_URI = http://librdf.org/raptor/tests/ +-SUBDIRS = rdfxml ntriples ntriples-2013 nquads-2013 turtle mkr turtle-2013 trig grddl rdfa rdfa11 json feeds ++SUBDIRS = ntriples ntriples-2013 nquads-2013 mkr turtle-2013 trig grddl rdfa rdfa11 json + all: all-recursive + + .SUFFIXES: