* [Buildroot] [PATCH v2] libplayer: fix handling of cflags in configure
@ 2012-07-14 21:34 Arnout Vandecappelle
2012-07-15 19:51 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-07-14 21:34 UTC (permalink / raw)
To: buildroot
Problem was found when compiling libplayer with GStreamer support
on x86_64 with a Sourcery toolchain.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
v2: document error situation in commit log
.../libplayer/libplayer-fix-configure-cflags.patch | 41 ++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/package/libplayer/libplayer-fix-configure-cflags.patch b/package/libplayer/libplayer-fix-configure-cflags.patch
new file mode 100644
index 0000000..186afd5
--- /dev/null
+++ b/package/libplayer/libplayer-fix-configure-cflags.patch
@@ -0,0 +1,41 @@
+From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+Subject: [PATCH] libplayer: Fix handling of cflags in configure.
+
+The cflags returned by pkg-config or another config script may consist
+of several arguments for the compiler. These should not be quoted together
+into a single argument.
+
+Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+---
+Sent upstream to devel at geexbox.org on July 11, 2012.
+---
+diff -rup libplayer-2.0.1.orig/configure libplayer-2.0.1/configure
+--- libplayer-2.0.1.orig/configure 2010-10-03 19:26:11.000000000 +0200
++++ libplayer-2.0.1/configure 2012-07-10 23:33:02.783701852 +0200
+@@ -342,7 +342,7 @@ check_libconfig(){
+ err=1
+ if `which "$config" 1>/dev/null 2>&1`; then
+ cflags=`$config $ccflags`
+- [ -n "$cflags" ] && check_cflags "$cflags"
++ [ -n "$cflags" ] && check_cflags $cflags
+ libs=`$config $clibs`
+ if [ -n "$libs" ]; then
+ temp_extralibs "$libs"
+@@ -364,7 +364,7 @@ check_libconfig_exists(){
+ err=1
+ if `which "$config" 1>/dev/null 2>&1`; then
+ cflags=`$config $ccflags`
+- [ -n "$cflags" ] && temp_cflags "$cflags"
++ [ -n "$cflags" ] && temp_cflags $cflags
+ libs=`$config $clibs`
+ if [ -n "$libs" ]; then
+ temp_extralibs "$libs"
+@@ -386,7 +386,7 @@ check_pkgconfig(){
+ err=1
+ if `which pkg-config 1>/dev/null 2>&1`; then
+ cflags=`pkg-config $pkg $ccflags`
+- [ -n "$cflags" ] && check_cflags "$cflags"
++ [ -n "$cflags" ] && check_cflags $cflags
+ libs=`pkg-config $pkg $clibs`
+ if [ -n "$libs" ]; then
+ temp_extralibs "$libs"
--
tg: (b8b57bb..) t/libplayer-cflags (depends on: master)
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH v2] libplayer: fix handling of cflags in configure
2012-07-14 21:34 [Buildroot] [PATCH v2] libplayer: fix handling of cflags in configure Arnout Vandecappelle
@ 2012-07-15 19:51 ` Thomas Petazzoni
2012-07-17 10:47 ` Arnout Vandecappelle
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2012-07-15 19:51 UTC (permalink / raw)
To: buildroot
Le Sat, 14 Jul 2012 23:34:36 +0200,
"Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be> a ?crit :
> Problem was found when compiling libplayer with GStreamer support
> on x86_64 with a Sourcery toolchain.
I've tried to build libplayer with gstreamer support for x86_64 with a
Sourcery toolchain, and I didn't had an issue. Since your problem was
quoting related, I thought that it could be caused by the ccache
support, but it isn't.
Can you post the .config that triggers the problem, or provide more
details on the problem? It's not that I don't believe that there is a
problem, but without producing it, I feel a bit out of infos to review
the patch.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] libplayer: fix handling of cflags in configure
2012-07-15 19:51 ` Thomas Petazzoni
@ 2012-07-17 10:47 ` Arnout Vandecappelle
2012-10-22 7:50 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-07-17 10:47 UTC (permalink / raw)
To: buildroot
On 07/15/12 21:51, Thomas Petazzoni wrote:
> Le Sat, 14 Jul 2012 23:34:36 +0200,
> "Arnout Vandecappelle (Essensium/Mind)"<arnout@mind.be> a ?crit :
>
>> Problem was found when compiling libplayer with GStreamer support
>> on x86_64 with a Sourcery toolchain.
>
> I've tried to build libplayer with gstreamer support for x86_64 with a
> Sourcery toolchain, and I didn't had an issue. Since your problem was
> quoting related, I thought that it could be caused by the ccache
> support, but it isn't.
>
> Can you post the .config that triggers the problem, or provide more
> details on the problem? It's not that I don't believe that there is a
> problem, but without producing it, I feel a bit out of infos to review
> the patch.
The config is an allpackageyesconfig from which I removed a few packages
that don't work on x86_64 or that can't be downloaded anymore. I've attached
the defconfig. You'd best interrupt the build after the cross-compiler is
extracted and then run 'make libplayer' explicitly, or you'll have to wait
for hours for the build to finish...
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: defconfig
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120717/e7bb9b87/attachment-0001.ksh>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] libplayer: fix handling of cflags in configure
2012-07-17 10:47 ` Arnout Vandecappelle
@ 2012-10-22 7:50 ` Peter Korsgaard
0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2012-10-22 7:50 UTC (permalink / raw)
To: buildroot
>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
Arnout> On 07/15/12 21:51, Thomas Petazzoni wrote:
>> Le Sat, 14 Jul 2012 23:34:36 +0200,
>> "Arnout Vandecappelle (Essensium/Mind)"<arnout@mind.be> a ?crit :
>>
>>> Problem was found when compiling libplayer with GStreamer support
>>> on x86_64 with a Sourcery toolchain.
>>
>> I've tried to build libplayer with gstreamer support for x86_64 with a
>> Sourcery toolchain, and I didn't had an issue. Since your problem was
>> quoting related, I thought that it could be caused by the ccache
>> support, but it isn't.
>>
>> Can you post the .config that triggers the problem, or provide more
>> details on the problem? It's not that I don't believe that there is a
>> problem, but without producing it, I feel a bit out of infos to review
>> the patch.
Arnout> The config is an allpackageyesconfig from which I removed a
Arnout> few packages that don't work on x86_64 or that can't be
Arnout> downloaded anymore. I've attached the defconfig. You'd best
Arnout> interrupt the build after the cross-compiler is extracted and
Arnout> then run 'make libplayer' explicitly, or you'll have to wait
Arnout> for hours for the build to finish...
Committed, thanks. The issue also triggered on the autobuilder
yesterday:
http://autobuild.buildroot.net/results/2a22f33410197f5cf546bf1974c2e168d1b1a070/build-end.log
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-22 7:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-14 21:34 [Buildroot] [PATCH v2] libplayer: fix handling of cflags in configure Arnout Vandecappelle
2012-07-15 19:51 ` Thomas Petazzoni
2012-07-17 10:47 ` Arnout Vandecappelle
2012-10-22 7:50 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox