git » plasma-workspace.git » commit 46907b0

add a patch to fix broken gpg-agent etc.

author Felix Yan
2015-10-07 05:58:46 UTC
committer Felix Yan
2015-10-07 05:58:46 UTC
parent 6aa621f0358c07e632b4cdaf39f412b9a6d28636

add a patch to fix broken gpg-agent etc.

PKGBUILD +6 -3
include-env-vars-from-sourced-files.patch +23 -0

diff --git a/PKGBUILD b/PKGBUILD
index dac0598..2181ff3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
 pkgbase=plasma-workspace
 pkgname=('plasma-workspace' 'drkonqi')
 pkgver=5.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc='KDE Plasma Workspace'
 arch=('i686' 'x86_64')
 url='https://projects.kde.org/projects/kde/workspace/plasma-workspace'
@@ -22,15 +22,18 @@ makedepends=('extra-cmake-modules' 'kdoctools' 'kwin' 'gpsd' 'baloo'
              'krunner' 'kxmlrpcclient' 'networkmanager-qt')
 groups=('plasma')
 source=("http://download.kde.org/stable/plasma/${pkgver}/${pkgbase}-${pkgver}.tar.xz"
-        'kde.pam' 'dbus-update-environment.patch')
+        'kde.pam' 'dbus-update-environment.patch' 'include-env-vars-from-sourced-files.patch')
 md5sums=('a4fe835089c213c52f1407715163bf80'
          '378ee33a9ec2870a1a899f2e05ee00d4'
-         '5ca1a098128753c12b23ee316d9ee78e')
+         '5ca1a098128753c12b23ee316d9ee78e'
+         '0dc67c9132d08a58e787d69f2eee2138')
 
 prepare() {
   mkdir build
 
   cd ${pkgbase}-${pkgver}
+  # Include env vars from sourced files on pre-startup
+  patch -p1 -i "${srcdir}"/include-env-vars-from-sourced-files.patch
   # sends env vars to existing dbus
   patch -p1 -i "${srcdir}"/dbus-update-environment.patch
   # be sure to use the Qt5 version of qtpaths
diff --git a/include-env-vars-from-sourced-files.patch b/include-env-vars-from-sourced-files.patch
new file mode 100644
index 0000000..462913f
--- /dev/null
+++ b/include-env-vars-from-sourced-files.patch
@@ -0,0 +1,23 @@
+From: Siddhartha Sahu <sh.siddhartha@gmail.com>
+Date: Tue, 06 Oct 2015 13:51:52 +0000
+Subject: Include env vars from sourced files on pre-startup
+X-Git-Url: http://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=f869daca8244131f6b452e2c15b4dee5903ff768
+---
+Include env vars from sourced files on pre-startup
+
+REVIEW: 125323
+---
+
+
+--- a/startkde/startkde.cmake
++++ b/startkde/startkde.cmake
+@@ -206,7 +206,7 @@
+ # Add /env/ to the directory to locate the scripts to be sourced
+ for prefix in `echo $scriptpath`; do
+   for file in "$prefix"/env/*.sh; do
+-    (test -r "$file" && . "$file") || :
++    test -r "$file" && . "$file" || true
+   done
+ done
+ 
+