[packages/bamf] - more build fixes
qboosh
qboosh at pld-linux.org
Sun Aug 31 11:42:08 CEST 2025
commit f683dc036739988263ad2cb364c527ee0c7a7bbe
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Aug 31 11:44:49 2025 +0200
- more build fixes
bamf-return.patch | 12 ++++++++++++
bamf.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/bamf.spec b/bamf.spec
index 8739f6c..da1929a 100644
--- a/bamf.spec
+++ b/bamf.spec
@@ -20,6 +20,7 @@ Group: Libraries
Source0: https://launchpad.net/bamf/0.3/%{version}/+download/%{name}-%{version}.tar.gz
# Source0-md5: 56b0b0ac2d3f2a0401db268c78cc8527
Patch0: %{name}-gir.patch
+Patch1: %{name}-return.patch
URL: https://launchpad.net/bamf
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.11
@@ -117,6 +118,7 @@ demona bamf i dane pomocnicze.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
# ../.././src/bamf-legacy-window.c: In function 'bamf_legacy_window_get_class_name':
# ../.././src/bamf-legacy-window.c:144:3: error: 'wnck_class_group_get_res_class' is deprecated (declared at /usr/include/libwnck-3.0/libwnck/class-group.h:89): Use 'wnck_class_group_get_id' instead [-Werror=deprecated-declarations]
@@ -177,5 +179,5 @@ rm -rf $RPM_BUILD_ROOT
%files daemon
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/bamfdaemon
+%attr(755,root,root) %{_libexecdir}/bamfdaemon
%{_datadir}/dbus-1/services/org.ayatana.bamf.service
diff --git a/bamf-return.patch b/bamf-return.patch
new file mode 100644
index 0000000..8a701f7
--- /dev/null
+++ b/bamf-return.patch
@@ -0,0 +1,12 @@
+error: `return' with a value, in function returning void [-Wreturn-mismatch]
+--- bamf-0.3.6/src/bamf-legacy-window-test.c.orig 2013-01-11 17:57:19.981616000 +0100
++++ bamf-0.3.6/src/bamf-legacy-window-test.c 2025-08-31 11:31:39.371670791 +0200
+@@ -359,7 +359,7 @@ bamf_legacy_window_test_set_hint (BamfLe
+ g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (window));
+ BamfLegacyWindowTest *self = BAMF_LEGACY_WINDOW_TEST (window);
+
+- return g_hash_table_insert (self->hints, g_strdup (name), g_strdup (value));
++ g_hash_table_insert (self->hints, g_strdup (name), g_strdup (value));
+ }
+
+ static void
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bamf.git/commitdiff/f683dc036739988263ad2cb364c527ee0c7a7bbe
More information about the pld-cvs-commit
mailing list