All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rahul Bedarkar <rahulbedarkar89@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/3] Fix udftools in static linking scenarios
Date: Thu, 26 Apr 2018 11:03:14 +0530	[thread overview]
Message-ID: <CA+NV+Vkr04dq4b78zXPMG1mV7Trz8KQP3=6si+7LJjJsrwmpfg@mail.gmail.com> (raw)
In-Reply-To: <20180422212005.13062-1-thomas.petazzoni@bootlin.com>

On Mon, Apr 23, 2018 at 2:50 AM, Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
> Hello,
>
> This set of 3 patches aim at fixing the build of udftools in static
> linking scenarios.
>
> The first patch is a somewhat unrelated fix, which is really trivial,
> and not specific to static linking.
>
> The second patch fixes the readline package to install a pkg-config
> file.
>
> The third patch fixes the udftools package to use the readline
> pkg-config file.
>
> The overall solution is I believe the most correct one (use a
> pkg-config file), but is admittedly a bit complex and requires to
> autoreconf two more packages. If people don't like it, I'll be happy
> to change it to just pass "-lncurses" when building udftools, which
> would achieve the same effect.

Using pkg-config file is indeed a correct fix. But I think we should
understand why readline doesn't install .pc file by default. This
might be a reason that it is outdated and incorrect. Yes, in past we
have fixed static linking with readline for many packages by passing
it's private libraries.

May be if we first upstream readline changes with .pc installation in
autotools files, it would be nice to use fix. Otherwise, we need to
maintain patch and .pc file updated (in case of any changes in list of
private libraries).

Thanks,
Rahul

>
> Thanks,
>
> Thomas
>
> Thomas Petazzoni (3):
>   udftool: add missing dependency on readline
>   readline: install a .pc file
>   udftools: fix static linking against readline
>
>  ...c-readline.pc.in-fix-Requires.private-val.patch | 62 ++++++++++++++++++++++
>  package/readline/readline.mk                       | 17 +++++-
>  ...c-detect-readline-via-pkg-config-when-pos.patch | 60 +++++++++++++++++++++
>  package/udftools/udftools.mk                       |  2 +
>  4 files changed, 139 insertions(+), 2 deletions(-)
>  create mode 100644 package/readline/0001-configure.ac-readline.pc.in-fix-Requires.private-val.patch
>  create mode 100644 package/udftools/0002-configure.ac-detect-readline-via-pkg-config-when-pos.patch
>
> --
> 2.14.3
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

  parent reply	other threads:[~2018-04-26  5:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-22 21:20 [Buildroot] [PATCH 0/3] Fix udftools in static linking scenarios Thomas Petazzoni
2018-04-22 21:20 ` [Buildroot] [PATCH 1/3] udftool: add missing dependency on readline Thomas Petazzoni
2018-05-06 19:52   ` Peter Korsgaard
2018-04-22 21:20 ` [Buildroot] [PATCH 2/3] readline: install a .pc file Thomas Petazzoni
2018-05-03 20:14   ` Thomas Petazzoni
2018-05-06 19:52   ` Peter Korsgaard
2018-04-22 21:20 ` [Buildroot] [PATCH 3/3] udftools: fix static linking against readline Thomas Petazzoni
2018-05-06 19:53   ` Peter Korsgaard
2018-04-26  5:33 ` Rahul Bedarkar [this message]
2018-05-04  9:01   ` [Buildroot] [PATCH 0/3] Fix udftools in static linking scenarios Thomas Petazzoni

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='CA+NV+Vkr04dq4b78zXPMG1mV7Trz8KQP3=6si+7LJjJsrwmpfg@mail.gmail.com' \
    --to=rahulbedarkar89@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.