summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-01 22:46:54 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-05 22:49:34 -0700
commit9502097f2fe2136b0708324bcbf67c628fca372e (patch)
tree764f57e6d8b804526af8052d49b2618af0f8fa50
parente5b867e1a899f797f9b92ff19824dd4436e4559d (diff)
downloadmeta-openembedded-9502097f2fe2136b0708324bcbf67c628fca372e.tar.gz
pam-ssh-agent-auth: Fix __progname configure check
This check needs to include stdio.h for printf() API to work otherwise test fails. Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/pam/pam-ssh-agent-auth/0001-configure-Include-stdio.h-for-printf.patch37
-rw-r--r--meta-oe/recipes-extended/pam/pam-ssh-agent-auth_0.10.3.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/pam/pam-ssh-agent-auth/0001-configure-Include-stdio.h-for-printf.patch b/meta-oe/recipes-extended/pam/pam-ssh-agent-auth/0001-configure-Include-stdio.h-for-printf.patch
new file mode 100644
index 0000000000..c9e2760a27
--- /dev/null
+++ b/meta-oe/recipes-extended/pam/pam-ssh-agent-auth/0001-configure-Include-stdio.h-for-printf.patch
@@ -0,0 +1,37 @@
1From a0ae303fe0bcd81dfb1a649cc5e7a372d3bd878d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 20:44:42 -0700
4Subject: [PATCH] configure: Include stdio.h for printf
5
6Fixes test for __progname
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 configure.ac | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14--- a/configure.ac
15+++ b/configure.ac
16@@ -2791,7 +2791,9 @@ if test "x$ac_cv_have_control_in_msghdr"
17 fi
18
19 AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
20- AC_TRY_LINK([],
21+ AC_TRY_LINK([
22+#include <stdio.h>
23+],
24 [ extern char *__progname; printf("%s", __progname); ],
25 [ ac_cv_libc_defines___progname="yes" ],
26 [ ac_cv_libc_defines___progname="no" ]
27--- a/configure
28+++ b/configure
29@@ -14838,7 +14838,7 @@ else
30
31 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32 /* end confdefs.h. */
33-
34+#include <stdio.h>
35 int
36 main ()
37 {
diff --git a/meta-oe/recipes-extended/pam/pam-ssh-agent-auth_0.10.3.bb b/meta-oe/recipes-extended/pam/pam-ssh-agent-auth_0.10.3.bb
index 7065529326..b5bcc63339 100644
--- a/meta-oe/recipes-extended/pam/pam-ssh-agent-auth_0.10.3.bb
+++ b/meta-oe/recipes-extended/pam/pam-ssh-agent-auth_0.10.3.bb
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.OpenSSL;md5=8ab01146141ded59b75f8ba7811ed05a
10SRC_URI = "http://sourceforge.net/projects/pamsshagentauth/files/pam_ssh_agent_auth/v${PV}/pam_ssh_agent_auth-${PV}.tar.bz2 \ 10SRC_URI = "http://sourceforge.net/projects/pamsshagentauth/files/pam_ssh_agent_auth/v${PV}/pam_ssh_agent_auth-${PV}.tar.bz2 \
11 file://0001-Adapt-to-OpenSSL-1.1.1.patch \ 11 file://0001-Adapt-to-OpenSSL-1.1.1.patch \
12 file://0002-Check-against-the-correct-OPENSSL_VERSION_NUMBER.patch \ 12 file://0002-Check-against-the-correct-OPENSSL_VERSION_NUMBER.patch \
13 file://0001-configure-Include-stdio.h-for-printf.patch \
13 " 14 "
14SRC_URI[md5sum] = "8dbe90ab3625e545036333e6f51ccf1d" 15SRC_URI[md5sum] = "8dbe90ab3625e545036333e6f51ccf1d"
15SRC_URI[sha256sum] = "3c53d358d6eaed1b211239df017c27c6f9970995d14102ae67bae16d4f47a763" 16SRC_URI[sha256sum] = "3c53d358d6eaed1b211239df017c27c6f9970995d14102ae67bae16d4f47a763"