Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 262133 Details for
Bug 354073
www-plugins/adobe-flash sound is broken with glibc-2.13
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
"workaround"
foo.patch (text/plain), 1.90 KB, created by
Samuli Suominen (RETIRED)
on 2011-02-11 16:23:13 UTC
(
hide
)
Description:
"workaround"
Filename:
MIME Type:
Creator:
Samuli Suominen (RETIRED)
Created:
2011-02-11 16:23:13 UTC
Size:
1.90 KB
patch
obsolete
>--- /tmp/adobe-flash-10.2.152.27_p201011173-r1.ebuild 2011-02-11 18:08:15.000000000 +0200 >+++ adobe-flash-10.2.152.27_p201011173-r1.ebuild 2011-02-11 18:22:55.000000000 +0200 >@@ -3,7 +3,7 @@ > # $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27_p201011173-r1.ebuild,v 1.1 2011/02/11 13:54:15 lack Exp $ > > EAPI=3 >-inherit rpm nsplugins multilib toolchain-funcs versionator >+inherit rpm nsplugins multilib toolchain-funcs versionator flag-o-matic > > # Note: There is no "square" for 32-bit! Just use the current 32-bit release: > PV_REL=$(get_version_component_range 1-4) >@@ -123,6 +123,26 @@ > "${FILESDIR}/flashplugin-lahf-fix.c" \ > || die "Compile of flashplugin-lahf-fix.so failed" > fi >+ pushd "${T}" > /dev/null >+ cat <<-EOF > flashmemcpy.c >+ #include <sys/types.h> >+ void *memcpy(void *dst, const void *src, size_t size) >+ { >+ void *orig = dst; >+ asm volatile("rep ; movsq" >+ :"=D" (dst), "=S" (src) >+ :"0" (dst), "1" (src), "c" (size >> 3) >+ :"memory"); >+ asm volatile("rep ; movsb" >+ :"=D" (dst), "=S" (src) >+ :"0" (dst), "1" (src), "c" (size & 7) >+ :"memory"); >+ return orig; >+ } >+ EOF >+ $(tc-getCC) ${CFLAGS} -c flashmemcpy.c || die >+ $(tc-getLD) $(raw-ldflags) -G flashmemcpy.o -o flashmemcpy.so || die >+ popd > /dev/null > } > > src_install() { >@@ -165,6 +185,9 @@ > # The magic config file! > insinto "/etc/adobe" > doins "${FILESDIR}/mms.cfg" >+ >+ exeinto /usr/$(get_libdir)/${PN} >+ doexe "${T}"/flashmemcpy.so || die > } > > pkg_postinst() { >@@ -205,4 +228,9 @@ > ewarn "issues. Please consider only running flash applets you know to" > ewarn "be safe. The 'flashblock' extension may help for mozilla users:" > ewarn " https://addons.mozilla.org/en-US/firefox/addon/433" >+ >+ ewarn >+ ewarn "You need to launch your browser prepending LD_PRELOAD=\"/usr/$(get_libdir)/adobe-flash/flashmemcpy.so\"" >+ ewarn "in command line for bug 354073 if you experience sound problems with recent glibc." >+ ewarn > }
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 354073
: 262133