All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "Alexis Lothoré" <alexis.lothore@bootlin.com>
Cc: buildroot@buildroot.org, Bernd Kuhls <bernd@kuhls.net>,
	 Julien Olivain <ju.o@free.fr>
Subject: Re: [Buildroot] [PATCH v2] package/libxmlsec1: bump version to 1.3.12
Date: Sun, 9 Aug 2026 12:41:58 +0200	[thread overview]
Message-ID: <anhY2jHfrtuxplGy@windsurf> (raw)
In-Reply-To: <20260803-libxmslxec-bump-v2-1-7b668ecb24e8@bootlin.com>

Hello Alexis, Hello Julien,

On Mon, Aug 03, 2026 at 04:16:46PM +0200, Alexis Lothoré via buildroot wrote:
> Update libxmlsec from 1.3.9 to 1.3.12. The package then needs a few
> adjustments:
> - there are undefined references to xmlDebugDumpDocument ([1]):
> 
>   unit_tests/transform_helpers_unit_tests.c:291:9: error: implicit
>   declaration of function ‘xmlDebugDumpDocument’
>   [-Wimplicit-function-declaration]
> 
> This is due to xmlsec1 unit tests being built systematically, and
> depending on libxml2 being built with --with-debug, so patch
> apps/Makefile.am accordingly at build time to disable unit tests build.
> 
> - the build can fail with older GCC versions due to an unimplemented
>   parameter ([2]):
> 
>   aarch64-linux-gcc.br_real: error: unrecognized command line option \
>   ‘-Wformat-overflow=2’; did you mean ‘-Wstrict-overflow=’?
> 
> This format-overflow parameter has been implemented in GCC 7, so make
> the package depend on GCC >= 7. Another solution could have been to
> pass --disable-pedantic to the package's configure, but that sounds a
> bit strong just to disable a parameter that has been exisiting for
> almost 10 years.

FYI, I don't think the solutions brought to those two problems are
really the good solutions. The problems should be fixed at the root
upstream rather than worked around.

So for the first problem: improve configure.ac to detect if libxml2
was built with debug support or not, and build unit tests or not
accordingly.

For the second problem: test the GCC flags in configure.ac before
using them.

So I went ahead and implemented those improvements, and proposed them
upstream:

  https://github.com/lsh123/xmlsec/pull/1219

We will seen upstream's feedback.

But overall I feel like Buildroot's policy should be to more into this
direction (fixing issues upstream that papering over the problem in
Buildroot).

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-08-09 10:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-03 14:16 [Buildroot] [PATCH v2] package/libxmlsec1: bump version to 1.3.12 Alexis Lothoré via buildroot
2026-08-03 20:39 ` Julien Olivain via buildroot
2026-08-09 10:41 ` Thomas Petazzoni via buildroot [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=anhY2jHfrtuxplGy@windsurf \
    --to=buildroot@buildroot.org \
    --cc=alexis.lothore@bootlin.com \
    --cc=bernd@kuhls.net \
    --cc=ju.o@free.fr \
    --cc=thomas.petazzoni@bootlin.com \
    /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.