fix incompatible function pointer types passing in vala
This commit is contained in:
parent
4915131033
commit
a065592123
51
0001-fix-incompatible-function-pointer-types-passing.patch
Normal file
51
0001-fix-incompatible-function-pointer-types-passing.patch
Normal file
@ -0,0 +1,51 @@
|
||||
From 78531ef707422abc444bfac339a6c9f380d1da32 Mon Sep 17 00:00:00 2001
|
||||
From: yuncang123 <1050706328@qq.com>
|
||||
Date: Fri, 6 Sep 2024 10:29:53 +0800
|
||||
Subject: [PATCH] fix2
|
||||
|
||||
---
|
||||
libsecret/test-vala-lang.vala | 14 +++++++-------
|
||||
libsecret/test-vala-unstable.vala | 2 +-
|
||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/libsecret/test-vala-lang.vala b/libsecret/test-vala-lang.vala
|
||||
index ead5817..41db91e 100644
|
||||
--- a/libsecret/test-vala-lang.vala
|
||||
+++ b/libsecret/test-vala-lang.vala
|
||||
@@ -166,13 +166,13 @@ private static int main (string[] args) {
|
||||
"string", Secret.SchemaAttributeType.STRING);
|
||||
}
|
||||
|
||||
- GLib.Test.add_data_func ("/vala/lookup/sync", test_lookup_sync);
|
||||
- GLib.Test.add_data_func ("/vala/lookup/async", test_lookup_async);
|
||||
- GLib.Test.add_data_func ("/vala/lookup/no-name", test_lookup_no_name);
|
||||
- GLib.Test.add_data_func ("/vala/store/sync", test_store_sync);
|
||||
- GLib.Test.add_data_func ("/vala/store/async", test_store_async);
|
||||
- GLib.Test.add_data_func ("/vala/clear/sync", test_clear_sync);
|
||||
- GLib.Test.add_data_func ("/vala/clear/async", test_clear_async);
|
||||
+ GLib.Test.add_func ("/vala/lookup/sync", test_lookup_sync);
|
||||
+ GLib.Test.add_func ("/vala/lookup/async", test_lookup_async);
|
||||
+ GLib.Test.add_func ("/vala/lookup/no-name", test_lookup_no_name);
|
||||
+ GLib.Test.add_func ("/vala/store/sync", test_store_sync);
|
||||
+ GLib.Test.add_func ("/vala/store/async", test_store_async);
|
||||
+ GLib.Test.add_func ("/vala/clear/sync", test_clear_sync);
|
||||
+ GLib.Test.add_func ("/vala/clear/async", test_clear_async);
|
||||
|
||||
var res = GLib.Test.run ();
|
||||
|
||||
diff --git a/libsecret/test-vala-unstable.vala b/libsecret/test-vala-unstable.vala
|
||||
index f508991..bf2018b 100644
|
||||
--- a/libsecret/test-vala-unstable.vala
|
||||
+++ b/libsecret/test-vala-unstable.vala
|
||||
@@ -28,7 +28,7 @@ private static int main (string[] args) {
|
||||
GLib.error ("Unable to start mock service: %s", e.message);
|
||||
}
|
||||
|
||||
- GLib.Test.add_data_func ("/vala/unstable/read-alias", test_read_alias);
|
||||
+ GLib.Test.add_func ("/vala/unstable/read-alias", test_read_alias);
|
||||
|
||||
var res = GLib.Test.run ();
|
||||
Secret.Service.disconnect ();
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@ -2,12 +2,14 @@
|
||||
|
||||
Name: libsecret
|
||||
Version: 0.20.5
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Library for storing and retrieving passwords and other secrets
|
||||
License: LGPLv2+
|
||||
URL: https://wiki.gnome.org/Projects/Libsecret
|
||||
Source0: https://download.gnome.org/sources/libsecret/%{release_version}/libsecret-%{version}.tar.xz
|
||||
|
||||
Patch1: 0001-fix-incompatible-function-pointer-types-passing.patch
|
||||
|
||||
BuildRequires: glib2-devel gobject-introspection-devel intltool vala gettext gi-docgen meson
|
||||
BuildRequires: libgcrypt-devel >= 1.2.2 libxslt-devel docbook-style-xsl
|
||||
%ifarch "%{valgrind_arches}"
|
||||
@ -72,6 +74,9 @@ rm -rf build/valgrind/
|
||||
%doc %{_docdir}/libsecret-1
|
||||
|
||||
%changelog
|
||||
* Fri Sep 6 2024 yuanchao <1050706328@qq.com> - 0.20.5-3
|
||||
- fix `incompatible function pointer types passing`errors in test-vala-unstable.vala and test-vala-lang.vala
|
||||
|
||||
* Sun Apr 28 2024 yinsist <jianhui.oerv@isrc.iscas.ac.cn> - 0.20.5-2
|
||||
- Valgrind does not support certain architectures like RISC-V, Before depending on Valgrind, first check if Valgrind supports the architecture
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user