Package: gtk+2.0 / 2.24.32-3

005_support_disabling_x11_extensions.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
From: Cyril Brulebois <kibi@debian.org>
Date: Fri, 6 Apr 2018 09:22:20 +0100
Subject: Support disabling X11 extensions

We want this in Debian as we build GTK+ with extensions enabled for the
normal build, but disable them for the special build that will be used
in the graphical installer, because it needs to be as small as possible.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=612918
Applied-upstream: 2.99.1, commit:ec15c405cf6354e9267e7e6b7ce878c519bffe4c
---
 configure.ac | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3eaa305..9797b79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -241,6 +241,18 @@ AC_ARG_ENABLE(xinerama,
               [AC_HELP_STRING([--enable-xinerama],
 	                      [support xinerama extension if available [default=yes]])],,
               [enable_xinerama="yes"])
+AC_ARG_ENABLE(xrandr,
+	      [AC_HELP_STRING([--enable-xrandr],
+			      [support XRandR extension if available [default=yes]])])
+AC_ARG_ENABLE(xfixes,
+	      [AC_HELP_STRING([--enable-xfixes],
+			      [support XFixes extension if available [default=yes]])])
+AC_ARG_ENABLE(xcomposite,
+	      [AC_HELP_STRING([--enable-xcomposite],
+			      [support X Composite extension if available [default=yes]])])
+AC_ARG_ENABLE(xdamage,
+	      [AC_HELP_STRING([--enable-xdamage],
+			      [support X Damage extension if available [default=yes]])])
 AC_ARG_ENABLE(rebuilds,
               [AC_HELP_STRING([--disable-rebuilds],
                               [disable all source autogeneration rules])],,
@@ -1190,7 +1202,8 @@ if test "x$gdktarget" = "xx11"; then
   AM_CONDITIONAL(XINPUT_XFREE, test x$with_xinput = xxfree || test x$with_xinput = xyes)
 
   # Check for the RANDR extension
-  if $PKG_CONFIG --exists "xrandr >= 1.2.99" ; then
+  if test x"$enable_xrandr" != xno && \
+     $PKG_CONFIG --exists "xrandr >= 1.2.99" ; then
      AC_DEFINE(HAVE_RANDR, 1, [Have the Xrandr extension library])
 
      if $PKG_CONFIG --exists "xrandr >= 1.5.0" ; then
@@ -1209,7 +1222,8 @@ if test "x$gdktarget" = "xx11"; then
 
   # Checks for XFixes extension
   
-  if $PKG_CONFIG --exists xfixes ; then
+  if test x"$enable_xfixes" != xno && \
+     $PKG_CONFIG --exists xfixes ; then
     AC_DEFINE(HAVE_XFIXES, 1, [Have the XFIXES X extension])
     
     X_PACKAGES="$X_PACKAGES xfixes"
@@ -1218,7 +1232,8 @@ if test "x$gdktarget" = "xx11"; then
 
   # Checks for Xcomposite extension
 
-  if $PKG_CONFIG --exists xcomposite ; then
+  if test x"$enable_xcomposite" != xno && \
+     $PKG_CONFIG --exists xcomposite ; then
     AC_DEFINE(HAVE_XCOMPOSITE, 1, [Have the XCOMPOSITE X extension])
 
     X_PACKAGES="$X_PACKAGES xcomposite"
@@ -1227,7 +1242,7 @@ if test "x$gdktarget" = "xx11"; then
 
   # Checks for Xdamage extension
 
-  if $PKG_CONFIG --exists xdamage ; then
+  if test x"$enable_xdamage" != xno && $PKG_CONFIG --exists xdamage ; then
     AC_DEFINE(HAVE_XDAMAGE, 1, [Have the XDAMAGE X extension])
 
     X_PACKAGES="$X_PACKAGES xdamage"