Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 203823 Details for
Bug 262270
gnome-base/gnome-desktop-2.26.3 and gnome-power-manager-2.26.0 fail to compile without libXrandr-1.3.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for gnome-desktop
0001-Check-for-XRR-functions-using-library-version-instea.patch (text/plain), 2.01 KB, created by
Rémi Cardona (RETIRED)
on 2009-09-11 19:19:52 UTC
(
hide
)
Description:
patch for gnome-desktop
Filename:
MIME Type:
Creator:
Rémi Cardona (RETIRED)
Created:
2009-09-11 19:19:52 UTC
Size:
2.01 KB
patch
obsolete
>From bfa2e9a6aa50fc2e0ba65290df0aa5f0969edf02 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?R=C3=A9mi=20Cardona?= <remi@gentoo.org> >Date: Fri, 11 Sep 2009 21:15:52 +0200 >Subject: [PATCH] Check for XRR* functions using library version instead of proto version >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >randrproto 1.3 can be installed with (lib)xrandr 1.2 which causes linking >errors. This patch checks that libXrandr 1.3 is available or not. > >Signed-off-by: Rémi Cardona <remi@gentoo.org> >--- > configure.in | 5 ++++- > libgnome-desktop/gnome-rr.c | 6 ++---- > 2 files changed, 6 insertions(+), 5 deletions(-) > >diff --git a/configure.in b/configure.in >index 12e2fb9..a0309af 100644 >--- a/configure.in >+++ b/configure.in >@@ -114,7 +114,10 @@ AC_SUBST(STARTUP_NOTIFICATION_PACKAGE) > dnl we need x11 for GnomeBG > > PKG_CHECK_MODULES(XLIB, x11 xrandr >= $XRANDR_REQUIRED, >- X11_PACKAGE=x11, >+ [X11_PACKAGE=x11 >+ PKG_CHECK_EXISTS([xrandr >= 1.3], >+ [AC_DEFINE(HAVE_XRANDR_13, 1, [xrandr 1.3 available])]) >+ ], > [X11_PACKAGE= > AC_PATH_XTRA > if test "x$no_x" = xyes; then >diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c >index 0b95e3a..8c20355 100644 >--- a/libgnome-desktop/gnome-rr.c >+++ b/libgnome-desktop/gnome-rr.c >@@ -338,15 +338,13 @@ fill_out_screen_info (Display *xdisplay, > * XRRGetScreenResources, however it is available only > * in RandR 1.3 or higher > */ >-#if (RANDR_MAJOR > 1 || (RANDR_MAJOR == 1 && RANDR_MINOR >= 3)) >+#ifdef HAVE_XRANDR_13 > /* Runtime check for RandR 1.3 or higher */ > if (info->screen->rr_major_version == 1 && info->screen->rr_minor_version >= 3) > resources = XRRGetScreenResourcesCurrent (xdisplay, xroot); > else >- resources = XRRGetScreenResources (xdisplay, xroot); >-#else >- resources = XRRGetScreenResources (xdisplay, xroot); > #endif >+ resources = XRRGetScreenResources (xdisplay, xroot); > } > > if (resources) >-- >1.6.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262270
:
189641
|
189644
|
194910
| 203823 |
203829