- 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
This commit is contained in:
Charles Arnold 2024-12-02 18:23:53 +00:00 committed by Git OBS Bridge
commit 98563f6f38
7 changed files with 289 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -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 <mprivozn@redhat.com>
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);

BIN
osinfo-db-tools-1.11.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
osinfo-db-tools-1.12.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

147
osinfo-db-tools.changes Normal file
View File

@ -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 <dimstar@opensuse.org>
- 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
* Dont expand XML entities
* Fix build with CLang
* Dont 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.

66
osinfo-db-tools.spec Normal file
View File

@ -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