From d0d5f73e33a349e07598c13c047e78c52f257099 Mon Sep 17 00:00:00 2001 From: jca Date: Wed, 11 Jan 2023 17:46:48 +0000 Subject: [PATCH] Tweak defines to get at the declaration of strptime(3), fixes clang 15 build ok ajacoutot@ (maintainer) --- x11/gnome/gcr/Makefile | 2 +- x11/gnome/gcr/patches/patch-gck_meson_build | 11 +++++++++++ x11/gnome/gcr/patches/patch-gcr_meson_build | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 x11/gnome/gcr/patches/patch-gck_meson_build create mode 100644 x11/gnome/gcr/patches/patch-gcr_meson_build diff --git a/x11/gnome/gcr/Makefile b/x11/gnome/gcr/Makefile index 2ca46b05fd5..931fadd1f3b 100644 --- a/x11/gnome/gcr/Makefile +++ b/x11/gnome/gcr/Makefile @@ -4,7 +4,7 @@ COMMENT= library for bits of crypto UI and parsing GNOME_PROJECT= gcr GNOME_VERSION= 3.41.1 -REVISION= 0 +REVISION= 1 SHARED_LIBS += gck-1 2.1 # 0.0.0 SHARED_LIBS += gcr-base-3 3.1 # 1.0.0 diff --git a/x11/gnome/gcr/patches/patch-gck_meson_build b/x11/gnome/gcr/patches/patch-gck_meson_build new file mode 100644 index 00000000000..0fde51b91dd --- /dev/null +++ b/x11/gnome/gcr/patches/patch-gck_meson_build @@ -0,0 +1,11 @@ +Index: gck/meson.build +--- gck/meson.build.orig ++++ gck/meson.build +@@ -78,6 +78,7 @@ gck_cflags = [ + '-DP11_KIT_API_SUBJECT_TO_CHANGE', + '-DPKCS11_REGISTRY_DIR="@0@"'.format(get_option('prefix') / get_option('libdir') / 'pkcs11'), + '-D_XOPEN_SOURCE', # Needed for strptime() ++ '-D_XOPEN_VERSION=4', # Needed for strptime() + '-D_DEFAULT_SOURCE', # Needed for timegm + ] + diff --git a/x11/gnome/gcr/patches/patch-gcr_meson_build b/x11/gnome/gcr/patches/patch-gcr_meson_build new file mode 100644 index 00000000000..7d50ebf6669 --- /dev/null +++ b/x11/gnome/gcr/patches/patch-gcr_meson_build @@ -0,0 +1,11 @@ +Index: gcr/meson.build +--- gcr/meson.build.orig ++++ gcr/meson.build +@@ -147,6 +147,7 @@ gcr_base_cflags = [ + '-DGCK_API_SUBJECT_TO_CHANGE', + '-DP11_KIT_API_SUBJECT_TO_CHANGE', + '-D_XOPEN_SOURCE', # Needed for strptime() ++ '-D_XOPEN_VERSION=4', # Needed for strptime() + ] + + gcr_base_symbolmap = meson.current_source_dir() / 'libgcr-base.map'