[gnome-build-meta/alatiera/more-soup3: 4/4] core-deps/mogwai: Update to 0.3.0 and build with soup3
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/alatiera/more-soup3: 4/4] core-deps/mogwai: Update to 0.3.0 and build with soup3
- Date: Tue, 20 Sep 2022 15:12:17 +0000 (UTC)
commit 697219a403cf2e7542f1ba6b462ef737dcb8028e
Author: Jordan Petridis <jordan centricular com>
Date: Sun Sep 18 17:34:43 2022 +0300
core-deps/mogwai: Update to 0.3.0 and build with soup3
Part-of: <https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/1772>
elements/core-deps/libgsystemservice.bst | 17 ++++++
elements/core-deps/mogwai.bst | 11 +++-
.../9b2fad24f954af6b8b1036a75f95ca965279a10b.patch | 61 ++++++++++++++++++++++
3 files changed, 87 insertions(+), 2 deletions(-)
---
diff --git a/elements/core-deps/libgsystemservice.bst b/elements/core-deps/libgsystemservice.bst
new file mode 100644
index 000000000..83d3ad9b9
--- /dev/null
+++ b/elements/core-deps/libgsystemservice.bst
@@ -0,0 +1,17 @@
+kind: meson
+
+sources:
+- kind: git_tag
+ url: gnome_gitlab:pwithnall/libgsystemservice.git
+ track: 0.2.0
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
+- sdk/gtk-doc.bst
+- sdk/gobject-introspection.bst
+
+depends:
+- sdk/glib.bst
+- freedesktop-sdk.bst:components/polkit.bst
+- freedesktop-sdk.bst:components/systemd.bst
+- freedesktop-sdk.bst:bootstrap-import.bst
diff --git a/elements/core-deps/mogwai.bst b/elements/core-deps/mogwai.bst
index d4e45c714..10f304d6d 100644
--- a/elements/core-deps/mogwai.bst
+++ b/elements/core-deps/mogwai.bst
@@ -2,14 +2,21 @@ kind: meson
sources:
- kind: tar
- url: github_files:endlessm/mogwai/archive/Release_3.9.4.tar.gz
+ url: github_files:endlessm/mogwai/archive/refs/tags/Version_0.3.0.tar.gz
+- kind: patch
+ path: files/mogwai/9b2fad24f954af6b8b1036a75f95ca965279a10b.patch
build-depends:
- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
depends:
- core-deps/NetworkManager.bst
+- core-deps/libgsystemservice.bst
- sdk/glib.bst
-- sdk/libsoup-2.4.bst
+- sdk/libsoup.bst
- freedesktop-sdk.bst:components/systemd.bst
- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+ meson-local: >-
+ -Dsoup2=false
diff --git a/files/mogwai/9b2fad24f954af6b8b1036a75f95ca965279a10b.patch
b/files/mogwai/9b2fad24f954af6b8b1036a75f95ca965279a10b.patch
new file mode 100644
index 000000000..2ead30cc3
--- /dev/null
+++ b/files/mogwai/9b2fad24f954af6b8b1036a75f95ca965279a10b.patch
@@ -0,0 +1,61 @@
+From 9b2fad24f954af6b8b1036a75f95ca965279a10b Mon Sep 17 00:00:00 2001
+From: Philip Withnall <pwithnall endlessos org>
+Date: Thu, 30 Jun 2022 19:58:23 +0100
+Subject: [PATCH] Revert "mogwai-scheduled: Fix dependency name for systemd"
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This reverts commit ed84c69746e6aa3da963d0064032c9271dd7a221, and
+additionally changes the CI config to install the package providing
+`systemd.pc`, which was missing before. `libsystemd-dev` needs to be
+kept as a dependency, as `libsystemd.so` is actually used by
+the libgsystemservice subproject. The CI build uses libgsystemservice as
+a subproject as it’s not available on Debian Unstable at the moment.
+
+The pkg-config name was correct before. Both `libsystemd.pc` and
+`systemd.pc` exist, but `systemd.pc` is the one which defines all
+systemd’s directory paths and variables. `libsystemd.pc` is just for the
+cflags/libs for linking to libsystemd.
+
+Unsure how I managed to get this commit working before.
+
+Signed-off-by: Philip Withnall <pwithnall endlessos org>
+---
+ .gitlab-ci.yml | 2 +-
+ mogwai-scheduled/meson.build | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
+index ae646a3..493abcb 100644
+--- a/.gitlab-ci.yml
++++ b/.gitlab-ci.yml
+@@ -7,7 +7,7 @@ before_script:
+ libgirepository1.0-dev libglib2.0-dev libsystemd-dev
+ libsoup-3.0-dev libnm-dev lcov python3-dbusmock
+ git gettext libelf-dev libmount-dev libpcre3-dev
+- libselinux1-dev zlib1g-dev libffi-dev
++ libselinux1-dev zlib1g-dev libffi-dev systemd
+ - export LANG=C.UTF-8
+
+ stages:
+diff --git a/mogwai-scheduled/meson.build b/mogwai-scheduled/meson.build
+index 8aaea1c..5201e71 100644
+--- a/mogwai-scheduled/meson.build
++++ b/mogwai-scheduled/meson.build
+@@ -39,13 +39,13 @@ configure_file(
+ configure_file(
+ input: 'mogwai-scheduled.conf.in',
+ output: 'mogwai-scheduled.conf',
+- install_dir: dependency('libsystemd').get_pkgconfig_variable('sysusersdir'),
++ install_dir: dependency('systemd').get_pkgconfig_variable('sysusersdir'),
+ configuration: config,
+ )
+ configure_file(
+ input: 'mogwai-scheduled.service.in',
+ output: 'mogwai-scheduled.service',
+- install_dir: dependency('libsystemd').get_pkgconfig_variable('systemdsystemunitdir'),
++ install_dir: dependency('systemd').get_pkgconfig_variable('systemdsystemunitdir'),
+ configuration: config,
+ )
+ configure_file(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]