All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libsndfile: fix c99 check
@ 2021-06-20 18:04 Bernd Kuhls
  2021-07-18 11:59 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2021-06-20 18:04 UTC (permalink / raw)
  To: buildroot

The check for c99 contains "include <wchar.h>" although the package
itself does not use wchar functions outside Windows-specific code.
This patch forces the detection of c99 for toolchains lacking wchar.

Fixes:
http://autobuild.buildroot.net/results/62c/62c07e66491e2fcf32d3921f8286ec1293591194/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/libsndfile/libsndfile.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/libsndfile/libsndfile.mk b/package/libsndfile/libsndfile.mk
index 69530c98ed..c955b9d088 100644
--- a/package/libsndfile/libsndfile.mk
+++ b/package/libsndfile/libsndfile.mk
@@ -15,6 +15,7 @@ LIBSNDFILE_CPE_ID_VENDOR = libsndfile_project
 # disputed, https://github.com/erikd/libsndfile/issues/398
 LIBSNDFILE_IGNORE_CVES += CVE-2018-13419
 
+LIBSNDFILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
 LIBSNDFILE_CONF_OPTS = \
 	--disable-sqlite \
 	--disable-alsa \
-- 
2.30.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/libsndfile: fix c99 check
  2021-06-20 18:04 [Buildroot] [PATCH 1/1] package/libsndfile: fix c99 check Bernd Kuhls
@ 2021-07-18 11:59 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-07-18 11:59 UTC (permalink / raw)
  To: buildroot

Hello Bernd,

On Sun, 20 Jun 2021 20:04:09 +0200
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:

> The check for c99 contains "include <wchar.h>" although the package
> itself does not use wchar functions outside Windows-specific code.
> This patch forces the detection of c99 for toolchains lacking wchar.
> 
> Fixes:
> http://autobuild.buildroot.net/results/62c/62c07e66491e2fcf32d3921f8286ec1293591194/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/libsndfile/libsndfile.mk | 1 +
>  1 file changed, 1 insertion(+)

Thanks for the research and fix. However the commit log for fixes like
this should always include some details about since when the problem is
occurring and why. Indeed, we want to easily understand if the problem
is applicable to our LTS branch.

In this case, I did the research: the problem didn't exist before the
bump of libsndfile to 1.0.31. Since the bump to libsndfile to 1.0.31
was done in June 2021, the LTS branch is not impacted.

I have amended the commit log with those details, but it would be good
to have such details in your future commit logs :-)

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-18 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-20 18:04 [Buildroot] [PATCH 1/1] package/libsndfile: fix c99 check Bernd Kuhls
2021-07-18 11:59 ` Thomas Petazzoni

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.