rpms/gnome-desktop/devel gnome-desktop-2.27.3-edid-prop-name.patch, NONE, 1.1 gnome-desktop.spec, 1.213, 1.214

Adam Jackson ajax at fedoraproject.org
Tue Jul 7 22:27:42 UTC 2009


Author: ajax

Update of /cvs/pkgs/rpms/gnome-desktop/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6925

Modified Files:
	gnome-desktop.spec 
Added Files:
	gnome-desktop-2.27.3-edid-prop-name.patch 
Log Message:
* Tue Jul 07 2009 Adam Jackson <ajax at redhat.com> 2.27.3-2
- gnome-desktop-2.27.3-edid-prop-name.patch: Adapt to RANDR 1.3's new name
  for the EDID output property.


gnome-desktop-2.27.3-edid-prop-name.patch:

--- NEW FILE gnome-desktop-2.27.3-edid-prop-name.patch ---
commit d9f0cca94f16628cb273cadfe25bd5998ac3c178
Author: Adam Jackson <ajax at redhat.com>
Date:   Tue Jul 7 18:20:12 2009 -0400

    Adapt to RANDR 1.3's name for the EDID property.
    
    1.2 calls it EDID_DATA, 1.3 calls it EDID.  Try the 1.3 name first since
    1.2 will eventually be rare.

diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index a3a8b2c..b788600 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -866,13 +866,21 @@ get_property (Display *dpy,
 static guint8 *
 read_edid_data (GnomeRROutput *output)
 {
-    Atom edid_atom = XInternAtom (DISPLAY (output), "EDID_DATA", FALSE);
+    Atom edid_atom;
     guint8 *result;
     int len;
-    
+
+    edid_atom = XInternAtom (DISPLAY (output), "EDID", FALSE);
     result = get_property (DISPLAY (output),
 			   output->id, edid_atom, &len);
-    
+
+    if (!result)
+    {
+	edid_atom = XInternAtom (DISPLAY (output), "EDID_DATA", FALSE);
+	result = get_property (DISPLAY (output),
+			       output->id, edid_atom, &len);
+    }
+
     if (result)
     {
 	if (len % 128 == 0)


Index: gnome-desktop.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-desktop/devel/gnome-desktop.spec,v
retrieving revision 1.213
retrieving revision 1.214
diff -u -p -r1.213 -r1.214
--- gnome-desktop.spec	16 Jun 2009 14:03:35 -0000	1.213
+++ gnome-desktop.spec	7 Jul 2009 22:27:12 -0000	1.214
@@ -12,11 +12,13 @@
 Summary: Package containing code shared among gnome-panel, gnome-session, nautilus, etc
 Name: gnome-desktop
 Version: 2.27.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 URL: http://www.gnome.org
 Source0: http://download.gnome.org/sources/gnome-desktop/2.27/%{name}-%{version}.tar.bz2
 # http://bugzilla.gnome.org/show_bug.cgi?id=581621
 Patch2: pnpids.patch
+# Backport from 2.27.4
+Patch3: gnome-desktop-2.27.3-edid-prop-name.patch
 License: GPLv2+ and LGPLv2+
 Group: System Environment/Libraries
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -75,6 +77,7 @@ libgnomedesktop.
 %prep
 %setup -q
 %patch2 -p1 -b .pnpids.patch
+%patch3 -p1 -b .edid-name
 
 %build
 %configure --with-gnome-distributor="Red Hat, Inc" --disable-scrollkeeper
@@ -120,6 +123,10 @@ rm -rf $RPM_BUILD_ROOT
 %doc %{_datadir}/gtk-doc/html/gnome-desktop/
 
 %changelog
+* Tue Jul 07 2009 Adam Jackson <ajax at redhat.com> 2.27.3-2
+- gnome-desktop-2.27.3-edid-prop-name.patch: Adapt to RANDR 1.3's new name
+  for the EDID output property.
+
 * Tue Jun 16 2009 Matthias Clasen <mclasen at redhat.com> 2.27.3-1
 - Update to 2.27.3
 




More information about the fedora-extras-commits mailing list