summaryrefslogtreecommitdiff
path: root/x11-misc/sddm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-05-04 12:00:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-05-04 12:00:43 +0100
commita5452c0e0e21e64050249eb092c9d4f5e1961ad7 (patch)
tree161b7f9fdd1673d07dbea34c653bb3fefcae9895 /x11-misc/sddm
parentc71b59670b83e6a80185729dab9f4ecbcc8a816a (diff)
x11-misc/sddm : revision bump (do not source files in home)
Diffstat (limited to 'x11-misc/sddm')
-rw-r--r--x11-misc/sddm/files/sddm-dont-source-files-in-home.patch87
-rw-r--r--x11-misc/sddm/sddm-0.14.0-r5.ebuild (renamed from x11-misc/sddm/sddm-0.14.0-r4.ebuild)3
2 files changed, 89 insertions, 1 deletions
diff --git a/x11-misc/sddm/files/sddm-dont-source-files-in-home.patch b/x11-misc/sddm/files/sddm-dont-source-files-in-home.patch
new file mode 100644
index 00000000..63b4f53a
--- /dev/null
+++ b/x11-misc/sddm/files/sddm-dont-source-files-in-home.patch
@@ -0,0 +1,87 @@
+diff -Nur a/data/scripts/wayland-session b/data/scripts/wayland-session
+--- a/data/scripts/wayland-session 2016-08-22 18:51:12.000000000 +0100
++++ b/data/scripts/wayland-session 2018-05-04 11:53:18.083001476 +0100
+@@ -11,13 +11,6 @@
+ [ -z "$BASH" ] && exec $SHELL $0 "$@"
+ set +o posix
+ [ -f /etc/profile ] && . /etc/profile
+- if [ -f $HOME/.bash_profile ]; then
+- . $HOME/.bash_profile
+- elif [ -f $HOME/.bash_login ]; then
+- . $HOME/.bash_login
+- elif [ -f $HOME/.profile ]; then
+- . $HOME/.profile
+- fi
+ ;;
+ */zsh)
+ [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
+@@ -25,22 +18,19 @@
+ zhome=${ZDOTDIR:-$HOME}
+ # zshenv is always sourced automatically.
+ [ -f $zdir/zprofile ] && . $zdir/zprofile
+- [ -f $zhome/.zprofile ] && . $zhome/.zprofile
+ [ -f $zdir/zlogin ] && . $zdir/zlogin
+- [ -f $zhome/.zlogin ] && . $zhome/.zlogin
+ emulate -R sh
+ ;;
+ */csh|*/tcsh)
+ # [t]cshrc is always sourced automatically.
+ # Note that sourcing csh.login after .cshrc is non-standard.
+ wlsess_tmp=`mktemp /tmp/wlsess-env-XXXXXX`
+- $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c 'export -p' >! $wlsess_tmp"
++ $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; /bin/sh -c 'export -p' >! $wlsess_tmp"
+ . $wlsess_tmp
+ rm -f $wlsess_tmp
+ ;;
+ *) # Plain sh, ksh, and anything we do not know.
+ [ -f /etc/profile ] && . /etc/profile
+- [ -f $HOME/.profile ] && . $HOME/.profile
+ ;;
+ esac
+
+diff -Nur a/data/scripts/Xsession b/data/scripts/Xsession
+--- a/data/scripts/Xsession 2016-08-22 18:51:12.000000000 +0100
++++ b/data/scripts/Xsession 2018-05-04 11:53:38.548659869 +0100
+@@ -11,13 +11,6 @@
+ [ -z "$BASH" ] && exec $SHELL $0 "$@"
+ set +o posix
+ [ -f /etc/profile ] && . /etc/profile
+- if [ -f $HOME/.bash_profile ]; then
+- . $HOME/.bash_profile
+- elif [ -f $HOME/.bash_login ]; then
+- . $HOME/.bash_login
+- elif [ -f $HOME/.profile ]; then
+- . $HOME/.profile
+- fi
+ ;;
+ */zsh)
+ [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
+@@ -25,27 +18,23 @@
+ zhome=${ZDOTDIR:-$HOME}
+ # zshenv is always sourced automatically.
+ [ -f $zdir/zprofile ] && . $zdir/zprofile
+- [ -f $zhome/.zprofile ] && . $zhome/.zprofile
+ [ -f $zdir/zlogin ] && . $zdir/zlogin
+- [ -f $zhome/.zlogin ] && . $zhome/.zlogin
+ emulate -R sh
+ ;;
+ */csh|*/tcsh)
+ # [t]cshrc is always sourced automatically.
+ # Note that sourcing csh.login after .cshrc is non-standard.
+ xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
+- $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c 'export -p' >! $xsess_tmp"
++ $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; /bin/sh -c 'export -p' >! $xsess_tmp"
+ . $xsess_tmp
+ rm -f $xsess_tmp
+ ;;
+ *) # Plain sh, ksh, and anything we do not know.
+ [ -f /etc/profile ] && . /etc/profile
+- [ -f $HOME/.profile ] && . $HOME/.profile
+ ;;
+ esac
+
+ [ -f /etc/xprofile ] && . /etc/xprofile
+-[ -f $HOME/.xprofile ] && . $HOME/.xprofile
+
+ # run all system xinitrc shell scripts.
+ if [ -d /etc/X11/xinit/xinitrc.d ]; then
diff --git a/x11-misc/sddm/sddm-0.14.0-r4.ebuild b/x11-misc/sddm/sddm-0.14.0-r5.ebuild
index bc6402c9..5f0adc98 100644
--- a/x11-misc/sddm/sddm-0.14.0-r4.ebuild
+++ b/x11-misc/sddm/sddm-0.14.0-r5.ebuild
@@ -44,6 +44,7 @@ PATCHES=(
"${FILESDIR}/${PN}-0.12.0-respect-user-flags.patch"
"${FILESDIR}/${P}-avatars.patch"
"${FILESDIR}/${PN}-enable-elogind.patch"
+ "${FILESDIR}/${PN}-dont-source-files-in-home.patch"
)
pkg_pretend() {
@@ -76,7 +77,7 @@ src_configure() {
src_install() {
cmake-utils_src_install
- # overwrite sddm.conf
+ # overwrite autogenerated sddm.conf
if use consolekit; then
cp -avx ${FILESDIR}/sddm-redcore-consolekit.conf ${ED}etc/sddm.conf
elif use elogind; then