Skip to content
Snippets Groups Projects
Verified Commit 4c5c74bb authored by Clayton Craft's avatar Clayton Craft :speech_balloon:
Browse files

purism-librem5: use gnss-share with geoclue (MR 3698)

This fixes gnss out of the box on the librem 5, by configuring geoclue
to use gnss-share as a nmea source.

I went this route, of overriding a .service file that invokes geoclue
with a command line option, because forking this .service file is much
nicer than forking geoclue.conf. The conf file will likely change over
time to add new app permissions or whatever, and it's unlikely
(hopefull!) that this .service file will change much upstream...

[ci:skip-build] already built successfully in CI
parent 1542dbfb
Branches
No related tags found
No related merge requests found
Pipeline #197440 passed
......@@ -3,7 +3,7 @@
# Co-Maintainer: Bhushan Shah <bshah@kde.org>
pkgname=device-purism-librem5
pkgdesc="Purism Librem 5 Phone"
pkgver=1.36
pkgver=1.37
pkgrel=0
_confver=54
_purismrel=1
......@@ -43,8 +43,10 @@ source="
0002-udev-cameras-use-correct-path-for-modprobe-on-Alpine.patch
l5-ship-mode.initd
l5-lockdown-support.initd
org.freedesktop.GeoClue2.service
"
subpackages="
$pkgname-geoclue
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-phosh
$pkgname-pulseaudio
......@@ -62,6 +64,14 @@ build() {
devicepkg_build $startdir $pkgname
}
geoclue() {
pkgdesc="geoclue configuration for the Librem 5"
install_if="$pkgname geoclue"
replaces="geoclue"
install -Dm644 "$srcdir"/org.freedesktop.GeoClue2.service \
-t "$subpkgdir"/usr/share/dbus-1/system-services/
}
phosh() {
pkgdesc="Phosh support for the Librem 5"
install_if="$pkgname phosh"
......@@ -185,4 +195,5 @@ fad386071fc45f9880a94cc8004fabd5d98b3e6a12606c98d8e72e0208f22ab54f03b921f5967a95
b45749fcddfd65a302b502bcabfa5828d1b63e45d844fd50e44009a756b919db20fe9526102947c0f0dfcdffe4a037e5050fe1b24fb915933ce0837f49759378 0002-udev-cameras-use-correct-path-for-modprobe-on-Alpine.patch
c723764d507ccd4b04aa5ce79b1d1ebc131873cdc37a943cb0f92b8a08a3c69eb9e0d31fcd4589fd8c40a9676bae9897e4f12ec2ebe4db8214ac85669ef35a53 l5-ship-mode.initd
f4b314d553655f7975445ac0a33099923e20dabb082c07e2cf6a78e4118c143d777dd4ad2c09cbc388600bdefe8deb3073fbd15b238772ddf09c66ac46415590 l5-lockdown-support.initd
fd91bcd8cecd509587f0a26d454157a1df094d2d86c75329d1002e9474946494d4d1b5407e055fbd5f21e22394eeb1bbd4b3439ae6925db50a3427b4fac101cf org.freedesktop.GeoClue2.service
"
[D-BUS Service]
Name=org.freedesktop.GeoClue2
Exec=/usr/libexec/geoclue --nmea-socket /var/run/gnss-share.sock
User=geoclue
SystemdService=geoclue.service
  • Administrator @root

    mentioned in commit 59d4bc14

    By clayton craft on 2022-12-09T07:20:44

    · Imported

    mentioned in commit 59d4bc14

    By clayton craft on 2022-12-09T07:20:44

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment