Skip to content

Commit

Permalink
gdm: Rebuild 3.4.1 for correct X server path
Browse files Browse the repository at this point in the history
Currently `/usr/X11R6` points to `/usr`.

```
> ls -l /usr/X11R6
lrwxrwxrwx 1 root system 4 Jun 15 04:36 /usr/X11R6 -> /usr
```

The GDM configure script, goes through all these paths, to determine the
path for the X server binary.

Therefore, remove the symbolic link, already done by removing
XScreenSaver 5.11 with `sudo bee update xscreensaver`, and rebuild GDM,
so that it picks up the binaries under `/usr/bin`.

Another option would be, to hardcode the know paths as done in
OpenEmbedded [1].

[1] https://github.com/openembedded/meta-openembedded/blob/master/meta-gnome/recipes-gnome/gdm/gdm/cross-xdetection.diff
  • Loading branch information
pmenzel committed Jun 15, 2016
1 parent 099db20 commit 6ee9b7b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions gdm-3.4.1-13.bee
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/env beesh

SRCURL[0]="http://ftp.gnome.org/pub/gnome/sources/gdm/${PKGVERSION[2]}/gdm-${PKGVERSION}.tar.xz"

PATCHURL[0]="/src/mariux/download/gdm-3.4.1-0001-greeter-always-enable-debugging.patch"
PATCHURL[1]="/src/mariux/download/gdm-3.4.1-0002-greeter-disable-handling-of-ESC-in-login-window.patch"
PATCHURL[2]="/src/mariux/download/gdm-3.4.1-0003-greeter-never-show-cancel-button-in-login-window.patch"

LIBEXECDIR=/usr/lib/gdm
LOCALSTATEDIR=/var

EXCLUDE[0]="^/var/run ^/var/cache ^/etc/tmpfiles.d$"

mee_configure() {
bee_configure \
--with-pam-prefix=/etc
}

mee_install_post() {

mv ${D}/etc/pam.d{,.sample}

mkdir -pv ${D}/etc/tmpfiles.d

cat >${D}/etc/tmpfiles.d/gdm.conf <<-"EOF"
d /run/gdm 0711 root gdm -
d /run/gdm/greeter 0755 gdm gdm -
d /var/cache/gdm 1755 root gdm -
EOF

cat >${D}/etc/dconf/db/gdm.d/99-disable-user-list <<-"EOF"
[org/gnome/login-screen]
disable-user-list=true

[org/gnome/desktop/session]
session-name='gdm-fallback'
EOF
}

0 comments on commit 6ee9b7b

Please sign in to comment.