Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/1] package/ffmpeg: Fix ranlib check when cross-compiling
@ 2015-04-16 20:12 Bernd Kuhls
  2015-04-16 20:12 ` [Buildroot] [PATCH 1/1] " Bernd Kuhls
  2015-04-16 21:42 ` [Buildroot] [PATCH 0/1] " Arnout Vandecappelle
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Kuhls @ 2015-04-16 20:12 UTC (permalink / raw)
  To: buildroot

Hi,

this is a different approach to fix the build error.
Please compare my patch with http://patchwork.ozlabs.org/patch/461843/

I am not sure what the best fix would be, therefore I have not yet
sent my patch upstream.

Regards, Bernd

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

* [Buildroot] [PATCH 1/1] package/ffmpeg: Fix ranlib check when cross-compiling
  2015-04-16 20:12 [Buildroot] [PATCH 0/1] package/ffmpeg: Fix ranlib check when cross-compiling Bernd Kuhls
@ 2015-04-16 20:12 ` Bernd Kuhls
  2015-04-18 13:42   ` Thomas Petazzoni
  2015-04-16 21:42 ` [Buildroot] [PATCH 0/1] " Arnout Vandecappelle
  1 sibling, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2015-04-16 20:12 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/d13/d13488a43f6e034623104a36c07114db99325b8d/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/ffmpeg/0016-ranlib.patch |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/ffmpeg/0016-ranlib.patch

diff --git a/package/ffmpeg/0016-ranlib.patch b/package/ffmpeg/0016-ranlib.patch
new file mode 100644
index 0000000..e88b25f
--- /dev/null
+++ b/package/ffmpeg/0016-ranlib.patch
@@ -0,0 +1,35 @@
+Fix ranlib check when cross-compiling
+
+Without this patch /usr/bin/ranlib is tested for "-D", not ranlib from the
+cross-compiler suite being in use.
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -uNr ffmpeg-2.6.2.org/configure ffmpeg-2.6.2/configure
+--- ffmpeg-2.6.2.org/configure	2015-04-12 00:47:55.000000000 +0200
++++ ffmpeg-2.6.2/configure	2015-04-16 21:53:24.313202517 +0200
+@@ -2719,11 +2719,6 @@
+ nm_default="nm -g"
+ objformat="elf"
+ pkg_config_default=pkg-config
+-if ranlib 2>&1 | grep -q "\-D "; then
+-    ranlib_default="ranlib -D"
+-else
+-    ranlib_default="ranlib"
+-fi
+ strip_default="strip"
+ yasmexe_default="yasm"
+ windres_default="windres"
+@@ -3001,6 +2996,12 @@
+         die "Must specify target arch and OS when cross-compiling"
+ fi
+ 
++if "${cross_prefix}ranlib" 2>&1 | grep -q "\-D "; then
++    ranlib_default="ranlib -D"
++else
++    ranlib_default="ranlib"
++fi
++
+ test -n "$valgrind" && toolchain="valgrind-memcheck"
+ 
+ case "$toolchain" in
-- 
1.7.10.4

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

* [Buildroot] [PATCH 0/1] package/ffmpeg: Fix ranlib check when cross-compiling
  2015-04-16 20:12 [Buildroot] [PATCH 0/1] package/ffmpeg: Fix ranlib check when cross-compiling Bernd Kuhls
  2015-04-16 20:12 ` [Buildroot] [PATCH 1/1] " Bernd Kuhls
@ 2015-04-16 21:42 ` Arnout Vandecappelle
  1 sibling, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2015-04-16 21:42 UTC (permalink / raw)
  To: buildroot

On 16/04/15 22:12, Bernd Kuhls wrote:
> Hi,
> 
> this is a different approach to fix the build error.
> Please compare my patch with http://patchwork.ozlabs.org/patch/461843/
> 
> I am not sure what the best fix would be, therefore I have not yet
> sent my patch upstream.

 I'm OK with either solution. I propose that you send your patch upstream, see
how they react, and if it's positive then we go with yours. If they don't accept
it, then I think that not patching (i.e. my solution) is better.

 Regards,
 Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
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] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/ffmpeg: Fix ranlib check when cross-compiling
  2015-04-16 20:12 ` [Buildroot] [PATCH 1/1] " Bernd Kuhls
@ 2015-04-18 13:42   ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-04-18 13:42 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Thu, 16 Apr 2015 22:12:35 +0200, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/d13/d13488a43f6e034623104a36c07114db99325b8d/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/ffmpeg/0016-ranlib.patch |   35 +++++++++++++++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
>  create mode 100644 package/ffmpeg/0016-ranlib.patch

I've applied this patch. Please submit it upstream, and give us some
feedback on upstream's reaction. One thing I'm wondering is whether
with your patch, the --ranlib= option continues to work.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-04-18 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 20:12 [Buildroot] [PATCH 0/1] package/ffmpeg: Fix ranlib check when cross-compiling Bernd Kuhls
2015-04-16 20:12 ` [Buildroot] [PATCH 1/1] " Bernd Kuhls
2015-04-18 13:42   ` Thomas Petazzoni
2015-04-16 21:42 ` [Buildroot] [PATCH 0/1] " Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox