summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gcr/gcr_4.4.0.1.bb
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-08-08 13:44:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-11 18:04:25 +0100
commit660b68d5f8eac95c2f34b1eb7cdec8744d186d74 (patch)
treec26d59200a3b8676a4686d56f6cb1e889b1eb2d0 /meta/recipes-gnome/gcr/gcr_4.4.0.1.bb
parentfb94528d8fefa5e87adb74b1eef650763e9421ad (diff)
downloadpoky-660b68d5f8eac95c2f34b1eb7cdec8744d186d74.tar.gz
gcr: upgrade 4.3.1 -> 4.4.0.1
Due to a version number that has 4 sections, the recipe needs to override gnome_gverdir function from gnomebase.bbclass to construct a valid download url. Changelog: gcr 4.4.0.1: - meson: Fix gck vesion gcr 4.4.0: - gcr: Add OID for Extended Key Usage - gcr: Avoid g_strv_builder_unref_to_strv() - gck: Disable parallel tests using gck-mock module - meson: Do a stricter check on GLib version - gcr: Support parsing ed25519 SSH public keys - Updated translations gcr 4.3.90.3: - ci: Another tarball publish fix gcr 4.3.90.2: - meson: fix library version gcr 4.3.90.1: - ci: Tarball publish fix gcr 4.3.90: - gcr: Add new GcrCertificateExtension API - gcr: Vala override for CertificateField.get_value - Fix meson test failures in FIPS mode - doap: Remove invalid maintainer entry - tests: Replace echo -n by printf - build: Avoid redundant libegg linking into gck tests - build: Fix some GLib/GTK deprecation warnings - ssh-agent: Request rsa-sha2-256 signature in tests - Updated translations gcr 4.3.91: - Several updates to the CI - gcr: Implement Certificate Policies extension - gcr: Implement Authority Information Access (AIA) extension - gcr: Implement Authority Key Identifier extension - gcr: Implement CRL Distribution Points extension - gcr: Add GcrGeneralNames helper object - gck: Add missing finish-func annotation to gck_slot_open_session_full_async - Migrate away from g_assert() in some unit tests - Updated translations (From OE-Core rev: 32e9d178c114bd315cbbd5f00c00ec064ead5102) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gcr/gcr_4.4.0.1.bb')
-rw-r--r--meta/recipes-gnome/gcr/gcr_4.4.0.1.bb66
1 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gcr/gcr_4.4.0.1.bb b/meta/recipes-gnome/gcr/gcr_4.4.0.1.bb
new file mode 100644
index 0000000000..25c394c9d0
--- /dev/null
+++ b/meta/recipes-gnome/gcr/gcr_4.4.0.1.bb
@@ -0,0 +1,66 @@
1SUMMARY = "A library for bits of crypto UI and parsing etc"
2DESCRIPTION = "GCR is a library for displaying certificates, and crypto UI, \
3accessing key stores. It also provides the viewer for crypto files on the \
4GNOME desktop."
5HOMEPAGE = "https://gitlab.gnome.org/GNOME/gcr"
6BUGTRACKER = "https://gitlab.gnome.org/GNOME/gcr/issues"
7
8LICENSE = "LGPL-2.0-only"
9LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
10
11DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \
12 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', '', d)}"
13
14CFLAGS += "-D_GNU_SOURCE"
15
16GTKDOC_MESON_OPTION = "gtk_doc"
17inherit gnomebase gtk-icon-cache gi-docgen features_check vala gobject-introspection gettext mime mime-xdg
18UPSTREAM_CHECK_REGEX = "gcr-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
19
20REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}"
21
22SRC_URI[archive.sha256sum] = "0c3c341e49f9f4f2532a4884509804190a0c2663e6120360bb298c5d174a8098"
23
24PACKAGECONFIG ??= " \
25 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
26 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'gtk', '', d)} \
28 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} \
29"
30PACKAGECONFIG[gtk] = "-Dgtk4=true,-Dgtk4=false,gtk4"
31PACKAGECONFIG[ssh_agent] = "-Dssh_agent=true,-Dssh_agent=false,libsecret,openssh"
32#'Use systemd socket activation for server programs'
33PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
34PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false,"
35
36FILES:${PN} += " \
37 ${datadir}/dbus-1 \
38 ${datadir}/gcr-4 \
39 ${systemd_user_unitdir}/gcr-ssh-agent.socket \
40 ${systemd_user_unitdir}/gcr-ssh-agent.service \
41"
42
43# http://errors.yoctoproject.org/Errors/Details/20229/
44ARM_INSTRUCTION_SET:armv4 = "arm"
45ARM_INSTRUCTION_SET:armv5 = "arm"
46ARM_INSTRUCTION_SET:armv6 = "arm"
47
48EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross"
49
50do_write_config:append() {
51 cat >${WORKDIR}/meson-${PN}.cross <<EOF
52[binaries]
53gpg = '${bindir}/gpg'
54ssh-add = '${bindir}/ssh-add'
55ssh-agent = '${bindir}/ssh-agent'
56EOF
57}
58
59# gnome_verdir is coming from gnomebase.bbclass, which seems to work
60# with gcr as long as its version has 3 sections (x.y.z).
61# This version is 4.4.0.1 - add a custom version parser, otherwise the
62# original parser constructs invalid download URL.
63# It can be removed with the next update, when/if the version has only
64# 3 sections again.
65def gnome_verdir(v):
66 return ".".join(v.split(".")[:2]) or v