www-client/chromium: fix bundled ffmpeg configure script
authorMike Gilbert <floppym@gentoo.org>
Fri, 9 Feb 2018 17:06:28 +0000 (12:06 -0500)
committerMike Gilbert <floppym@gentoo.org>
Fri, 9 Feb 2018 17:06:43 +0000 (12:06 -0500)
Closes: https://bugs.gentoo.org/646658
Package-Manager: Portage-2.3.24_p18, Repoman-2.3.6_p99

www-client/chromium/chromium-64.0.3282.140.ebuild
www-client/chromium/chromium-65.0.3315.3.ebuild
www-client/chromium/files/chromium-ffmpeg-r0.patch [new file with mode: 0644]

index f9d0c892ec1673011a902b55122a7c42c975d2fe..1f79ba7bd6fa0baa35769cdc27cc2699dda86b0b 100644 (file)
@@ -151,6 +151,7 @@ PATCHES=(
        "${FILESDIR}/chromium-cups-r0.patch"
        "${FILESDIR}/chromium-clang-r2.patch"
        "${FILESDIR}/chromium-angle-r0.patch"
+       "${FILESDIR}/chromium-ffmpeg-r0.patch"
 )
 
 pre_build_checks() {
index b8011501a833e9488e8fa865a7f24ed24484be24..c2d2f2fcaf786bad45130886f1a70afcc6b9d85a 100644 (file)
@@ -152,6 +152,7 @@ PATCHES=(
        "${FILESDIR}/chromium-gn-r0.patch"
        "${FILESDIR}/chromium-vulkan-r0.patch"
        "${FILESDIR}/chromium-gcc-r0.patch"
+       "${FILESDIR}/chromium-ffmpeg-r0.patch"
 )
 
 pre_build_checks() {
diff --git a/www-client/chromium/files/chromium-ffmpeg-r0.patch b/www-client/chromium/files/chromium-ffmpeg-r0.patch
new file mode 100644 (file)
index 0000000..4063223
--- /dev/null
@@ -0,0 +1,21 @@
+--- a/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py
++++ b/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py
+@@ -632,18 +632,8 @@
+   if 'win' not in target_os:
+     configure_flags['Common'].extend([
+         '--enable-pic',
+-        '--cc=clang',
+-        '--cxx=clang++',
+-        '--ld=clang',
+     ])
+ 
+-    # Clang Linux will use the first 'ld' it finds on the path, which will
+-    # typically be the system one, so explicitly configure use of Clang's
+-    # ld.lld, to ensure that things like cross-compilation and LTO work.
+-    # This does not work for arm64, ia32 and is always used on mac.
+-    if target_arch not in ['arm64', 'ia32'] and target_os != 'mac':
+-      configure_flags['Common'].append('--extra-ldflags=-fuse-ld=lld')
+-
+   # Should be run on Mac.
+   if target_os == 'mac':
+     if host_os != 'mac':