[arch-commits] Commit in kinit/repos (6 files)

Felix Yan fyan at archlinux.org
Sat Sep 12 04:43:00 UTC 2015


    Date: Saturday, September 12, 2015 @ 06:43:00
  Author: fyan
Revision: 245908

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  kinit/repos/testing-i686/
  kinit/repos/testing-i686/PKGBUILD
    (from rev 245907, kinit/trunk/PKGBUILD)
  kinit/repos/testing-i686/disable-glib-event-loop.patch
    (from rev 245907, kinit/trunk/disable-glib-event-loop.patch)
  kinit/repos/testing-x86_64/
  kinit/repos/testing-x86_64/PKGBUILD
    (from rev 245907, kinit/trunk/PKGBUILD)
  kinit/repos/testing-x86_64/disable-glib-event-loop.patch
    (from rev 245907, kinit/trunk/disable-glib-event-loop.patch)

----------------------------------------------+
 testing-i686/PKGBUILD                        |   41 +++++++++++++++++++++++++
 testing-i686/disable-glib-event-loop.patch   |   24 ++++++++++++++
 testing-x86_64/PKGBUILD                      |   41 +++++++++++++++++++++++++
 testing-x86_64/disable-glib-event-loop.patch |   24 ++++++++++++++
 4 files changed, 130 insertions(+)

Copied: kinit/repos/testing-i686/PKGBUILD (from rev 245907, kinit/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2015-09-12 04:43:00 UTC (rev 245908)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kinit
+pkgver=5.14.0
+pkgrel=1
+pkgdesc='Process launcher to speed up launching KDE applications'
+arch=('i686' 'x86_64')
+url='https://projects.kde.org/projects/frameworks/kinit'
+license=('LGPL')
+depends=('kio')
+makedepends=('extra-cmake-modules' 'kdoctools')
+groups=('kf5')
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
+        disable-glib-event-loop.patch)
+md5sums=('18300dc5a57f07e7d81fba87ca55921b'
+         '9cab3a5dac8eb728550ed68678bd3091')
+
+prepare() {
+  mkdir -p build
+
+  cd "$pkgname-$pkgver"
+  patch -p1 -i ../disable-glib-event-loop.patch
+}
+
+build() {
+  cd build
+  cmake ../${pkgname}-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DLIB_INSTALL_DIR=lib \
+    -DLIBEXEC_INSTALL_DIR=lib \
+    -DBUILD_TESTING=OFF
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+}

Copied: kinit/repos/testing-i686/disable-glib-event-loop.patch (from rev 245907, kinit/trunk/disable-glib-event-loop.patch)
===================================================================
--- testing-i686/disable-glib-event-loop.patch	                        (rev 0)
+++ testing-i686/disable-glib-event-loop.patch	2015-09-12 04:43:00 UTC (rev 245908)
@@ -0,0 +1,24 @@
+--- a/src/klauncher/klauncher_main.cpp
++++ b/src/klauncher/klauncher_main.cpp
+@@ -152,9 +152,20 @@
+     // WABA: Make sure not to enable session management.
+     putenv(strdup("SESSION_MANAGER="));
+ 
++    // Disable the GLib event loop (rh#983110)
++    const bool wasQtNoGlibSet = !qEnvironmentVariableIsEmpty("QT_NO_GLIB");
++    if (!wasQtNoGlibSet) {
++       qputenv("QT_NO_GLIB", "1");
++    }
++
+     // We need a QGuiApplication as we use X11
+     QGuiApplication app(argc, argv);
+     app.setApplicationName(QStringLiteral("klauncher"));
++
++    // Now get rid of QT_NO_GLIB again so launched processes don't inherit it
++    if (!wasQtNoGlibSet) {
++       qunsetenv("QT_NO_GLIB");
++    }
+ 
+     int maxTry = 3;
+     while (true) {
+

Copied: kinit/repos/testing-x86_64/PKGBUILD (from rev 245907, kinit/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2015-09-12 04:43:00 UTC (rev 245908)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kinit
+pkgver=5.14.0
+pkgrel=1
+pkgdesc='Process launcher to speed up launching KDE applications'
+arch=('i686' 'x86_64')
+url='https://projects.kde.org/projects/frameworks/kinit'
+license=('LGPL')
+depends=('kio')
+makedepends=('extra-cmake-modules' 'kdoctools')
+groups=('kf5')
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
+        disable-glib-event-loop.patch)
+md5sums=('18300dc5a57f07e7d81fba87ca55921b'
+         '9cab3a5dac8eb728550ed68678bd3091')
+
+prepare() {
+  mkdir -p build
+
+  cd "$pkgname-$pkgver"
+  patch -p1 -i ../disable-glib-event-loop.patch
+}
+
+build() {
+  cd build
+  cmake ../${pkgname}-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DLIB_INSTALL_DIR=lib \
+    -DLIBEXEC_INSTALL_DIR=lib \
+    -DBUILD_TESTING=OFF
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+}

Copied: kinit/repos/testing-x86_64/disable-glib-event-loop.patch (from rev 245907, kinit/trunk/disable-glib-event-loop.patch)
===================================================================
--- testing-x86_64/disable-glib-event-loop.patch	                        (rev 0)
+++ testing-x86_64/disable-glib-event-loop.patch	2015-09-12 04:43:00 UTC (rev 245908)
@@ -0,0 +1,24 @@
+--- a/src/klauncher/klauncher_main.cpp
++++ b/src/klauncher/klauncher_main.cpp
+@@ -152,9 +152,20 @@
+     // WABA: Make sure not to enable session management.
+     putenv(strdup("SESSION_MANAGER="));
+ 
++    // Disable the GLib event loop (rh#983110)
++    const bool wasQtNoGlibSet = !qEnvironmentVariableIsEmpty("QT_NO_GLIB");
++    if (!wasQtNoGlibSet) {
++       qputenv("QT_NO_GLIB", "1");
++    }
++
+     // We need a QGuiApplication as we use X11
+     QGuiApplication app(argc, argv);
+     app.setApplicationName(QStringLiteral("klauncher"));
++
++    // Now get rid of QT_NO_GLIB again so launched processes don't inherit it
++    if (!wasQtNoGlibSet) {
++       qunsetenv("QT_NO_GLIB");
++    }
+ 
+     int maxTry = 3;
+     while (true) {
+



More information about the arch-commits mailing list