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 1/1] package/iwd: fix static build with readline
Date: Sun, 27 Dec 2020 18:24:45 +0100	[thread overview]
Message-ID: <20201227182445.322532fa@gmx.net> (raw)
In-Reply-To: <20201216070409.142699-1-fontaine.fabrice@gmail.com>

Hello Fabrice,

On Wed, 16 Dec 2020 08:04:09 +0100, Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fixes:
>  - http://autobuild.buildroot.org/results/8fb1341f2f5094c346456b43b4fc04996c2e1485
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...re.ac-fix-static-build-with-readline.patch | 61 +++++++++++++++++++
>  1 file changed, 61 insertions(+)
>  create mode 100644 package/iwd/0001-configure.ac-fix-static-build-with-readline.patch
>
> diff --git a/package/iwd/0001-configure.ac-fix-static-build-with-readline.patch b/package/iwd/0001-configure.ac-fix-static-build-with-readline.patch
> new file mode 100644
> index 0000000000..37dbdb18e5
> --- /dev/null
> +++ b/package/iwd/0001-configure.ac-fix-static-build-with-readline.patch
> @@ -0,0 +1,61 @@
> +From 358e0755c3a434d7a815519b8c10ae5d347caad0 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Wed, 16 Dec 2020 07:51:04 +0100
> +Subject: [PATCH] configure.ac: fix static build with readline
> +
> +Retrieve the dependencies of readline through pkg-config (and fallback
> +to -lreadline) to avoid the following build failure:
> +
> +/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: /nvme/rc-buildroot-test/scripts/instance-0/output-1/host/bin/../x86_64-buildroot-linux-uclibc/sysroot/usr/lib/libreadline.a(display.o): in function `cr':
> +display.c:(.text+0x1ab): undefined reference to `tputs'
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/8fb1341f2f5094c346456b43b4fc04996c2e1485
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status:
> +https://lists.01.org/hyperkitty/list/iwd at lists.01.org/thread/NFI4P52Y65T6XX7S7DGIVDMZISNQWUUC/]

Accepted upstream, see [1]...

Reviewed-by: Peter Seiderer <ps.report@gmx.net>

Regards,
Peter

[1] https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/?id=62d31539d6e31a40d7d33c73637e37b50c59ef40

> +---
> + Makefile.am  | 4 ++--
> + configure.ac | 3 +++
> + 2 files changed, 5 insertions(+), 2 deletions(-)
> +
> +diff --git a/Makefile.am b/Makefile.am
> +index 3cd7eaa6..493d06cc 100644
> +--- a/Makefile.am
> ++++ b/Makefile.am
> +@@ -288,7 +288,7 @@ client_iwctl_SOURCES = client/main.c \
> + 			client/network.h client/network.c \
> + 			client/properties.h client/properties.c \
> + 			client/wsc.c client/station.c
> +-client_iwctl_LDADD = $(ell_ldadd) -lreadline
> ++client_iwctl_LDADD = $(ell_ldadd) $(READLINE_LIBS)
> +
> + if MANUAL_PAGES
> + man_MANS += client/iwctl.1
> +@@ -504,7 +504,7 @@ unit_test_client_SOURCES = unit/test-client.c \
> + 				client/display.h client/display.c \
> + 				client/network.h client/network.c \
> + 				client/properties.h client/properties.c
> +-unit_test_client_LDADD = $(ell_ldadd) -lreadline
> ++unit_test_client_LDADD = $(ell_ldadd) $(READLINE_LIBS)
> + endif
> +
> + unit_test_sae_SOURCES = unit/test-sae.c \
> +diff --git a/configure.ac b/configure.ac
> +index 7bd917a4..52f27ed9 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -154,6 +154,9 @@ AC_ARG_ENABLE([client], AC_HELP_STRING([--disable-client],
> + if (test "${enable_client}" != "no"); then
> + 	AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes,
> + 			AC_MSG_ERROR(readline header files are required))
> ++	PKG_CHECK_MODULES(READLINE, readline, dummy=yes, READLINE_LIBS=-lreadline)
> ++	AC_SUBST(READLINE_CFLAGS)
> ++	AC_SUBST(READLINE_LIBS)
> + fi
> + AM_CONDITIONAL(CLIENT, test "${enable_client}" != "no")
> +
> +--
> +2.29.2
> +

      reply	other threads:[~2020-12-27 17:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16  7:04 [Buildroot] [PATCH 1/1] package/iwd: fix static build with readline Fabrice Fontaine
2020-12-27 17:24 ` Peter Seiderer [this message]

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=20201227182445.322532fa@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