From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] dante: fix --without-pam
Date: Mon, 26 Nov 2018 20:46:47 +0100 [thread overview]
Message-ID: <20181126194647.GK28830@scaer> (raw)
In-Reply-To: <20181126182248.24817-2-fontaine.fabrice@gmail.com>
Fabrice, All,
On 2018-11-26 19:22 +0100, Fabrice Fontaine spake thusly:
> Don't call AC_CHECK_HEADERS(security/pam_appl.h) and
> AC_SEARCH_LIBS(pam_start, pam) if pam is disabled through --without-pam
> otherwise cross-compilation could fail if a pam library is found on host
>
> Fixes:
> - http://autobuild.buildroot.org/results/e37e61bae1d81a7956e2843be70fea84b0bbb64b
That build failure occured on Xogium's autobuilder. When I asked, they
tested my autoreconf patch and it was enough to not tirgger the libpam
issue anymore.
Now, maybe it still makes sense to have that patch, but it would be
better if that was upstreamed first...
Regards,
Yann E. MORIN.
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> .../dante/0003-sharedopt.m4-fix-without-pam.patch | 42 ++++++++++++++++++++++
> package/dante/dante.mk | 2 +-
> 2 files changed, 43 insertions(+), 1 deletion(-)
> create mode 100644 package/dante/0003-sharedopt.m4-fix-without-pam.patch
>
> diff --git a/package/dante/0003-sharedopt.m4-fix-without-pam.patch b/package/dante/0003-sharedopt.m4-fix-without-pam.patch
> new file mode 100644
> index 0000000000..75ef07c134
> --- /dev/null
> +++ b/package/dante/0003-sharedopt.m4-fix-without-pam.patch
> @@ -0,0 +1,42 @@
> +From 0cb78bcb81664a6507b37252ae28818bd1b7de23 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sun, 25 Nov 2018 19:07:39 +0100
> +Subject: [PATCH] sharedopt.m4: fix --without-pam
> +
> +Don't call AC_CHECK_HEADERS(security/pam_appl.h) and
> +AC_SEARCH_LIBS(pam_start, pam) if pam is disabled through --without-pam
> +otherwise cross-compilation could fail if a pam library is found on host
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/e37e61bae1d81a7956e2843be70fea84b0bbb64b
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + sharedopt.m4 | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/sharedopt.m4 b/sharedopt.m4
> +index c0492a6..e8053d0 100644
> +--- a/sharedopt.m4
> ++++ b/sharedopt.m4
> +@@ -115,8 +115,6 @@ int deny_severity;
> + fi
> +
> + unset NOPAM
> +-AC_CHECK_HEADERS(security/pam_appl.h)
> +-AC_SEARCH_LIBS(pam_start, pam)
> + AC_MSG_CHECKING([for pam])
> + AC_ARG_WITH(pam,
> + [ --without-pam disable pam support @<:@default=detect@:>@],
> +@@ -128,6 +126,8 @@ if test x"$NOPAM" != x; then
> + AC_MSG_RESULT([disabled])
> + else
> + #look for PAM header and lib
> ++ AC_CHECK_HEADERS(security/pam_appl.h)
> ++ AC_SEARCH_LIBS(pam_start, pam)
> + if test x"${ac_cv_header_security_pam_appl_h}" = xno; then
> + NOPAM="Disabled, security/pam_appl.h missing"
> + AC_MSG_RESULT([no, usable security/pam_appl.h not found])
> +--
> +2.17.1
> +
> diff --git a/package/dante/dante.mk b/package/dante/dante.mk
> index ff42e7432b..2d448cfc0a 100644
> --- a/package/dante/dante.mk
> +++ b/package/dante/dante.mk
> @@ -9,7 +9,7 @@ DANTE_SITE = http://www.inet.no/dante/files
> DANTE_LICENSE = BSD-3-Clause
> DANTE_LICENSE_FILES = LICENSE
>
> -# We're patching compiler.m4
> +# We're patching compiler.m4 and sharedopt.m4
> DANTE_AUTORECONF = YES
>
> DANTE_CONF_OPTS += --disable-client --disable-preload --without-pam
> --
> 2.14.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2018-11-26 19:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-26 18:22 [Buildroot] [PATCH 1/2] dante: add AUTORECONF=YES Fabrice Fontaine
2018-11-26 18:22 ` [Buildroot] [PATCH 2/2] dante: fix --without-pam Fabrice Fontaine
2018-11-26 19:46 ` Yann E. MORIN [this message]
2018-11-27 22:24 ` Arnout Vandecappelle
2018-11-26 19:43 ` [Buildroot] [PATCH 1/2] dante: add AUTORECONF=YES Yann E. MORIN
2018-11-27 7:17 ` Fabrice Fontaine
2018-11-27 16:33 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181126194647.GK28830@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox