Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] syslog-ng: Specify location of libesmtp
Date: Tue, 20 Oct 2015 20:57:28 +0200	[thread overview]
Message-ID: <20151020205728.6f2d2332@gmx.net> (raw)
In-Reply-To: <1445328991-29416-1-git-send-email-judge.packham@gmail.com>

Hello Chris,

On Tue, 20 Oct 2015 21:16:31 +1300, Chris Packham <judge.packham@gmail.com> wrote:

> If --with-libesmtp is omitted a host tool is invoked to detect the
> location of the library and headers, which is obviously the wrong thing
> for a cross-compile environment. Explicitly add --with-libesmtp to
> resolve this.
> 
> Fixes:
> http://git.buildroot.net/buildroot/commit/?id=539acb7500588d0a277357cf831c9f25f770578d
> http://git.buildroot.net/buildroot/commit/?id=01f41585a78406f6e830d5eaf4413a983812a299
> 
> Signed-off-by: Chris Packham <judge.packham@gmail.com>
> ---
>  package/syslog-ng/syslog-ng.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/syslog-ng/syslog-ng.mk b/package/syslog-ng/syslog-ng.mk
> index 7371060..2bbace8 100644
> --- a/package/syslog-ng/syslog-ng.mk
> +++ b/package/syslog-ng/syslog-ng.mk
> @@ -37,6 +37,7 @@ endif
>  ifeq ($(BR2_PACKAGE_LIBESMTP),y)
>  SYSLOG_NG_DEPENDENCIES += libesmtp
>  SYSLOG_NG_CONF_OPTS += --enable-smtp
> +SYSLOG_NG_CONF_OPTS += --with-libesmtp="$(STAGING_DIR)/usr"
>  else
>  SYSLOG_NG_CONF_OPTS += --disable-smtp
>  endif

The buildroot package libestmp provides a libesmtp-config script, but
it is installed into

	host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/bin/libesmtp-config

where it is not found by the syslog-ng configure script... 

Would a more portable solution be to add this search path (or fix the install
location of libestmp-config) for the syslog-ng configure call (libesmtp-config
--libs gives '-pthread -L[...]/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib
-lesmtp -lssl -lcrypto -ldl')?

Regards,
Peter

  parent reply	other threads:[~2015-10-20 18:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-20  8:16 [Buildroot] [PATCH] syslog-ng: Specify location of libesmtp Chris Packham
2015-10-20  9:36 ` Peter Korsgaard
2015-10-20  9:40   ` Chris Packham
2015-10-20 10:03     ` Peter Korsgaard
2015-10-20 18:57 ` Peter Seiderer [this message]
2015-10-20 19:32   ` Peter Korsgaard
2015-10-21  7:41     ` Chris Packham
2015-10-21  8:27       ` Thomas Petazzoni
2015-10-21  9:45         ` Peter Korsgaard

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=20151020205728.6f2d2332@gmx.net \
    --to=ps.report@gmx.net \
    --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