* [Buildroot] [PATCH] libglib2: fix g_print()
@ 2012-12-17 20:05 Benoît Thébaudeau
2012-12-18 8:29 ` Arnout Vandecappelle
2012-12-18 8:38 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Benoît Thébaudeau @ 2012-12-17 20:05 UTC (permalink / raw)
To: buildroot
If GLib is cross-compiled, the default printf settings that it selects are wrong
for glibc. This leads to issues with the g_print() functions, e.g. "Aborted"
errors returned by gst-inspect.
This patch fixes this issue by setting printf configuration options compatible
with glibc. These options should also be compatible with uClibc.
This solution has been suggested for LTIB by Rogerio Nunes:
https://community.freescale.com/thread/302734
Signed-off-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
---
package/libglib2/libglib2.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 4427431..c3e510b 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -40,7 +40,8 @@ LIBGLIB2_CONF_ENV = \
ac_cv_func_working_mktime=yes jm_cv_func_working_re_compile_pattern=yes \
ac_use_included_regex=no gl_cv_c_restrict=no \
ac_cv_path_GLIB_GENMARSHAL=$(HOST_DIR)/usr/bin/glib-genmarshal ac_cv_prog_F77=no \
- ac_cv_func_posix_getgrgid_r=no \
+ ac_cv_func_posix_getgrgid_r=no glib_cv_long_long_format=ll \
+ ac_cv_func_printf_unix98=yes ac_cv_func_vsnprintf_c99=yes \
gt_cv_c_wchar_t=$(if $(BR2_USE_WCHAR),yes,no)
# old uClibc versions don't provide qsort_r
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] libglib2: fix g_print()
2012-12-17 20:05 [Buildroot] [PATCH] libglib2: fix g_print() Benoît Thébaudeau
@ 2012-12-18 8:29 ` Arnout Vandecappelle
2012-12-18 8:38 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2012-12-18 8:29 UTC (permalink / raw)
To: buildroot
On 17/12/12 21:05, Beno?t Th?baudeau wrote:
> If GLib is cross-compiled, the default printf settings that it selects are wrong
> for glibc. This leads to issues with the g_print() functions, e.g. "Aborted"
> errors returned by gst-inspect.
>
> This patch fixes this issue by setting printf configuration options compatible
> with glibc. These options should also be compatible with uClibc.
>
> This solution has been suggested for LTIB by Rogerio Nunes:
> https://community.freescale.com/thread/302734
>
> Signed-off-by: Beno?t Th?baudeau<benoit.thebaudeau@advansee.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(fixes our aborts when doing gst-inspect on an i.MX6 platform)
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] libglib2: fix g_print()
2012-12-17 20:05 [Buildroot] [PATCH] libglib2: fix g_print() Benoît Thébaudeau
2012-12-18 8:29 ` Arnout Vandecappelle
@ 2012-12-18 8:38 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2012-12-18 8:38 UTC (permalink / raw)
To: buildroot
>>>>> "Beno?t" == Beno?t Th?baudeau <benoit.thebaudeau@advansee.com> writes:
Beno?t> If GLib is cross-compiled, the default printf settings that it
Beno?t> selects are wrong for glibc. This leads to issues with the
Beno?t> g_print() functions, e.g. "Aborted" errors returned by
Beno?t> gst-inspect.
Beno?t> This patch fixes this issue by setting printf configuration
Beno?t> options compatible with glibc. These options should also be
Beno?t> compatible with uClibc.
Beno?t> This solution has been suggested for LTIB by Rogerio Nunes:
Beno?t> https://community.freescale.com/thread/302734
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-18 8:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-17 20:05 [Buildroot] [PATCH] libglib2: fix g_print() Benoît Thébaudeau
2012-12-18 8:29 ` Arnout Vandecappelle
2012-12-18 8:38 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox