Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support
@ 2017-06-05 16:22 Bernd Kuhls
  2017-06-05 16:22 ` [Buildroot] [PATCH 2/2] package/x264: bump version Bernd Kuhls
  2017-06-20 20:31 ` [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Kuhls @ 2017-06-05 16:22 UTC (permalink / raw)
  To: buildroot

In buildroot ffmpeg uses x264 as optional dependency if
BR2_PACKAGE_FFMPEG_GPL is enabled at the same time.

If BR2_PACKAGE_FFMPEG_GPL is disabled and ffmpeg is built without x264
support before x264 itself is build, x264 picks up certain ffmpeg libs
as optional dependency leading to build errors because x264 does not
correctly link statically against ffmpeg.

To avoid a circular dependency and to avoid teaching x264 how to
correctly link statically with ffmpeg we just disable all ffmpeg-
related options.

Fixes
http://autobuild.buildroot.net/results/36a/36abb5b8f3aab57fb7b63056b216b4a58143ee3e/

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

diff --git a/package/x264/x264.mk b/package/x264/x264.mk
index 7214c967f..d1bc76701 100644
--- a/package/x264/x264.mk
+++ b/package/x264/x264.mk
@@ -10,7 +10,7 @@ X264_LICENSE = GPL-2.0+
 X264_DEPENDENCIES = host-pkgconf
 X264_LICENSE_FILES = COPYING
 X264_INSTALL_STAGING = YES
-X264_CONF_OPTS = --disable-avs
+X264_CONF_OPTS = --disable-avs --disable-lavf --disable-swscale
 
 ifeq ($(BR2_i386)$(BR2_x86_64),y)
 # yasm needed for assembly files
-- 
2.11.0

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

* [Buildroot] [PATCH 2/2] package/x264: bump version
  2017-06-05 16:22 [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support Bernd Kuhls
@ 2017-06-05 16:22 ` Bernd Kuhls
  2017-06-20 20:31 ` [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Bernd Kuhls @ 2017-06-05 16:22 UTC (permalink / raw)
  To: buildroot

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

diff --git a/package/x264/x264.mk b/package/x264/x264.mk
index d1bc76701..69ec4ccea 100644
--- a/package/x264/x264.mk
+++ b/package/x264/x264.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-X264_VERSION = 97eaef2ab82a46d13ea5e00270712d6475fbe42b
+X264_VERSION = df79067c0cf33da712d344b5f8869be7eaf326f3
 X264_SITE = git://git.videolan.org/x264.git
 X264_LICENSE = GPL-2.0+
 X264_DEPENDENCIES = host-pkgconf
-- 
2.11.0

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

* [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support
  2017-06-05 16:22 [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support Bernd Kuhls
  2017-06-05 16:22 ` [Buildroot] [PATCH 2/2] package/x264: bump version Bernd Kuhls
@ 2017-06-20 20:31 ` Thomas Petazzoni
  2017-06-26  7:56   ` Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2017-06-20 20:31 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon,  5 Jun 2017 18:22:37 +0200, Bernd Kuhls wrote:
> In buildroot ffmpeg uses x264 as optional dependency if
> BR2_PACKAGE_FFMPEG_GPL is enabled at the same time.
> 
> If BR2_PACKAGE_FFMPEG_GPL is disabled and ffmpeg is built without x264
> support before x264 itself is build, x264 picks up certain ffmpeg libs
> as optional dependency leading to build errors because x264 does not
> correctly link statically against ffmpeg.
> 
> To avoid a circular dependency and to avoid teaching x264 how to
> correctly link statically with ffmpeg we just disable all ffmpeg-
> related options.
> 
> Fixes
> http://autobuild.buildroot.net/results/36a/36abb5b8f3aab57fb7b63056b216b4a58143ee3e/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/x264/x264.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Both patches applied, thanks. On the second patch, you forgot to update
the hash, so I've done so. You probably forgot because back then, we
were not checking the hashes of git-downloaded packages. But now we
are, so hashes should be correct.

Thanks!

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

* [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support
  2017-06-20 20:31 ` [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support Thomas Petazzoni
@ 2017-06-26  7:56   ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2017-06-26  7:56 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > Hello,
 > On Mon,  5 Jun 2017 18:22:37 +0200, Bernd Kuhls wrote:
 >> In buildroot ffmpeg uses x264 as optional dependency if
 >> BR2_PACKAGE_FFMPEG_GPL is enabled at the same time.
 >> 
 >> If BR2_PACKAGE_FFMPEG_GPL is disabled and ffmpeg is built without x264
 >> support before x264 itself is build, x264 picks up certain ffmpeg libs
 >> as optional dependency leading to build errors because x264 does not
 >> correctly link statically against ffmpeg.
 >> 
 >> To avoid a circular dependency and to avoid teaching x264 how to
 >> correctly link statically with ffmpeg we just disable all ffmpeg-
 >> related options.
 >> 
 >> Fixes
 >> http://autobuild.buildroot.net/results/36a/36abb5b8f3aab57fb7b63056b216b4a58143ee3e/
 >> 
 >> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Committed to 2017.02.x and 2017.05.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2017-06-26  7:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-05 16:22 [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support Bernd Kuhls
2017-06-05 16:22 ` [Buildroot] [PATCH 2/2] package/x264: bump version Bernd Kuhls
2017-06-20 20:31 ` [Buildroot] [PATCH 1/2] package/x264: disable optional ffmpeg support Thomas Petazzoni
2017-06-26  7:56   ` Peter Korsgaard

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