git » qt5-base.git » commit e3c06d6

Fix logging to systemd journal (FS#52712)

author Antonio Rojas
2017-01-28 23:19:58 UTC
committer Antonio Rojas
2017-01-28 23:19:58 UTC
parent 04aa4a9dcc374f7b91c0bcf53ce21647c854f831

Fix logging to systemd journal (FS#52712)

PKGBUILD +8 -3

diff --git a/PKGBUILD b/PKGBUILD
index 7777862..e3edd41 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgname=qt5-base
 _qtver=5.8.0
 pkgver=${_qtver/-/}
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 url='http://qt-project.org/'
 license=('GPL3' 'LGPL3' 'FDL' 'custom')
@@ -25,8 +25,10 @@ optdepends=('qt5-svg: to use SVG icon themes'
 conflicts=('qtchooser')
 groups=('qt' 'qt5')
 _pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
-source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
-md5sums=('6e1f7f6fb6333eb66e563b175c4e87e9')
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
+        qt5-base-journald.patch::"https://github.com/qt/qtbase/commit/0c8f3229.patch")
+md5sums=('6e1f7f6fb6333eb66e563b175c4e87e9'
+         '160fde81fe882c4241f04634f53691ad')
 
 prepare() {
   cd ${_pkgfqn}
@@ -41,6 +43,9 @@ prepare() {
   # Use python2 for Python 2.x
   find . -name '*.py' -exec sed -i \
     's|#![ ]*/usr/bin/python$|&2|;s|#![ ]*/usr/bin/env python$|&2|' {} +
+
+  # Fix logging to systemd journal
+  patch -p1 -i ../qt5-base-journald.patch
 }
 
 build() {