geoclue2: 2.6.0 -> 2.7.0

This commit is contained in:
Miguel Madrid-Mencía 2023-04-09 15:46:15 +02:00
parent 7cb92d085d
commit 63a6b34b05
No known key found for this signature in database
GPG key ID: 4D0F6894D41C6957
2 changed files with 33 additions and 25 deletions

View file

@ -1,8 +1,16 @@
diff --git a/data/meson.build b/data/meson.build diff --git i/data/meson.build w/data/meson.build
index a1fc61f..7c03882 100644 index 6ac2a11..73f433b 100644
--- a/data/meson.build --- i/data/meson.build
+++ b/data/meson.build +++ w/data/meson.build
@@ -7,7 +7,7 @@ if get_option('enable-backend') @@ -1,6 +1,6 @@
if get_option('enable-backend')
conf = configuration_data()
- conf.set('sysconfdir', sysconfdir)
+ conf.set('sysconfdir', sysconfdir_install)
if get_option('demo-agent')
conf.set('demo_agent', 'geoclue-demo-agent;')
@@ -8,7 +8,7 @@ if get_option('enable-backend')
conf.set('demo_agent', '') conf.set('demo_agent', '')
endif endif
@ -11,16 +19,16 @@ index a1fc61f..7c03882 100644
configure_file(output: 'geoclue.conf', configure_file(output: 'geoclue.conf',
input: 'geoclue.conf.in', input: 'geoclue.conf.in',
configuration: conf, configuration: conf,
@@ -16,7 +16,7 @@ if get_option('enable-backend') @@ -17,7 +17,7 @@ if get_option('enable-backend')
conf = configuration_data() conf = configuration_data()
conf.set('libexecdir', libexecdir) conf.set('libexecdir', libexecdir)
conf.set('dbus_srv_user', get_option('dbus-srv-user')) conf.set('dbus_srv_user', get_option('dbus-srv-user'))
- conf.set('sysconfdir', sysconfdir) - conf.set('sysconfdir', sysconfdir)
+ conf.set('sysconfdir', sysconfdir_install) + conf.set('sysconfdir', sysconfdir_install)
service_dir = join_paths(datadir, 'dbus-1', 'system-services') confd_dir = join_paths(conf_dir, 'conf.d')
configure_file(output: 'org.freedesktop.GeoClue2.service', install_emptydir(confd_dir)
@@ -33,7 +33,7 @@ if get_option('enable-backend') @@ -37,7 +37,7 @@ if get_option('enable-backend')
# DBus Service policy file # DBus Service policy file
dbus_service_dir = get_option('dbus-sys-dir') dbus_service_dir = get_option('dbus-sys-dir')
if dbus_service_dir == '' if dbus_service_dir == ''
@ -29,10 +37,10 @@ index a1fc61f..7c03882 100644
endif endif
configure_file(output: 'org.freedesktop.GeoClue2.conf', configure_file(output: 'org.freedesktop.GeoClue2.conf',
input: 'org.freedesktop.GeoClue2.conf.in', input: 'org.freedesktop.GeoClue2.conf.in',
diff --git a/demo/meson.build b/demo/meson.build diff --git i/demo/meson.build w/demo/meson.build
index 1427fbe..2623f16 100644 index 1427fbe..2623f16 100644
--- a/demo/meson.build --- i/demo/meson.build
+++ b/demo/meson.build +++ w/demo/meson.build
@@ -54,7 +54,7 @@ if get_option('demo-agent') @@ -54,7 +54,7 @@ if get_option('demo-agent')
install_dir: desktop_dir) install_dir: desktop_dir)
@ -42,10 +50,10 @@ index 1427fbe..2623f16 100644
meson.add_install_script('install-file.py', meson.add_install_script('install-file.py',
desktop_file.full_path(), desktop_file.full_path(),
autostart_dir) autostart_dir)
diff --git a/meson.build b/meson.build diff --git i/meson.build w/meson.build
index 8aa5c31..b011879 100644 index 220ae2b..dbf6458 100644
--- a/meson.build --- i/meson.build
+++ b/meson.build +++ w/meson.build
@@ -12,7 +12,11 @@ gclue_api_version='2.0' @@ -12,7 +12,11 @@ gclue_api_version='2.0'
datadir = join_paths(get_option('prefix'), get_option('datadir')) datadir = join_paths(get_option('prefix'), get_option('datadir'))
includedir = join_paths(get_option('prefix'), get_option('includedir')) includedir = join_paths(get_option('prefix'), get_option('includedir'))
@ -61,17 +69,17 @@ index 8aa5c31..b011879 100644
header_dir = 'libgeoclue-' + gclue_api_version header_dir = 'libgeoclue-' + gclue_api_version
@@ -29,7 +33,7 @@ conf.set_quoted('PACKAGE_URL', 'https://gitlab.freedesktop.org/geoclue/geoclue/w @@ -29,7 +33,7 @@ conf.set_quoted('PACKAGE_URL', 'https://gitlab.freedesktop.org/geoclue/geoclue/w
conf.set_quoted('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/geoclue/geoclue/issues/new') conf.set_quoted('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/geoclue/geoclue/issues/new')
conf.set_quoted('TEST_SRCDIR', meson.source_root() + '/data/') conf.set_quoted('TEST_SRCDIR', meson.project_source_root() + '/data/')
conf.set_quoted('LOCALEDIR', localedir) conf.set_quoted('LOCALEDIR', localedir)
-conf.set_quoted('SYSCONFDIR', sysconfdir) -conf.set_quoted('SYSCONFDIR', sysconfdir)
+conf.set_quoted('SYSCONFDIR', get_option('sysconfdir')) +conf.set_quoted('SYSCONFDIR', get_option('sysconfdir'))
conf.set_quoted('MOZILLA_API_KEY', get_option('mozilla-api-key')) conf.set_quoted('MOZILLA_API_KEY', get_option('mozilla-api-key'))
conf.set10('GCLUE_USE_3G_SOURCE', get_option('3g-source')) conf.set10('GCLUE_USE_3G_SOURCE', get_option('3g-source'))
conf.set10('GCLUE_USE_CDMA_SOURCE', get_option('cdma-source')) conf.set10('GCLUE_USE_CDMA_SOURCE', get_option('cdma-source'))
diff --git a/meson_options.txt b/meson_options.txt diff --git i/meson_options.txt w/meson_options.txt
index 5b8c42d..945dfd5 100644 index 5b8c42d..945dfd5 100644
--- a/meson_options.txt --- i/meson_options.txt
+++ b/meson_options.txt +++ w/meson_options.txt
@@ -40,6 +40,9 @@ option('systemd-system-unit-dir', @@ -40,6 +40,9 @@ option('systemd-system-unit-dir',
option('dbus-srv-user', option('dbus-srv-user',
type: 'string', value: 'root', type: 'string', value: 'root',

View file

@ -12,7 +12,7 @@
, docbook_xml_dtd_412 , docbook_xml_dtd_412
, glib , glib
, json-glib , json-glib
, libsoup , libsoup_3
, libnotify , libnotify
, gdk-pixbuf , gdk-pixbuf
, modemmanager , modemmanager
@ -27,7 +27,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "geoclue"; pname = "geoclue";
version = "2.6.0"; version = "2.7.0";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
owner = "geoclue"; owner = "geoclue";
repo = "geoclue"; repo = "geoclue";
rev = version; rev = version;
hash = "sha256-TbuO9wpyjtvyvqaCryaTOunR0hVVlJuqENWQQpcMcz4="; hash = "sha256-vzarUg4lBEXYkH+n9SY8SYr0gHUX94PSTDmKd957gyc=";
}; };
patches = [ patches = [
@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
glib glib
json-glib json-glib
libsoup libsoup_3
avahi avahi
gobject-introspection gobject-introspection
] ++ lib.optionals withDemoAgent [ ] ++ lib.optionals withDemoAgent [
@ -101,7 +101,7 @@ stdenv.mkDerivation rec {
broken = stdenv.isDarwin && withDemoAgent; broken = stdenv.isDarwin && withDemoAgent;
description = "Geolocation framework and some data providers"; description = "Geolocation framework and some data providers";
homepage = "https://gitlab.freedesktop.org/geoclue/geoclue/wikis/home"; homepage = "https://gitlab.freedesktop.org/geoclue/geoclue/wikis/home";
maintainers = with maintainers; [ raskin ]; maintainers = with maintainers; [ raskin mimame ];
platforms = with platforms; linux ++ darwin; platforms = with platforms; linux ++ darwin;
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;
}; };