diff options
author | 2021-01-07 23:20:12 -0500 | |
---|---|---|
committer | 2021-01-08 11:23:53 -0500 | |
commit | 1e4e3d89728cc93439b3c72872779f9a88a661bb (patch) | |
tree | dfaf7029b9b1e394a3690971904950e1da2b75a2 /app-crypt/gcr/files | |
parent | media-libs/libjpeg-turbo: marked ~{x86,x64}-solaris (diff) | |
download | gentoo-1e4e3d89728cc93439b3c72872779f9a88a661bb.tar.gz gentoo-1e4e3d89728cc93439b3c72872779f9a88a661bb.tar.bz2 gentoo-1e4e3d89728cc93439b3c72872779f9a88a661bb.zip |
app-crypt/gcr: Version bump to 3.38.0
Closes: https://bugs.gentoo.org/751346
Closes: https://bugs.gentoo.org/762799
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'app-crypt/gcr/files')
-rw-r--r-- | app-crypt/gcr/files/3.38.0-avoid-gnupg-circular-dep.patch | 52 | ||||
-rw-r--r-- | app-crypt/gcr/files/3.38.0-optional-vapi.patch | 88 |
2 files changed, 140 insertions, 0 deletions
diff --git a/app-crypt/gcr/files/3.38.0-avoid-gnupg-circular-dep.patch b/app-crypt/gcr/files/3.38.0-avoid-gnupg-circular-dep.patch new file mode 100644 index 000000000000..5bb7da0fa787 --- /dev/null +++ b/app-crypt/gcr/files/3.38.0-avoid-gnupg-circular-dep.patch @@ -0,0 +1,52 @@ +From b938b0b658852c682ae17d56e0ad9322611e9516 Mon Sep 17 00:00:00 2001 +From: Rasmus Thomsen <oss@cogitri.dev> +Date: Wed, 11 Mar 2020 11:49:08 +0100 +Subject: [PATCH 1/2] meson: allow building without gpg(2) installed + +This avoids circular dependencies, such as gcr -> gpg2 -> pinentry -> gcr +--- + meson.build | 7 +++++-- + meson_options.txt | 5 +++++ + 2 files changed, 10 insertions(+), 2 deletions(-) + +diff --git a/meson.build b/meson.build +index a26a0f9..02b4c3c 100644 +--- a/meson.build ++++ b/meson.build +@@ -41,7 +41,10 @@ gobject_dep = dependency('gobject-2.0', version: '>=' + min_glib_version) + gio_dep = dependency('gio-2.0', version: '>=' + min_glib_version) + gio_unix_dep = dependency('gio-unix-2.0',version: '>=' + min_glib_version) + glib_deps = [ glib_dep, gmodule_dep, gthread_dep, gobject_dep, gio_dep, gio_unix_dep, ] +-gpg_bin = find_program('gpg2', 'gpg') ++gpg_path = get_option('gpg_path') ++if gpg_path == '' ++ gpg_path = find_program('gpg2', 'gpg').path() ++endif + libgcrypt_dep = dependency('libgcrypt', version: '>= 1') + p11kit_dep = dependency('p11-kit-1', version: '>= 0.19.0') + p11_system_config_modules = p11kit_dep.get_pkgconfig_variable('p11_system_config_modules') +@@ -65,7 +68,7 @@ conf.set('HAVE_GETTEXT', true) + conf.set('HAVE_LOCALE_H', cc.has_header('locale.h')) + conf.set('HAVE_TIMEGM', cc.has_function('timegm')) + conf.set('HAVE_MLOCK', cc.has_function('mlock')) +-conf.set_quoted('GPG_EXECUTABLE', gpg_bin.path()) ++conf.set_quoted('GPG_EXECUTABLE', gpg_path) + conf.set_quoted('LIBGCRYPT_VERSION', libgcrypt_dep.version()) + config_file = configure_file( + output: 'config.h', +diff --git a/meson_options.txt b/meson_options.txt +index bbdc8e3..ae0f524 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -13,3 +13,8 @@ option('gtk_doc', + value: true, + description: 'Build the reference documentation (requires gtk-doc)', + ) ++option('gpg_path', ++ type: 'string', ++ value: '', ++ description: 'Path to gpg, autodetected if not set', ++) +-- +2.26.2 + diff --git a/app-crypt/gcr/files/3.38.0-optional-vapi.patch b/app-crypt/gcr/files/3.38.0-optional-vapi.patch new file mode 100644 index 000000000000..d565884994fd --- /dev/null +++ b/app-crypt/gcr/files/3.38.0-optional-vapi.patch @@ -0,0 +1,88 @@ +From 6d61774b8556eb4acfa5e7613ee25893d2a7e565 Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp <leio@gentoo.org> +Date: Tue, 18 Aug 2020 09:36:19 +0300 +Subject: [PATCH 2/2] build: Make vapi optional + +--- + gck/meson.build | 2 ++ + gcr/meson.build | 2 ++ + meson_options.txt | 5 +++++ + ui/meson.build | 2 ++ + 4 files changed, 11 insertions(+) + +diff --git a/gck/meson.build b/gck/meson.build +index 756b486..a15f4ed 100644 +--- a/gck/meson.build ++++ b/gck/meson.build +@@ -142,6 +142,7 @@ if get_option('introspection') + install: true, + ) + ++if get_option('vapi') + gck_vapi = gnome.generate_vapi('gck-@0@'.format(gck_major_version), + sources: gck_gir[0], + metadata_dirs: meson.current_source_dir(), +@@ -153,6 +154,7 @@ if get_option('introspection') + install_dir: get_option('datadir') / 'vala' / 'vapi', + ) + endif ++endif + + # pkg-config file + pkgconfig.generate(gck_lib, +diff --git a/gcr/meson.build b/gcr/meson.build +index 06c3a63..cc642cf 100644 +--- a/gcr/meson.build ++++ b/gcr/meson.build +@@ -204,6 +204,7 @@ if get_option('introspection') + install: true, + ) + ++if get_option('vapi') + gcr_vapi = gnome.generate_vapi('gcr-@0@'.format(gcr_major_version), + sources: gcr_gir[0], + packages: [ 'glib-2.0', 'gio-2.0', gck_vapi ], +@@ -217,6 +218,7 @@ if get_option('introspection') + install: true, + ) + endif ++endif + + # pkg-config file + pkgconfig.generate(gcr_base_lib, +diff --git a/meson_options.txt b/meson_options.txt +index ae0f524..f68cb95 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -18,3 +18,8 @@ option('gpg_path', + value: '', + description: 'Path to gpg, autodetected if not set', + ) ++option('vapi', ++ type: 'boolean', ++ value: true, ++ description: 'Generate vapi data (requires vapigen and introspection option)', ++) +diff --git a/ui/meson.build b/ui/meson.build +index 477412d..0b89b24 100644 +--- a/ui/meson.build ++++ b/ui/meson.build +@@ -169,6 +169,7 @@ if get_option('introspection') + install: true, + ) + ++if get_option('vapi') + gcr_ui_vapi = gnome.generate_vapi('gcr-ui-@0@'.format(gcr_major_version), + sources: gcr_ui_gir[0], + packages: [ +@@ -190,6 +191,7 @@ if get_option('introspection') + install: true, + ) + endif ++endif + + # gcr-viewer + gcr_viewer = executable('gcr-viewer', +-- +2.26.2 + |