Fix check-accel utility
This commit is contained in:
parent
009a8c2fb4
commit
8c8f36bf8a
24
0001-Return-0-on-success.patch
Normal file
24
0001-Return-0-on-success.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From 01217f38addd7ea47e121fc5e31eb2a35a54f9f8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Matthias Clasen <mclasen@redhat.com>
|
||||||
|
Date: Tue, 8 Mar 2011 14:04:05 -0500
|
||||||
|
Subject: [PATCH] Return 0 on success
|
||||||
|
|
||||||
|
Booleans and exist status don't go together well...
|
||||||
|
---
|
||||||
|
tools/gnome-session-check-accelerated.c | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tools/gnome-session-check-accelerated.c b/tools/gnome-session-check-accelerated.c
|
||||||
|
index 7b1cb5f..9d4e2d6 100644
|
||||||
|
--- a/tools/gnome-session-check-accelerated.c
|
||||||
|
+++ b/tools/gnome-session-check-accelerated.c
|
||||||
|
@@ -99,5 +99,5 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
|
gdk_display_sync (display);
|
||||||
|
|
||||||
|
- return is_accelerated;
|
||||||
|
+ return is_accelerated ? 0 : 1;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.7.4.1
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
Summary: GNOME session manager
|
Summary: GNOME session manager
|
||||||
Name: gnome-session
|
Name: gnome-session
|
||||||
Version: 2.91.91
|
Version: 2.91.91
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
URL: http://www.gnome.org
|
URL: http://www.gnome.org
|
||||||
#VCS: git:git://git.gnome.org/gnome-session
|
#VCS: git:git://git.gnome.org/gnome-session
|
||||||
Source0: http://download.gnome.org/sources/gnome-session/2.91/%{name}-%{version}.tar.bz2
|
Source0: http://download.gnome.org/sources/gnome-session/2.91/%{name}-%{version}.tar.bz2
|
||||||
@ -11,6 +11,7 @@ Source1: gnome-authentication-agent.desktop
|
|||||||
Source2: gnome.desktop
|
Source2: gnome.desktop
|
||||||
|
|
||||||
Patch0: gnome-session-libs.patch
|
Patch0: gnome-session-libs.patch
|
||||||
|
Patch1: 0001-Return-0-on-success.patch
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: User Interface/Desktops
|
Group: User Interface/Desktops
|
||||||
@ -85,6 +86,7 @@ Desktop file to add GNOME to display manager session menu.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .libs
|
%patch0 -p1 -b .libs
|
||||||
|
%patch1 -p1 -b .check-accel
|
||||||
|
|
||||||
echo "ACLOCAL_AMFLAGS = -I m4" >> Makefile.am
|
echo "ACLOCAL_AMFLAGS = -I m4" >> Makefile.am
|
||||||
|
|
||||||
@ -164,6 +166,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
|
|||||||
%{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 8 2011 Matthias Clasen <mclasen@redhat.com> 2.91.91-2
|
||||||
|
- Fix the check-accel utility exit status
|
||||||
|
|
||||||
* Mon Mar 7 2011 Matthias Clasen <mclasen@redhat.com> 2.91.91-1
|
* Mon Mar 7 2011 Matthias Clasen <mclasen@redhat.com> 2.91.91-1
|
||||||
- Update to 2.91.91
|
- Update to 2.91.91
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user