All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/meson: fix pkg-config --static
Date: Thu, 11 Jun 2020 00:48:46 +0200	[thread overview]
Message-ID: <d7250596-6394-ddc2-eddf-7e0d14b6cdd0@gmail.com> (raw)
In-Reply-To: <20200412211446.1789f4f0@windsurf.home>

Hi Thomas, Fabrice,

Le 12/04/2020 ? 21:14, Thomas Petazzoni a ?crit?:
> Hello,
> 
> On Sat, 15 Feb 2020 16:26:20 +0100
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> 
>> pkg-config wrapper is not used since commit
>> 4e0bc29993376613d200e892d491e31ea5a49622, this raise static build
>> failures with libglib2 because --static is not passed anymore to
>> pkg-config so add a patch to get back the old behaviour.
>>
>> Fixes:
>>  - http://autobuild.buildroot.org/results/0d36952def63cb69628697fa6408aeb6ce10cb5b
>>
>> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>> ---
>>  ...dencies-base.py-add-pkg_config_stati.patch | 38 +++++++++++++++++++
>>  package/meson/cross-compilation.conf.in       |  1 +
>>  package/pkg-meson.mk                          |  1 +
>>  3 files changed, 40 insertions(+)
>>  create mode 100644 package/meson/0004-mesonbuild-dependencies-base.py-add-pkg_config_stati.patch
> 
> So, the feedback from upstream at
> https://github.com/mesonbuild/meson/pull/6629 was not very positive,
> and they suggested how it should be implemented.
> 
> However, in the mean time, we are a bit screwed, and libglib2 has
> continued to fail building consistently in our autobuilders since then.
> 
> Since your solution Fabrice is simple enough and straightforward, I
> decided to apply it nevertheless. I just made sure setting the STATIC
> property is done in both the per-package cross-compilation.conf and the
> global cross-compilation.conf.
> 
> It would however be nice to keep working on the issue with upstream, so
> that we get a proper solution at some point in the future.

It seems this patch introduced a build issue with libgbm mesa3d:

http://autobuild.buildroot.net/results/1b5/1b58d73ecbbe1af2c3e140563d696cf32d1c4a5a/build-end.log

See initial discussions:
http://lists.busybox.net/pipermail/buildroot/2020-June/284543.html

By reverting this patch allow to build the following defconfig:
BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_VALGRIND=y
BR2_PACKAGE_VALGRIND_SGCHECK=y
BR2_PACKAGE_VALGRIND_BBV=y
BR2_PACKAGE_VALGRIND_LACKEY=y
BR2_PACKAGE_VALGRIND_NULGRIND=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y

That's because --static is always used while calling pkg-config.
Doing so in mesa build add valgrind static libraries while building shared
library libgbm.so.

Best regards,
Romain


> 
> Thanks,
> 
> Thomas
> 

      reply	other threads:[~2020-06-10 22:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-15 15:26 [Buildroot] [PATCH 1/1] package/meson: fix pkg-config --static Fabrice Fontaine
2020-02-20  9:29 ` Arnout Vandecappelle
2020-02-20  9:31   ` Fabrice Fontaine
2020-04-12 19:14 ` Thomas Petazzoni
2020-06-10 22:48   ` Romain Naour [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=d7250596-6394-ddc2-eddf-7e0d14b6cdd0@gmail.com \
    --to=romain.naour@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.