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 750220 - Make Xsession installation conditional, and off by default
Make Xsession installation conditional, and off by default
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-01 15:03 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2015-06-01 15:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make Xsession installation conditional, and off by default (3.29 KB, patch)
2015-06-01 15:03 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
Make Xsession installation conditional, and off by default (3.29 KB, patch)
2015-06-01 15:22 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2015-06-01 15:03:11 UTC
See patch. Since most distros patch it out, we shouldn't install it by default.
Comment 1 Jasper St. Pierre (not reading bugmail) 2015-06-01 15:03:13 UTC
Created attachment 304356 [details] [review]
Make Xsession installation conditional, and off by default

Most distros use custom logic for their Xsession, so we can't really
ship a default here. Doing so would break people running "make install"
and expecting things to work.
Comment 2 Ray Strode [halfline] 2015-06-01 15:08:44 UTC
Review of attachment 304356 [details] [review]:

seems fine except for the default. some suggestions below, but commit whatever

::: configure.ac
@@ +179,3 @@
 dnl - Configure arguments
 dnl ---------------------------------------------------------------------------
+AC_ARG_ENABLE(enable-gdm-xsession,

maybe gdm is redundant here

@@ +182,3 @@
+              AS_HELP_STRING([--enable-gdm-xsession],
+                             [Enable installing the gdm Xsession file @<:@default=no@:>@]),,
+              enable_gdm_xsession=yes)

you want enable_gdm_xsession=no right?

::: data/Makefile.am
@@ +236,3 @@
 	fi
 
+if ENABLE_GDM_XSESSION

little funky to have two different kinds of ifs right next to each other. If it works, whatever.  Might be nicer to move this out of install-data-hook
Comment 3 Jasper St. Pierre (not reading bugmail) 2015-06-01 15:22:19 UTC
Created attachment 304361 [details] [review]
Make Xsession installation conditional, and off by default

Most distros use custom logic for their Xsession, so we can't really
ship a default here. Doing so would break people running "make install"
and expecting things to work.


--

Thanks. There was a bug before with the switch logic. Fixed that, along with the default.

As for the install rule, the if statement does work (because it's not indented), and I can't really move it out of there since you chmod the install directory in a weird way, and I think automake creating the install directory for us would cause that code not to be hit.
Comment 4 Ray Strode [halfline] 2015-06-01 15:23:56 UTC
Review of attachment 304361 [details] [review]:

++
Comment 5 Jasper St. Pierre (not reading bugmail) 2015-06-01 15:26:36 UTC
Attachment 304361 [details] pushed as afca46e - Make Xsession installation conditional, and off by default