Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
707d8afb94 |
2 changed files with 38 additions and 1 deletions
29
fix-unused-but-set-variable.patch
Normal file
29
fix-unused-but-set-variable.patch
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
diff -urNp libunique-1.1.6.old/unique/dbus/uniquebackend-dbus.c libunique-1.1.6/unique/dbus/uniquebackend-dbus.c
|
||||||
|
--- libunique-1.1.6.old/unique/dbus/uniquebackend-dbus.c 2011-07-06 10:30:49.712128019 +0100
|
||||||
|
+++ libunique-1.1.6/unique/dbus/uniquebackend-dbus.c 2011-07-06 10:32:11.026127998 +0100
|
||||||
|
@@ -84,7 +84,6 @@ unique_backend_dbus_register_proxy (Uniq
|
||||||
|
static gboolean
|
||||||
|
unique_backend_dbus_request_name (UniqueBackend *backend)
|
||||||
|
{
|
||||||
|
- UniqueBackendDBus *backend_dbus;
|
||||||
|
const gchar *name;
|
||||||
|
DBusGConnection *connection;
|
||||||
|
DBusGProxy *proxy;
|
||||||
|
@@ -97,8 +96,6 @@ unique_backend_dbus_request_name (Unique
|
||||||
|
if (!connection)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
- backend_dbus = UNIQUE_BACKEND_DBUS (backend);
|
||||||
|
-
|
||||||
|
retval = TRUE;
|
||||||
|
name = unique_backend_get_name (backend);
|
||||||
|
g_assert (name != NULL);
|
||||||
|
@@ -207,7 +204,7 @@ unique_backend_dbus_send_message (Unique
|
||||||
|
cmd, data, time_,
|
||||||
|
&resp,
|
||||||
|
&error);
|
||||||
|
- if (error)
|
||||||
|
+ if (!res && error)
|
||||||
|
{
|
||||||
|
g_warning ("Error while sending message: %s", error->message);
|
||||||
|
g_error_free (error);
|
||||||
10
unique.spec
10
unique.spec
|
|
@ -1,6 +1,6 @@
|
||||||
Name: unique
|
Name: unique
|
||||||
Version: 1.1.6
|
Version: 1.1.6
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Single instance support for applications
|
Summary: Single instance support for applications
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
|
|
@ -8,6 +8,9 @@ License: LGPLv2+
|
||||||
URL: http://www.gnome.org/~ebassi/source/
|
URL: http://www.gnome.org/~ebassi/source/
|
||||||
Source0: http://download.gnome.org/sources/libunique/1.1/libunique-%{version}.tar.bz2
|
Source0: http://download.gnome.org/sources/libunique/1.1/libunique-%{version}.tar.bz2
|
||||||
|
|
||||||
|
# Fix build -- upstream dead (replaced with GtkApplication)
|
||||||
|
Patch0: fix-unused-but-set-variable.patch
|
||||||
|
|
||||||
BuildRequires: dbus-glib-devel
|
BuildRequires: dbus-glib-devel
|
||||||
BuildRequires: gnome-doc-utils >= 0.3.2
|
BuildRequires: gnome-doc-utils >= 0.3.2
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
|
@ -32,6 +35,7 @@ Headers and libraries for Unique.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libunique-%{?version}
|
%setup -q -n libunique-%{?version}
|
||||||
|
%patch0 -p1 -b .unused-but-set-variable
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-gtk-doc --disable-static --enable-introspection=no
|
%configure --enable-gtk-doc --disable-static --enable-introspection=no
|
||||||
|
|
@ -58,6 +62,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 06 2011 Richard Hughes <rhughes@redhat.com> - 1.1.6-4
|
||||||
|
- Fix compile.
|
||||||
|
- Resolves: #716099
|
||||||
|
|
||||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-3
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue