summaryrefslogtreecommitdiffstats
path: root/recipes-containers/skopeo/files/0001-Makefile-use-pkg-config-instead-of-gpgme-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/skopeo/files/0001-Makefile-use-pkg-config-instead-of-gpgme-config.patch')
-rw-r--r--recipes-containers/skopeo/files/0001-Makefile-use-pkg-config-instead-of-gpgme-config.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-containers/skopeo/files/0001-Makefile-use-pkg-config-instead-of-gpgme-config.patch b/recipes-containers/skopeo/files/0001-Makefile-use-pkg-config-instead-of-gpgme-config.patch
new file mode 100644
index 00000000..f12734c9
--- /dev/null
+++ b/recipes-containers/skopeo/files/0001-Makefile-use-pkg-config-instead-of-gpgme-config.patch
@@ -0,0 +1,35 @@
1From 4f60614b51df50f5d28495cf2e270dd6ab5fea7d Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@gmail.com>
3Date: Tue, 25 May 2021 13:42:56 -0400
4Subject: [PATCH] Makefile: use pkg-config instead of gpgme-config
5
6OE taints gpgme-config to produce the following flag when called:
7
8 --should-not-have-used-/usr/bin/gpgme-config
9
10Which breaks the build. We change to use pkg-config, and skopeo
11builds as it did before.
12
13Upstream-Status: inappropriate OE specific
14
15Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
16---
17 Makefile | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/src/import/Makefile b/src/import/Makefile
21index 6bacd12e..8a94b236 100644
22--- a/src/import/Makefile
23+++ b/src/import/Makefile
24@@ -8,7 +8,7 @@ export GOPROXY=https://proxy.golang.org
25 # supports only pkg-config, not general shell scripts, and gpgme does not install a pkg-config file.
26 # If gpgme is not installed or gpgme-config can’t be found for other reasons, the error is silently ignored
27 # (and the user will probably find out because the cgo compilation will fail).
28-GPGME_ENV := CGO_CFLAGS="$(shell gpgme-config --cflags 2>/dev/null)" CGO_LDFLAGS="$(shell gpgme-config --libs 2>/dev/null)"
29+GPGME_ENV := CGO_CFLAGS="$(shell pkg-config gpgme --cflags 2>/dev/null)" CGO_LDFLAGS="$(shell pkg-config gpgme --libs 2>/dev/null)"
30
31 # Normally empty, DESTDIR can be used to relocate the entire install-tree
32 DESTDIR ?=
33--
342.19.1
35