[arch-commits] Commit in plasma-workspace/trunk (PKGBUILD pw-gpsd-3.18.patch)
Antonio Rojas
arojas at archlinux.org
Tue Oct 9 16:09:14 UTC 2018
Date: Tuesday, October 9, 2018 @ 16:09:13
Author: arojas
Revision: 336059
gpsd 3.18 rebuild
Added:
plasma-workspace/trunk/pw-gpsd-3.18.patch
Modified:
plasma-workspace/trunk/PKGBUILD
--------------------+
PKGBUILD | 11 ++++++++---
pw-gpsd-3.18.patch | 15 +++++++++++++++
2 files changed, 23 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-09 14:19:07 UTC (rev 336058)
+++ PKGBUILD 2018-10-09 16:09:13 UTC (rev 336059)
@@ -6,7 +6,7 @@
pkgbase=plasma-workspace
pkgname=(plasma-workspace plasma-wayland-session)
pkgver=5.14.0
-pkgrel=1
+pkgrel=2
pkgdesc='KDE Plasma Workspace'
arch=(x86_64)
url='https://www.kde.org/workspaces/plasmadesktop/'
@@ -16,10 +16,12 @@
plasma-integration kdelibs4support)
makedepends=(extra-cmake-modules kdoctools gpsd baloo appstream-qt krunner networkmanager-qt kdesignerplugin)
groups=(plasma)
-source=("https://download.kde.org/stable/plasma/$pkgver/$pkgbase-$pkgver.tar.xz"{,.sig} kde.pam)
+source=("https://download.kde.org/stable/plasma/$pkgver/$pkgbase-$pkgver.tar.xz"{,.sig} kde.pam
+ pw-gpsd-3.18.patch)
sha256sums=('ce778af339ccc40763dbc9a6c737fa4d8d249910f60f8567c1397f6d9b01ffb9'
'SKIP'
- '00090291204baabe9d6857d3b1419832376dd2e279087d718b64792691e86739')
+ '00090291204baabe9d6857d3b1419832376dd2e279087d718b64792691e86739'
+ '815261e4635c180464939a120078b8a1f5a832a85a01e227681ecaee841c9587')
validpgpkeys=('2D1D5B0588357787DE9EE225EC94D18F7F05997E' # Jonathan Riddell <jr at jriddell.org>
'0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah <bshah at kde.org>
'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson <davidedmundson at kde.org>
@@ -27,6 +29,9 @@
prepare() {
mkdir -p build
+
+ cd $pkgbase-$pkgver
+ patch -p1 -i ../pw-gpsd-3.18.patch # Fix build with gpsd 3.18
}
build() {
Added: pw-gpsd-3.18.patch
===================================================================
--- pw-gpsd-3.18.patch (rev 0)
+++ pw-gpsd-3.18.patch 2018-10-09 16:09:13 UTC (rev 336059)
@@ -0,0 +1,15 @@
+diff --git a/dataengines/geolocation/location_gps.cpp b/dataengines/geolocation/location_gps.cpp
+index 22f6b279..f06865e2 100644
+--- a/dataengines/geolocation/location_gps.cpp
++++ b/dataengines/geolocation/location_gps.cpp
+@@ -51,7 +51,9 @@ void Gpsd::run()
+ while (!m_abort) {
+ Plasma::DataEngine::Data d;
+
+-#if GPSD_API_MAJOR_VERSION >= 5
++#if GPSD_API_MAJOR_VERSION >= 7
++ if (gps_read(m_gpsdata, NULL, 0) != -1) {
++#elif GPSD_API_MAJOR_VERSION >= 5
+ if (gps_read(m_gpsdata) != -1) {
+ #else
+ if (gps_poll(m_gpsdata) != -1) {
More information about the arch-commits
mailing list