Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package redland for openSUSE:Factory checked in at 2023-11-02 20:20:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/redland (Old) and /work/SRC/openSUSE:Factory/.redland.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "redland" Thu Nov 2 20:20:45 2023 rev:34 rq:1121464 version:1.0.17 Changes: -------- --- /work/SRC/openSUSE:Factory/redland/redland.changes 2019-03-12 09:50:07.743577359 +0100 +++ /work/SRC/openSUSE:Factory/.redland.new.17445/redland.changes 2023-11-02 20:20:50.082433306 +0100 @@ -1,0 +2,6 @@ +Fri Aug 18 11:54:56 UTC 2023 - David Anes <david.a...@suse.com> + +- Fix tests against latest raptor by cleaning up parser in each iteration. + * Added patch redland-fix-tests.patch + +------------------------------------------------------------------- New: ---- redland-fix-tests.patch BETA DEBUG BEGIN: New:- Fix tests against latest raptor by cleaning up parser in each iteration. * Added patch redland-fix-tests.patch BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ redland.spec ++++++ --- /var/tmp/diff_new_pack.mMkTLd/_old 2023-11-02 20:20:50.686455531 +0100 +++ /var/tmp/diff_new_pack.mMkTLd/_new 2023-11-02 20:20:50.686455531 +0100 @@ -1,7 +1,7 @@ # # spec file for package redland # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,9 +23,9 @@ Version: 1.0.17 Release: 0 Summary: Libraries that provide support for the Resource Description Framework (RDF) -License: LGPL-2.1-or-later AND Apache-2.0 +License: Apache-2.0 AND LGPL-2.1-or-later Group: System/Libraries -Url: http://www.librdf.org +URL: http://www.librdf.org Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz Source1: baselibs.conf @@ -35,13 +35,13 @@ %endif Patch2: redland-db6.diff Patch3: redland-postgresql.patch +Patch4: redland-fix-tests.patch BuildRequires: autoconf BuildRequires: db-devel BuildRequires: librasqal-devel BuildRequires: pkg-config BuildRequires: postgresql-devel BuildRequires: sqlite-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Redland is a library that provides a high-level interface for RDF @@ -98,6 +98,7 @@ # libdb-X.Y.so that does not match up with the headers, for linking. # %patch -P 2 -p1 +%patch4 -p1 %build autoconf @@ -157,6 +158,6 @@ %{_libdir}/redland/librdf_storage_sqlite.so %{_mandir}/man1/redland-db-upgrade.1* %{_mandir}/man1/rdfproc.1* -%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README -%doc LICENSE-2.0.txt NOTICE +%license COPYING COPYING.LIB LICENSE.txt LICENSE-2.0.txt +%doc AUTHORS ChangeLog NEWS README NOTICE ++++++ redland-fix-tests.patch ++++++ Index: redland-1.0.17/src/rdf_parser.c =================================================================== --- redland-1.0.17.orig/src/rdf_parser.c +++ redland-1.0.17/src/rdf_parser.c @@ -1010,7 +1010,7 @@ int main(int argc, char *argv[]); " <dc:creator>Dave Beckett</dc:creator>\n" \ " <dc:description>The generic home page of Dave Beckett.</dc:description>\n" \ " </rdf:Description>\n" \ -"</rdf:RDF>" +"</rdf:RDF>\n" #define NTRIPLES_CONTENT \ "<http://purl.org/net/dajobe/> <http://purl.org/dc/elements/1.1/creator> \"Dave Beckett\" .\n" \ @@ -1138,11 +1138,11 @@ main(int argc, char *argv[]) } + fprintf(stderr, "%s: Adding %s string content as stream\n", program, type); stream = librdf_parser_parse_string_as_stream(parser, file_content[testi], uris[testi]); if(!stream) { - fprintf(stderr, "%s: Adding %s string content as stream\n", program, type); fprintf(stderr, "%s: Failed to parse RDF from string %d as stream\n", program, testi); failures++; @@ -1161,6 +1161,10 @@ main(int argc, char *argv[]) goto tidy_test; } + if (parser) { + librdf_free_parser(parser); + } + parser = librdf_new_parser(world, type, NULL, NULL); fprintf(stderr, "%s: Adding %s as iostream, as stream\n", program, type); iostream = raptor_new_iostream_from_string(world->raptor_world_ptr, @@ -1190,6 +1194,10 @@ main(int argc, char *argv[]) goto tidy_test; } + if (parser) { + librdf_free_parser(parser); + } + parser = librdf_new_parser(world, type, NULL, NULL); fprintf(stderr, "%s: Adding %s counted string content\n", program, type); if(librdf_parser_parse_counted_string_into_model(parser, @@ -1212,6 +1220,11 @@ main(int argc, char *argv[]) goto tidy_test; } + if (parser) { + librdf_free_parser(parser); + } + parser = librdf_new_parser(world, type, NULL, NULL); + fprintf(stderr, "%s: Adding %s string content\n", program, type); if(librdf_parser_parse_string_into_model(parser, @@ -1245,6 +1258,11 @@ main(int argc, char *argv[]) } /* test parsing iostream */ + if (parser) { + librdf_free_parser(parser); + } + parser = librdf_new_parser(world, type, NULL, NULL); + fprintf(stderr, "%s: Adding %s iostream content\n", program, type); iostream = raptor_new_iostream_from_string(world->raptor_world_ptr, (void *)file_content[testi],