Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 407634 Details for
Bug 547630
www-client/chromium-44.0.2376.0 Fails to Compile with +widevine
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
chromium-widevine-ebuild-r12.patch
chromium-widevine-ebuild-r12.patch (text/plain), 3.76 KB, created by
Greg Turner
on 2015-07-26 00:28:03 UTC
(
hide
)
Description:
chromium-widevine-ebuild-r12.patch
Filename:
MIME Type:
Creator:
Greg Turner
Created:
2015-07-26 00:28:03 UTC
Size:
3.76 KB
patch
obsolete
>--- www-client/chromium/chromium-44.0.2403.89.ebuild 2015-07-22 23:01:17.000000000 -0700 >+++ www-client/chromium/chromium-44.0.2403.89-r1.ebuild 2015-07-25 17:19:11.222274234 -0700 >@@ -19,7 +19,7 @@ SRC_URI="https://commondatastorage.googl > LICENSE="BSD hotwording? ( no-source-code )" > SLOT="0" > KEYWORDS="amd64 ~arm x86" >-IUSE="cups gnome gnome-keyring hidpi hotwording kerberos neon pic +proprietary-codecs pulseaudio selinux +tcmalloc" >+IUSE="cups gnome gnome-keyring hidpi hotwording kerberos neon pic +proprietary-codecs pulseaudio selinux +tcmalloc +widevine" > RESTRICT="proprietary-codecs? ( bindist )" > > # Native Client binaries are compiled with different set of flags, bug #452066. >@@ -91,7 +91,8 @@ DEPEND="${RDEPEND} > sys-apps/hwids[usb(+)] > >=sys-devel/bison-2.4.3 > sys-devel/flex >- virtual/pkgconfig" >+ virtual/pkgconfig >+ widevine? ( www-plugins/chrome-binary-plugins[widevine] )" > > # For nvidia-drivers blocker, see bug #413637 . > RDEPEND+=" >@@ -122,6 +123,9 @@ if ! has chromium_pkg_die ${EBUILD_DEATH > EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; > fi > >+# TODO: flag-mask widevine in non-intel profiles in lieu of this >+REQUIRED_USE="|| ( x86 amd64 !widevine )" >+ > DISABLE_AUTOFORMATTING="yes" > DOC_CONTENTS=" > Some web pages may require additional fonts to display properly. >@@ -188,6 +192,30 @@ src_prepare() { > > epatch "${FILESDIR}/${PN}-system-jinja-r7.patch" > >+ # When building non-Chrome-branded linux targets, >+ # build a full widevine cdm if requested (#547630) >+ epatch "${FILESDIR}/${PN}-widevine-2403.patch" >+ >+ if use widevine; then >+ local WIDEVINE_VERSION="$(< "${ROOT}/usr/$(get_libdir)/chromium-browser/widevine.version")" >+ [[ -z $WIDEVINE_VERSION ]] && die "Could not determine Widevine version." >+ >+ # to build the full widevine cdm, we must provide some versioning constants: >+ local header_lines=( >+ "#include \"third_party/widevine/cdm/widevine_cdm_common.h\"" >+ "#define WIDEVINE_CDM_AVAILABLE" >+ "#define WIDEVINE_CDM_VERSION_STRING \"${WIDEVINE_VERSION}\"" >+ ) >+ >+ # inject just above widevine_cdm_version.h's last line >+ local header_line sedscript='$i' >+ for header_line in "${header_lines[@]}"; do >+ sedscript+=${header_line} >+ sedscript+='\n' >+ done >+ sed -e "${sedscript}" -i third_party/widevine/cdm/widevine_cdm_version.h || die >+ fi >+ > epatch_user > > # Remove most bundled libraries. Some are still needed. >@@ -290,6 +318,20 @@ src_prepare() { > } > > src_configure() { >+ if use widevine; then >+ local WIDEVINE_SUPPORTED_ARCHS="x64 ia32" >+ local arch >+ for arch in ${WIDEVINE_SUPPORTED_ARCHS}; do >+ [[ -d third_party/widevine/cdm/linux/${arch} ]] \ >+ || mkdir -p third_party/widevine/cdm/linux/${arch} \ >+ || die "Could not make widevine header directory for arch \"${arch}\"." >+ cp "${ROOT}/usr/$(get_libdir)/chromium-browser/libwidevinecdm.so" \ >+ third_party/widevine/cdm/widevine_cdm_*.h \ >+ third_party/widevine/cdm/linux/${arch}/ \ >+ || die "Could not copy headers for Widevine." >+ done >+ fi >+ > local myconf="" > > # Never tell the build system to "enable" SSE2, it has a few unexpected >@@ -362,7 +404,8 @@ src_configure() { > $(gyp_use hotwording enable_hotwording) > $(gyp_use kerberos) > $(gyp_use pulseaudio) >- $(gyp_use tcmalloc use_allocator tcmalloc none)" >+ $(gyp_use tcmalloc use_allocator tcmalloc none) >+ $(gyp_use widevine enable_widevine)" > > # Use explicit library dependencies instead of dlopen. > # This makes breakages easier to detect by revdep-rebuild. >@@ -582,6 +625,10 @@ src_install() { > newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die > newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die > >+ if use widevine; then >+ doexe out/Release/libwidevinecdmadapter.so >+ fi >+ > # Install icons and desktop entry. > local branding size > for size in 16 22 24 32 48 64 128 256 ; do
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 547630
:
401940
|
401942
|
401944
|
401946
|
401948
|
402664
|
405394
|
405396
|
405446
|
405448
|
405450
|
405704
|
405706
|
405714
|
405762
|
405764
|
405766
|
405820
| 407634 |
407854
|
407862
|
407864
|
408270