[packages/aravis] Rel 4; fix build
arekm
arekm at pld-linux.org
Sat Aug 2 00:47:45 CEST 2025
commit d4534f16fc5424069a294f72c5db1579821ef8c4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Aug 2 00:47:41 2025 +0200
Rel 4; fix build
aravis.spec | 4 +++-
build.patch | 43 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+), 1 deletion(-)
---
diff --git a/aravis.spec b/aravis.spec
index 689de26..0874606 100644
--- a/aravis.spec
+++ b/aravis.spec
@@ -7,11 +7,12 @@ Summary: Aravis digital video camera acquisition library
Summary(pl.UTF-8): Aravis - biblioteka do pobierania obrazu z kamer cyfrowych
Name: aravis
Version: 0.8.10
-Release: 3
+Release: 4
License: LGPL v2+
Group: Libraries
Source0: https://download.gnome.org/sources/aravis/0.8/%{name}-%{version}.tar.xz
# Source0-md5: c40ab0035b5b79ef3e98e04abed94b75
+Patch0: build.patch
URL: https://wiki.gnome.org/Projects/Aravis
BuildRequires: appstream-glib
BuildRequires: audit-libs-devel
@@ -125,6 +126,7 @@ Aravis.
%prep
%setup -q
+%patch -P0 -p1
%build
%meson \
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..a3fdc39
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,43 @@
+diff -urN aravis-0.8.10.org/src/arvxmlschema.c aravis-0.8.10/src/arvxmlschema.c
+--- aravis-0.8.10.org/src/arvxmlschema.c 2021-05-12 08:52:35.211482300 +0200
++++ aravis-0.8.10/src/arvxmlschema.c 2025-08-02 00:46:33.591183845 +0200
+@@ -30,6 +30,7 @@
+ #include <libxml/parser.h>
+ #include <libxml/valid.h>
+ #include <libxml/xmlschemas.h>
++#include <libxml/xmlerror.h>
+ #include <gio/gio.h>
+ #include <arvdebugprivate.h>
+ #include <arvmisc.h>
+@@ -69,9 +70,9 @@
+ } XmlSchemaError;
+
+ static void
+-_structured_error_handler (void *ctx, xmlErrorPtr error)
++ _structured_error_handler(void *user_data, const xmlError *error)
+ {
+- XmlSchemaError *schema_error = ctx;
++ XmlSchemaError *schema_error = (XmlSchemaError *)user_data;
+
+ if (schema_error->error == NULL ||
+ *(schema_error->error) != NULL)
+@@ -188,5 +189,7 @@
+
+ gobject_class->finalize = _finalize;
+
++#if LIBXML_VERSION < 21100
+ xmlLineNumbersDefault (1);
++#endif
+ }
+diff -urN aravis-0.8.10.org/viewer/data/meson.build aravis-0.8.10/viewer/data/meson.build
+--- aravis-0.8.10.org/viewer/data/meson.build 2021-05-12 08:52:35.244482300 +0200
++++ aravis-0.8.10/viewer/data/meson.build 2025-08-02 00:46:33.591183845 +0200
+@@ -8,7 +8,7 @@
+ configuration: appdata_conf,
+ install_dir: aravis_app_data_dir)
+
+-desktop = i18n.merge_file ('desktop',
++desktop = i18n.merge_file (
+ input: configure_file (input: files('arv-viewer.desktop.in.in'),
+ output: 'arv-viewer.desktop.in',
+ configuration: appdata_conf),
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/aravis.git/commitdiff/d4534f16fc5424069a294f72c5db1579821ef8c4
More information about the pld-cvs-commit
mailing list