summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-gnome/libsecret/libsecret/0001-meson-add-option-to-disable-pam-tests.patch80
-rw-r--r--meta/recipes-gnome/libsecret/libsecret_0.21.4.bb5
2 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-gnome/libsecret/libsecret/0001-meson-add-option-to-disable-pam-tests.patch b/meta/recipes-gnome/libsecret/libsecret/0001-meson-add-option-to-disable-pam-tests.patch
new file mode 100644
index 0000000000..87ab8a32cd
--- /dev/null
+++ b/meta/recipes-gnome/libsecret/libsecret/0001-meson-add-option-to-disable-pam-tests.patch
@@ -0,0 +1,80 @@
1From b90ecbdb4b91961a77a7cbb3a9b6a57128e2194b Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Tue, 3 Dec 2024 15:58:17 +0100
4Subject: [PATCH] meson: add option to disable pam tests
5
6Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/libsecret/-/merge_requests/151/commits]
7
8Signed-off-by: Markus Volk <f_l_k@t-online.de>
9---
10 meson_options.txt | 1 +
11 pam/meson.build | 44 +++++++++++++++++++++++---------------------
12 2 files changed, 24 insertions(+), 21 deletions(-)
13
14diff --git a/meson_options.txt b/meson_options.txt
15index 936eff8..8fa2a4e 100644
16--- a/meson_options.txt
17+++ b/meson_options.txt
18@@ -8,3 +8,4 @@ option('bashcompdir', type: 'string', value: '', description: 'Override default
19 option('bash_completion', type: 'feature', value: 'auto', description: 'Install bash completion files')
20 option('tpm2', type: 'boolean', value: false, description: 'With TPM2 Software Stack')
21 option('pam', type: 'boolean', value: false, description: 'Build PAM module')
22+option('pam-tests', type: 'boolean', value: true, description: 'Build PAM Tests')
23diff --git a/pam/meson.build b/pam/meson.build
24index 8413b58..5155329 100644
25--- a/pam/meson.build
26+++ b/pam/meson.build
27@@ -19,27 +19,29 @@ pam_gnome_keyring = shared_library('pam_gnome_keyring',
28 )
29
30 # pam tests
31-pam_wrapper = dependency('pam_wrapper', required: true)
32-libpamtest = dependency('libpamtest', required: true)
33+if get_option('pam-tests')
34+ pam_wrapper = dependency('pam_wrapper', required: true)
35+ libpamtest = dependency('libpamtest', required: true)
36
37-subdir('servicedir')
38+ subdir('servicedir')
39
40-test_bin = executable('pam_test',
41- sources: [
42- 'test-pam.c',
43- ],
44- dependencies: [
45- libpamtest,
46- glib_deps,
47- ],
48-)
49+ test_bin = executable('pam_test',
50+ sources: [
51+ 'test-pam.c',
52+ ],
53+ dependencies: [
54+ libpamtest,
55+ glib_deps,
56+ ],
57+ )
58
59-test('pam-test',
60- test_bin,
61- env: {
62- 'LD_PRELOAD': 'libpam_wrapper.so',
63- 'PAM_WRAPPER': '1',
64- 'PAM_WRAPPER_DEBUGLEVEL': '5',
65- 'PAM_WRAPPER_SERVICE_DIR': meson.current_build_dir() + '/servicedir',
66- },
67-)
68+ test('pam-test',
69+ test_bin,
70+ env: {
71+ 'LD_PRELOAD': 'libpam_wrapper.so',
72+ 'PAM_WRAPPER': '1',
73+ 'PAM_WRAPPER_DEBUGLEVEL': '5',
74+ 'PAM_WRAPPER_SERVICE_DIR': meson.current_build_dir() + '/servicedir',
75+ },
76+ )
77+endif
78--
792.47.0
80
diff --git a/meta/recipes-gnome/libsecret/libsecret_0.21.4.bb b/meta/recipes-gnome/libsecret/libsecret_0.21.4.bb
index 88c3c73510..d356681252 100644
--- a/meta/recipes-gnome/libsecret/libsecret_0.21.4.bb
+++ b/meta/recipes-gnome/libsecret/libsecret_0.21.4.bb
@@ -13,11 +13,16 @@ inherit gnomebase gi-docgen vala gobject-introspection manpages
13 13
14DEPENDS += "glib-2.0 libgcrypt gettext-native" 14DEPENDS += "glib-2.0 libgcrypt gettext-native"
15 15
16SRC_URI += "file://0001-meson-add-option-to-disable-pam-tests.patch"
16SRC_URI[archive.sha256sum] = "163d08d783be6d4ab9a979ceb5a4fecbc1d9660d3c34168c581301cd53912b20" 17SRC_URI[archive.sha256sum] = "163d08d783be6d4ab9a979ceb5a4fecbc1d9660d3c34168c581301cd53912b20"
17 18
19EXTRA_OEMESON += "-Dpam-tests=false"
20
18GTKDOC_MESON_OPTION = 'gtk_doc' 21GTKDOC_MESON_OPTION = 'gtk_doc'
19 22
23PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
20PACKAGECONFIG[manpages] = "-Dmanpage=true,-Dmanpage=false,libxslt-native xmlto-native" 24PACKAGECONFIG[manpages] = "-Dmanpage=true,-Dmanpage=false,libxslt-native xmlto-native"
25PACKAGECONFIG[pam] = "-Dpam=true,-Dpam=false,libpam"
21 26
22# http://errors.yoctoproject.org/Errors/Details/20228/ 27# http://errors.yoctoproject.org/Errors/Details/20228/
23ARM_INSTRUCTION_SET:armv4 = "arm" 28ARM_INSTRUCTION_SET:armv4 = "arm"