1- From 7b3a00cb0fc27c896dd85c9afc474bd9c2aea30d Mon Sep 17 00:00:00 2001
2- From:
Richard Purdie <[email protected] >
3- Date: Fri, 10 May 2019 14: 23:55 + 0800
1+ From e4e75bee348d297bd8288e6fd7e99ab033cbb90c Mon Sep 17 00:00:00 2001
2+ From:
Hongxu Jia <[email protected] >
3+ Date: Tue, 26 Nov 2024 23:04:52 - 0800
44Subject: [PATCH] pkgconfig
55
66Update gpgme to use pkgconfig instead of -config files since its
@@ -15,30 +15,31 @@ Rebase to 1.13.0
1515Signed-off-by: Hongxu Jia <
[email protected] >
1616Rebase to 1.17.0
1717Signed-off-by: Wang Mingyu <
[email protected] >
18-
18+ Rebase to 1.24.0
19+ Signed-off-by: Hongxu Jia <
[email protected] >
1920---
2021 configure.ac | 1 +
2122 src/Makefile.am | 4 +-
2223 src/gpgme-pthread.pc.in | 15 +++++
23- src/gpgme.m4 | 119 +++-------------------------------------
24+ src/gpgme.m4 | 118 +++-------------------------------------
2425 src/gpgme.pc.in | 4 +-
25- 5 files changed, 29 insertions(+), 114 deletions(-)
26+ 5 files changed, 28 insertions(+), 114 deletions(-)
2627 create mode 100644 src/gpgme-pthread.pc.in
2728
2829diff --git a/configure.ac b/configure.ac
29- index ae4c7da..df892c9 100644
30+ index 933fb150..08589a6b 100644
3031--- a/configure.ac
3132+++ b/configure.ac
32- @@ -1112 ,6 +1112 ,7 @@ AC_CONFIG_FILES(Makefile src/Makefile
33+ @@ -1160 ,6 +1160 ,7 @@ AC_CONFIG_FILES(Makefile src/Makefile
3334 src/gpgme-glib.pc
3435 src/gpgme.h)
3536 AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config)
3637+ AC_CONFIG_FILES(src/gpgme-pthread.pc)
3738 AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile)
3839 AC_CONFIG_FILES(lang/cpp/tests/Makefile)
39- AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig-w32.cmake.in )
40+ AC_CONFIG_FILES(lang/cpp/src/gpgmepp.pc )
4041diff --git a/src/Makefile.am b/src/Makefile.am
41- index ca70950..bda5498 100644
42+ index 03708620..e716ce4d 100644
4243--- a/src/Makefile.am
4344+++ b/src/Makefile.am
4445@@ -20,11 +20,11 @@
@@ -57,7 +58,7 @@ index ca70950..bda5498 100644
5758 noinst_SCRIPTS = gpgme-config
5859diff --git a/src/gpgme-pthread.pc.in b/src/gpgme-pthread.pc.in
5960new file mode 100644
60- index 0000000..074bbf6
61+ index 00000000..074bbf6e
6162--- /dev/null
6263+++ b/src/gpgme-pthread.pc.in
6364@@ -0,0 +1,15 @@
@@ -77,19 +78,18 @@ index 0000000..074bbf6
7778+ Cflags: -I${includedir}
7879+ Requires: libassuan gpg-error
7980diff --git a/src/gpgme.m4 b/src/gpgme.m4
80- index 8cc2898..0ff550e 100644
81+ index 5f689e18..249e8c98 100644
8182--- a/src/gpgme.m4
8283+++ b/src/gpgme.m4
83- @@ -168,7 +168,7 @@ dnl config script does not match the host specification the script
84- dnl is added to the gpg_config_script_warn variable.
84+ @@ -166,7 +166,6 @@ dnl is added to the gpg_config_script_warn variable.
8585 dnl
8686 AC_DEFUN([AM_PATH_GPGME],
87- - [ AC_REQUIRE([_AM_PATH_GPGME_CONFIG ])dnl
88- + [
87+ [ AC_REQUIRE([AC_CANONICAL_HOST ])dnl
88+ - AC_REQUIRE([_AM_PATH_GPGME_CONFIG])dnl
8989 tmp=ifelse([$1], ,1:0.4.2,$1)
9090 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9191 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
92- @@ -178 ,36 +178 ,12 @@ AC_DEFUN([AM_PATH_GPGME],
92+ @@ -176 ,36 +175 ,12 @@ AC_DEFUN([AM_PATH_GPGME],
9393 min_gpgme_version="$tmp"
9494 fi
9595
@@ -128,7 +128,7 @@ index 8cc2898..0ff550e 100644
128128 if test "$tmp" -gt 0 ; then
129129 if test "$req_gpgme_api" -ne "$tmp" ; then
130130 ok=no
131- @@ -216 ,19 +192 ,11 @@ AC_DEFUN([AM_PATH_GPGME],
131+ @@ -214 ,19 +189 ,11 @@ AC_DEFUN([AM_PATH_GPGME],
132132 fi
133133 fi
134134 if test $ok = yes; then
@@ -148,7 +148,7 @@ index 8cc2898..0ff550e 100644
148148 ])
149149
150150 dnl AM_PATH_GPGME_PTHREAD([MINIMUM-VERSION,
151- @@ -236 ,9 +204 ,8 @@ dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
151+ @@ -234 ,9 +201 ,8 @@ dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
152152 dnl Test for libgpgme and define GPGME_PTHREAD_CFLAGS
153153 dnl and GPGME_PTHREAD_LIBS.
154154 dnl
@@ -160,7 +160,7 @@ index 8cc2898..0ff550e 100644
160160 tmp=ifelse([$1], ,1:0.4.2,$1)
161161 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
162162 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
163- @@ -248 ,40 +215 ,12 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD],[
163+ @@ -246 ,40 +212 ,12 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD],[
164164 min_gpgme_version="$tmp"
165165 fi
166166
@@ -203,7 +203,7 @@ index 8cc2898..0ff550e 100644
203203 if test "$tmp" -gt 0 ; then
204204 if test "$req_gpgme_api" -ne "$tmp" ; then
205205 ok=no
206- @@ -290 ,19 +229 ,11 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD],[
206+ @@ -288 ,19 +226 ,11 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD],[
207207 fi
208208 fi
209209 if test $ok = yes; then
@@ -223,7 +223,7 @@ index 8cc2898..0ff550e 100644
223223 ])
224224
225225
226- @@ -321 ,36 +252 ,12 @@ AC_DEFUN([AM_PATH_GPGME_GLIB],
226+ @@ -319 ,36 +249 ,12 @@ AC_DEFUN([AM_PATH_GPGME_GLIB],
227227 min_gpgme_version="$tmp"
228228 fi
229229
@@ -262,7 +262,7 @@ index 8cc2898..0ff550e 100644
262262 if test "$tmp" -gt 0 ; then
263263 if test "$req_gpgme_api" -ne "$tmp" ; then
264264 ok=no
265- @@ -359 ,17 +266 ,9 @@ AC_DEFUN([AM_PATH_GPGME_GLIB],
265+ @@ -357 ,17 +263 ,9 @@ AC_DEFUN([AM_PATH_GPGME_GLIB],
266266 fi
267267 fi
268268 if test $ok = yes; then
@@ -281,7 +281,7 @@ index 8cc2898..0ff550e 100644
281281- AC_SUBST(GPGME_GLIB_LIBS)
282282 ])
283283diff --git a/src/gpgme.pc.in b/src/gpgme.pc.in
284- index 9ddef5c..932645b 100644
284+ index 9ddef5cd..932645be 100644
285285--- a/src/gpgme.pc.in
286286+++ b/src/gpgme.pc.in
287287@@ -9,6 +9,6 @@ Name: gpgme
@@ -293,3 +293,6 @@ index 9ddef5c..932645b 100644
293293+ Cflags: -I${includedir}
294294+ Libs: -L${libdir} -lgpgme
295295 URL: https://www.gnupg.org/software/gpgme/index.html
296+ - -
297+ 2.25.1
298+
0 commit comments