From 98563f6f38a42935cbb8bac59e1c6f8ce36edd27d1da2aac05c39763125bd798 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Mon, 2 Dec 2024 18:23:53 +0000 Subject: [PATCH] - Update to version 1.12.0 (jsc#PED-8910) * Fix some memory leaks * Fix runtime warnings on osinfo-db-export * Adapt to libxml2 changes * Several CI improvements * Several translation improvements - Drop 001-Make-xmlError-structs-constant.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/osinfo-db-tools?expand=0&rev=31 --- .gitattributes | 23 ++++ .gitignore | 1 + 001-Make-xmlError-structs-constant.patch | 46 +++++++ osinfo-db-tools-1.11.0.tar.xz | 3 + osinfo-db-tools-1.12.0.tar.xz | 3 + osinfo-db-tools.changes | 147 +++++++++++++++++++++++ osinfo-db-tools.spec | 66 ++++++++++ 7 files changed, 289 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 001-Make-xmlError-structs-constant.patch create mode 100644 osinfo-db-tools-1.11.0.tar.xz create mode 100644 osinfo-db-tools-1.12.0.tar.xz create mode 100644 osinfo-db-tools.changes create mode 100644 osinfo-db-tools.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/001-Make-xmlError-structs-constant.patch b/001-Make-xmlError-structs-constant.patch new file mode 100644 index 0000000..652381c --- /dev/null +++ b/001-Make-xmlError-structs-constant.patch @@ -0,0 +1,46 @@ +Subject: Make xmlError structs constant +From: Michal Privoznik mprivozn@redhat.com Mon Nov 27 15:04:43 2023 +0100 +Date: Mon Nov 27 15:04:43 2023 +0100: +Git: 34378a4ac257f2f5fcf364786d1634a8c36b304f + +In libxml2 commits v2.12.0~14 and v2.12.0~77 the API changed so +that: + +1) xmlGetLastError() returns pointer to a constant xmlError + struct, and + +2) xmlSetStructuredErrorFunc() changed the signature of callback + (validate_structured_error_nop()), it too is passed pointer to + a constant xmlError struct. + +But of course, older libxml2 expects different callback +signature. Therefore, we need to typecast it anyway. + +Also, drop obviously incorrect @error annotation in +validate_structured_error_nop; the variable is used. + +Signed-off-by: Michal Privoznik + +diff --git a/tools/osinfo-db-validate.c b/tools/osinfo-db-validate.c +index a721b4d..b1434a6 100644 +--- a/tools/osinfo-db-validate.c ++++ b/tools/osinfo-db-validate.c +@@ -35,7 +35,7 @@ static void validate_generic_error_nop(void *userData G_GNUC_UNUSED, + } + + static void validate_structured_error_nop(void *userData G_GNUC_UNUSED, +- xmlErrorPtr error G_GNUC_UNUSED) ++ const xmlError *error) + { + if (error->file) + g_printerr("%s:%d %s", error->file, error->line, error->message); +@@ -173,7 +173,8 @@ static gboolean validate_files(GFile *schema, gsize nfiles, GFile **files, GErro + g_autofree gchar *schemapath = NULL; + + xmlSetGenericErrorFunc(NULL, validate_generic_error_nop); +- xmlSetStructuredErrorFunc(NULL, validate_structured_error_nop); ++ /* Drop this typecast when >=libxml2-2.12.0 is required */ ++ xmlSetStructuredErrorFunc(NULL, (xmlStructuredErrorFunc) validate_structured_error_nop); + + schemapath = g_file_get_path(schema); + rngParser = xmlRelaxNGNewParserCtxt(schemapath); diff --git a/osinfo-db-tools-1.11.0.tar.xz b/osinfo-db-tools-1.11.0.tar.xz new file mode 100644 index 0000000..deffb9b --- /dev/null +++ b/osinfo-db-tools-1.11.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ba6d31bb5ef07056e38879e070671afbcfec0eb41a87f9950450bbb831b0a1d +size 64792 diff --git a/osinfo-db-tools-1.12.0.tar.xz b/osinfo-db-tools-1.12.0.tar.xz new file mode 100644 index 0000000..5649786 --- /dev/null +++ b/osinfo-db-tools-1.12.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3315f675d18770f25dea8ed04b20b8fc80efb00f60c37ee5e815f9c3776e7f3 +size 66204 diff --git a/osinfo-db-tools.changes b/osinfo-db-tools.changes new file mode 100644 index 0000000..ee1dfc9 --- /dev/null +++ b/osinfo-db-tools.changes @@ -0,0 +1,147 @@ +------------------------------------------------------------------- +Mon Dec 2 11:12:22 MST 2024 - carnold@suse.com + +- Update to version 1.12.0 (jsc#PED-8910) + * Fix some memory leaks + * Fix runtime warnings on osinfo-db-export + * Adapt to libxml2 changes + * Several CI improvements + * Several translation improvements +- Drop 001-Make-xmlError-structs-constant.patch + +------------------------------------------------------------------- +Mon Jul 1 13:35:02 MDT 2024 - carnold@suse.com + +- bsc#1225908 - Package osinfo-db-tools does not build with gcc14 + because of new errors + 001-Make-xmlError-structs-constant.patch + +------------------------------------------------------------------- +Mon Nov 13 13:56:39 MST 2023 - carnold@suse.com + +- Update to version 1.11.0 (jsc#PED-6305) + * Added --nightly option to osinfo-db-import + * Several CI improvements + * Several translation improvements + +------------------------------------------------------------------- +Tue Oct 4 14:00:46 MDT 2022 - carnold@suse.com + +- jsc#PED-2113 [Virt Tools] Refresh Virtualization Tools for Xen + and KVM Management + +------------------------------------------------------------------- +Tue Mar 1 11:02:25 MST 2022 - carnold@suse.com + +- Update to version 1.10.0 + * Port to libsoup3 (optional) + * Several CI improvements + * Several translation improvements + +------------------------------------------------------------------- +Mon Sep 27 09:30:31 UTC 2021 - Dominique Leuenberger + +- BuildRequire pkgconfig(libsoup-2.4) instead of the package + name libsoup-devel: with libsoup 3.0 appearing, the old version + receives a compat-name (libsoup2). + +------------------------------------------------------------------- +Tue Mar 2 10:14:38 MST 2021 - carnold@suse.com + +- Update to version 1.9.0 + * Several CI improvements + * Several translation improvements + * Fix export/import tests + +------------------------------------------------------------------- +Mon Jun 1 12:42:25 MDT 2020 - carnold@suse.com + +- Update to version 1.8.0 + * Several CI improvements + * Several release scripts improvements + * Several translations improvements + * Several syntax-check improvements + +------------------------------------------------------------------- +Mon Dec 2 10:27:26 MST 2019 - carnold@suse.com + +- Update to version 1.7.0 + Changes in this release include: + * Switch to meson build system + +------------------------------------------------------------------- +Wed Nov 13 13:21:51 MST 2019 - carnold@suse.com + +- Update to version 1.6.0 + Changes in this release include: + * Refresh translations from zanata + * spec,mingw: Add mingw*-libsoup as dependency + * Commit 3917e5f4ae0e5 introduced libsoup dependency but forgot + to add it to the mingw spec files. + +------------------------------------------------------------------- +Thu May 9 09:50:10 MDT 2019 - carnold@suse.com + +- Update to version 1.5.0 + Changes in this release include: + * Add a test suite covering all the tools + * Improve usage of --root by not requiring its argument to end with '/' + * Fix memory leak on osinfo-db-validate + * Fix wording of osinfo-db-export --help + +------------------------------------------------------------------- +Fri Mar 1 13:07:43 MST 2019 - carnold@suse.com + +- Update to version 1.4.0 + Changes in this release include: + * Refreshed translations from Zanata + * Drop deprecated gnome-common and intltool + +------------------------------------------------------------------- +Mon Feb 4 11:35:20 MST 2019 - carnold@suse.com + +- Update to version 1.3.0 + Changes in this release include: + * Avoid warnings on osinfo-db-export due to calling g_object_unref() + on a NULL object + * Improvements on osinfo-db-import manpage + * Remove outdated FSF address from source file headers + * Make osinfo-db-import capable to deal with URLs + * Introduce osinfo-db-import --latest + * Refreshed translations from zanata + +------------------------------------------------------------------- +Wed Jun 20 11:23:45 MDT 2018 - carnold@suse.com + +- Update to version 1.2.0 + Changes in this release include + * Don’t expand XML entities + * Fix build with CLang + * Don’t hardcode perl interpretor path + +------------------------------------------------------------------- +Fri Jan 27 13:45:33 UTC 2017 - jengelh@inai.de + +- Use more appropriate RPM group +- Drop unnecessary %__ macro indirections + +------------------------------------------------------------------- +Thu Dec 1 16:21:17 MST 2016 - carnold@suse.com + +- Update to version 1.1.0 + Changes in this release include + * Add –license option to osinfo-db-export + * Fix license file to refer to GPL, not LGPL + * Fix typos in help output + * List libarchive as pre-req in README + +------------------------------------------------------------------- +Mon Oct 10 11:26:41 MDT 2016 - carnold@suse.com + +- Version 1.0.0 + libosinfo is a project providing information about operating systems, + hypervisors and the (virtual) hardware devices they can support. + + This package contains a set of tools to assist administrators and + developers in managing the database. + diff --git a/osinfo-db-tools.spec b/osinfo-db-tools.spec new file mode 100644 index 0000000..846de87 --- /dev/null +++ b/osinfo-db-tools.spec @@ -0,0 +1,66 @@ +# +# spec file for package osinfo-db-tools +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: osinfo-db-tools +Version: 1.12.0 +Release: 0 +Summary: Tools for managing the osinfo database +License: LGPL-2.1+ and GPL-2.0+ +Group: System/Management +Url: https://releases.pagure.org/libosinfo/ +Source: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz + +BuildRequires: gettext-devel +BuildRequires: glib2-devel +BuildRequires: json-glib-devel +BuildRequires: libarchive-devel +BuildRequires: pkgconfig(libsoup-2.4) +BuildRequires: libxml2-devel >= 2.6.0 +BuildRequires: libxslt-devel >= 1.0.0 +BuildRequires: meson +#BuildRequires: perl +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This package provides tools for managing the osinfo database of +information about operating systems for use with virtualization + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +%meson_install + +%find_lang %{name} + +%files -f %{name}.lang +%doc NEWS README +%{_bindir}/osinfo-db-export +%{_bindir}/osinfo-db-import +%{_bindir}/osinfo-db-path +%{_bindir}/osinfo-db-validate +%{_mandir}/man1/osinfo-db-export.1* +%{_mandir}/man1/osinfo-db-import.1* +%{_mandir}/man1/osinfo-db-path.1* +%{_mandir}/man1/osinfo-db-validate.1* + +%changelog