After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788672 - Optionalise X11 support
Optionalise X11 support
Status: RESOLVED FIXED
Product: gdk-pixbuf
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gdk-pixbuf-maint
gdk-pixbuf-maint
Depends on:
Blocks:
 
 
Reported: 2017-10-08 14:33 UTC by Rasmus Thomsen
Modified: 2017-11-29 17:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
this patch should allow users that want to, to explicitly disable X11 support (1.48 KB, patch)
2017-10-08 14:33 UTC, Rasmus Thomsen
none Details | Review
0001-build-Optionalise-X11-support.patch (1.46 KB, patch)
2017-11-28 16:48 UTC, Rasmus Thomsen
none Details | Review
build: Make X11 support optional (1.58 KB, patch)
2017-11-29 17:16 UTC, Bastien Nocera
committed Details | Review

Description Rasmus Thomsen 2017-10-08 14:33:14 UTC
Created attachment 361135 [details] [review]
this patch should allow users that want to, to explicitly disable X11 support

Currently X11 support is automagic and can't be turned off. I've attached a patch 
which optionalises X11 support via the enable_x11 flag
Comment 1 Bastien Nocera 2017-11-28 14:59:42 UTC
Review of attachment 361135 [details] [review]:

> build: optionalise X11 support

Upper case after the ": "

::: meson_options.txt
@@ +15,3 @@
        type: 'boolean',
        value: false)
+option('enable_X11',

The option should simply be named "x11".

@@ +18,3 @@
+       description: 'Enable X11 support (requires libX11)',
+       type: 'boolean',
+       value: false)

It should probably default to true, as it did before.
Comment 2 Rasmus Thomsen 2017-11-28 16:41:49 UTC
> The option should simply be named "x11".

Hm, but all the other options also start with either "enable" or "with" so enable_x11 seems more fitting to me - but if you say so, I'll change it. Thanks for looking over it
Comment 3 Rasmus Thomsen 2017-11-28 16:48:36 UTC
Created attachment 364578 [details] [review]
0001-build-Optionalise-X11-support.patch
Comment 4 Bastien Nocera 2017-11-29 17:16:19 UTC
Created attachment 364633 [details] [review]
build: Make X11 support optional

Don't make X11 support dependent on the presence of libX11 development
files on the build system.

Add an "x11" option to control whether X11 support should be built
or not.
Comment 5 Bastien Nocera 2017-11-29 17:17:53 UTC
Attachment 364633 [details] pushed as 204082e - build: Make X11 support optional

I've changed the commit message slightly. You can see the reasoning about not
using "with" or "enable" in bug 790995, which has a link to the Meson guidelines
for GNOME.

Thanks for the patch!