summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <lack@gentoo.org>2009-07-15 13:39:03 +0000
committerJim Ramsay <lack@gentoo.org>2009-07-15 13:39:03 +0000
commit899afdea8f141ff66398e14cc264ac3279552862 (patch)
tree0933654b80a208211dfb5535765d76aaa0b8f7d7 /www-plugins
parentstable x86, bug 277861 (diff)
downloadhistorical-899afdea8f141ff66398e14cc264ac3279552862.tar.gz
historical-899afdea8f141ff66398e14cc264ac3279552862.tar.bz2
historical-899afdea8f141ff66398e14cc264ac3279552862.zip
Bug #268336 -> Check for the lahf_lm flag in /proc/cpuinfo. If it is not present, instruct the user to install the 32-bit version only.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'www-plugins')
-rw-r--r--www-plugins/adobe-flash/ChangeLog11
-rw-r--r--www-plugins/adobe-flash/Manifest17
-rw-r--r--www-plugins/adobe-flash/adobe-flash-10.0.15.3.ebuild92
-rw-r--r--www-plugins/adobe-flash/adobe-flash-10.0.22.87-r1.ebuild178
-rw-r--r--www-plugins/adobe-flash/metadata.xml5
5 files changed, 193 insertions, 110 deletions
diff --git a/www-plugins/adobe-flash/ChangeLog b/www-plugins/adobe-flash/ChangeLog
index 0a94affae256..5d1fa05dcbdd 100644
--- a/www-plugins/adobe-flash/ChangeLog
+++ b/www-plugins/adobe-flash/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for www-plugins/adobe-flash
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.1 2009/04/10 13:14:04 ulm Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.2 2009/07/15 13:39:03 lack Exp $
+
+*adobe-flash-10.0.22.87-r1 (14 Jul 2009)
+
+ 14 Jul 2009; Jim Ramsay <lack@gentoo.org> -adobe-flash-10.0.15.3.ebuild,
+ +adobe-flash-10.0.22.87-r1.ebuild, metadata.xml:
+ Bug #268336 -> Check for the lahf_lm flag in /proc/cpuinfo. If it is not
+ present, instruct the user to install the 32-bit version only.
*adobe-flash-10.0.22.87 (10 Apr 2009)
*adobe-flash-10.0.15.3 (10 Apr 2009)
diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
index 346296b25404..4771d6ccf684 100644
--- a/www-plugins/adobe-flash/Manifest
+++ b/www-plugins/adobe-flash/Manifest
@@ -1,21 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX mms.cfg 4409 RMD160 bf6407b5c785b45b76ca323712d44f925ccf20ae SHA1 7f6eb9e4224ab70522a21b894f7f334c2cde8ce0 SHA256 f0f2c7f20653cc9f275eb84c853f2695dd9b0531ce8c037d56ae7ae94cb0ca6c
DIST flash-libcompat-0.2.tar.bz2 1162317 RMD160 197841eb76faacb05aec3e003f5e06e00fb5a19f SHA1 8fe47ef587ae679a37757038710750eb6a3c393e SHA256 aa96a25420f6527f5c2a467222bccf5c54a5f8001edfa0ec274864fc3e94faea
-DIST flash-plugin-10.0.15.3-release.i386.rpm 4031586 RMD160 fd4a8d57c5f74cc751aa1b3f449aa1697e42c522 SHA1 6108dda2cce4db33d130c010ac93c2cbde68faea SHA256 ce82077d6c8db2d017677674393ee2f206b2e9e10c92c3049f0fe9ce8bee18d3
DIST flash-plugin-10.0.22.87-release.i386.rpm 4065576 RMD160 0e28bd9d4c581fedbb88bf7fe94afc543b474759 SHA1 f8e928b811844532b8c23d93f40133a874f981ce SHA256 ec5ace49df7cfe69b7c02c8d1b6df8089f32076a390b931051feed2a9762d554
DIST install_flash_player_9.tar.gz 3057882 RMD160 959557613c79b52f8e80daa8346948a8ed6e20a3 SHA1 df4868afc1927319b37bf2b6cd3871cc033da58c SHA256 fe7a55f86faf663b36befa19848ddd28f808666d5cf7b14311599128c6d85fb7
DIST libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz 3729613 RMD160 010b1ac1795d9833e0ac5d7e8babcbfa7f21914e SHA1 ff6d1d72d9b17b5411dc6fdd4ee6046a8f6676f8 SHA256 eac1d05aa96036819fe8f14f293a2ccc9601e1e32e08ec33e6ed9ed698e76145
-EBUILD adobe-flash-10.0.15.3.ebuild 2826 RMD160 986543a13973aab1248e58645f565c68c06ac090 SHA1 9372fd64a7c41fd11723c9bbc908d958b49ec660 SHA256 a79fa4efafd8102da2302d1976f6e5c8c28ee448be20376a41a5f4b0d94730f1
+EBUILD adobe-flash-10.0.22.87-r1.ebuild 5546 RMD160 bfd48e670055b41697af4bece1ca02ff20a3b010 SHA1 316e3f881f9a6c3b583cbfa6fb60df56beec3bfc SHA256 91755bcbee1b33aec392f35ba34ddeabeed20afd4c188e1abfd88808f3f1e63f
EBUILD adobe-flash-10.0.22.87.ebuild 3807 RMD160 42c541a9c3248a22a1c0989c32cb227c797a42a1 SHA1 91f71ff4c73d09b50b505ec802ba945cbd5a6a9e SHA256 415f468e47438195ee9227b0bc6bdb70b53fbef71c1190c12c95ec781cd786d4
EBUILD adobe-flash-9.0.159.0.ebuild 1847 RMD160 447acbe83660e8e9e01d93e9dc96a93dd58cb405 SHA1 16a28daef4f8a5869c17ca2c7fb417175c4804f4 SHA256 58d0852d6c1222884a6ecf8b18e567b434b99eb4d7247f2ffc328ecd79707d9e
-MISC ChangeLog 16977 RMD160 639cce971c781832de343574762e87f59c1e3036 SHA1 01b41b3241a6e4e17333f45c40986ddabd4700e7 SHA256 de76b7e9879149d0d15e5a482c0d71fd5f2a0c2e9d93847cd7f36608e0c875ba
-MISC metadata.xml 382 RMD160 5cd0a24035f9c6f50aad44ef478a328ba8274fd2 SHA1 31189a8c153d2e68e2984488ca04a42d84fc736e SHA256 05705498ee12c4acaef863eb60800f39c0eac2f76c2113727ff41d6fbede42d5
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.9 (GNU/Linux)
-
-iEYEARECAAYFAknfRnQACgkQOeoy/oIi7uzUVQCeMETpI6Yh7eFR2zqo8QDyKNpy
-EnEAoK5CsR8KAr9w0xfiSaMfxy9e6kwq
-=1ing
------END PGP SIGNATURE-----
+MISC ChangeLog 17287 RMD160 30f2a5f45152983cb7767e10e722787761691000 SHA1 84f7ebfadf59fecf92dc40f283992b196c962bf0 SHA256 7f7d4d35ed6b1fbf18bbfde7850869e4fed0e8e1387195ab7d023f8527e65c67
+MISC metadata.xml 429 RMD160 f5ba3860c5498d5accc68542463c813d4f61f546 SHA1 0693a51309cedd970ee6b0fc30a92a152648d39f SHA256 a43e3365edf85a93e58673f6fa03af6a7573d3ad3f2cb1c0c77ce9134f750fb6
diff --git a/www-plugins/adobe-flash/adobe-flash-10.0.15.3.ebuild b/www-plugins/adobe-flash/adobe-flash-10.0.15.3.ebuild
deleted file mode 100644
index 2be93b99d886..000000000000
--- a/www-plugins/adobe-flash/adobe-flash-10.0.15.3.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.0.15.3.ebuild,v 1.1 2009/04/10 13:14:04 ulm Exp $
-
-inherit nsplugins rpm
-
-DESCRIPTION="Adobe Flash Player"
-SRC_URI="http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-${PV}-release.i386.rpm
-amd64? ( mirror://gentoo/flash-libcompat-0.2.tar.bz2 )"
-HOMEPAGE="http://www.adobe.com/"
-IUSE=""
-SLOT="0"
-
-KEYWORDS="-* amd64 x86"
-LICENSE="AdobeFlash-10"
-RESTRICT="strip mirror"
-
-S="${WORKDIR}"
-
-RDEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs
- app-emulation/emul-linux-x86-gtklibs
- app-emulation/emul-linux-x86-soundlibs
- app-emulation/emul-linux-x86-xlibs )
- x86? ( x11-libs/libXext
- x11-libs/libX11
- x11-libs/libXt
- =x11-libs/gtk+-2*
- media-libs/freetype
- media-libs/fontconfig
- dev-libs/nss
- net-misc/curl
- >=sys-libs/glibc-2.4 )
- media-fonts/corefonts"
-
-# Our new flash-libcompat suffers from the same EXESTACK problem as libcrypto
-# from app-text/acroread, so tell QA to ignore it.
-# Apparently the flash library itself also suffers from this issue
-QA_EXECSTACK="opt/flash-libcompat/libcrypto.so.0.9.7
- opt/netscape/plugins/libflashplayer.so"
-
-pkg_setup() {
- # This is a binary x86 package => ABI=x86
- # Please keep this in future versions
- # Danny van Dyk <kugelfang@gentoo.org> 2005/03/26
- has_multilib_profile && ABI="x86"
-}
-
-src_install() {
- pushd "${S}/usr/lib/flash-plugin"
- exeinto /opt/netscape/plugins
- doexe libflashplayer.so
- inst_plugin /opt/netscape/plugins/libflashplayer.so
- popd
-
- pushd "${S}/usr/share/doc/flash-plugin-${PV}/"
- dodoc readme.txt
- popd
-
- # libcurl and libnss are not currently available in any emul-linux-x86
- # packages, so for amd64 we provide these snarfed out of other binary
- # packages. libcurl and its ssl dependencies come from app-text/acroread;
- # libnss and its friends come from net-libs/xulrunner-bin
- if use amd64; then
- exeinto /opt/flash-libcompat
- pushd "${WORKDIR}/flash-libcompat-0.2/"
- doexe *
- popd
- echo 'LDPATH="/opt/flash-libcompat"' > 99flash-libcompat
- doenvd 99flash-libcompat
- fi
-
- # The magic config file!
- insinto "/etc/adobe"
- doins "${FILESDIR}/mms.cfg"
-}
-
-pkg_postinst() {
- ewarn "Flash player is closed-source, with a long history of security"
- ewarn "issues. Please consider only running flash applets you know to"
- ewarn "be safe."
-
- if has_version 'www-client/mozilla-firefox'; then
- elog "The firefox 'flashblock' extension may help:"
- elog " https://addons.mozilla.org/en-US/firefox/addon/433"
- fi
-
- if has_version 'kde-base/konqueror'; then
- elog "Konqueror users: You may need to follow the instructions here:"
- elog " http://dev.gentoo.org/~lack/konqueror-flash.xml"
- elog "For flash to work with your browser."
- fi
-}
diff --git a/www-plugins/adobe-flash/adobe-flash-10.0.22.87-r1.ebuild b/www-plugins/adobe-flash/adobe-flash-10.0.22.87-r1.ebuild
new file mode 100644
index 000000000000..e3cb2048bbed
--- /dev/null
+++ b/www-plugins/adobe-flash/adobe-flash-10.0.22.87-r1.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.0.22.87-r1.ebuild,v 1.1 2009/07/15 13:39:03 lack Exp $
+
+EAPI=1
+inherit nsplugins rpm multilib
+
+MY_32B_URI="http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-${PV}-release.i386.rpm"
+MY_64B_URI="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${PV}.linux-x86_64.so.tar.gz"
+
+DESCRIPTION="Adobe Flash Player"
+SRC_URI="x86? ( ${MY_32B_URI} )
+amd64? (
+ multilib? (
+ 32bit? ( ${MY_32B_URI} mirror://gentoo/flash-libcompat-0.2.tar.bz2 )
+ 64bit? ( ${MY_64B_URI} )
+ )
+ !multilib? ( ${MY_64B_URI} )
+)"
+HOMEPAGE="http://www.adobe.com/"
+IUSE="multilib +32bit +64bit"
+SLOT="0"
+
+KEYWORDS="-* ~amd64 ~x86"
+LICENSE="AdobeFlash-10"
+RESTRICT="strip mirror"
+
+S="${WORKDIR}"
+
+NATIVE_DEPS="x11-libs/gtk+:2
+ media-libs/fontconfig
+ dev-libs/nss
+ net-misc/curl
+ >=sys-libs/glibc-2.4
+ || ( media-fonts/freefont-ttf media-fonts/corefonts )"
+
+EMUL_DEPS="app-emulation/emul-linux-x86-baselibs
+ app-emulation/emul-linux-x86-gtklibs
+ app-emulation/emul-linux-x86-soundlibs
+ app-emulation/emul-linux-x86-xlibs"
+
+RDEPEND="x86? ( $NATIVE_DEPS )
+ amd64? (
+ multilib? (
+ 64bit? ( $NATIVE_DEPS )
+ 32bit? ( $EMUL_DEPS )
+ )
+ !multilib? ( $NATIVE_DEPS )
+ )"
+
+# Our new flash-libcompat suffers from the same EXESTACK problem as libcrypto
+# from app-text/acroread, so tell QA to ignore it.
+# Apparently the flash library itself also suffers from this issue
+QA_EXECSTACK="opt/flash-libcompat/libcrypto.so.0.9.7
+ opt/netscape/plugins32/libflashplayer.so
+ opt/netscape/plugins/libflashplayer.so"
+
+pkg_setup() {
+ if use x86; then
+ export native_install=1
+ elif use amd64; then
+ # amd64 may unselect the native 64bit install in some circumstances
+ if ! use multilib || use 64bit; then
+ export native_install=1
+ else
+ unset native_install
+ fi
+
+ if [[ $native_install ]]; then
+ # Bug 268336: Some AMD processors fail with native 64-bit flash
+ if ! grep -q lahf_lm /proc/cpuinfo; then
+ eerror "Your processor does not support the 'lahf' instruction which is used"
+ eerror "by Adobe's 64-bit flash binary."
+
+ if use multilib; then
+ eerror "Adjust your USE flags to install only the 32-bit version:"
+ eerror " ${CATEGORY}/$PN[+32bit -64bit]"
+ die "Incompatible processor for true 64-bit flash, install 32-bit only"
+ else
+ die "Incompatible processor for true 64-bit flash, multilib profile required for 32-bit version"
+ fi
+ fi
+ fi
+
+ if use multilib && ! use 32bit && ! use 64bit; then
+ eerror "You must select at least one library USE flag (32bit or 64bit)"
+ die "No library version selected [-32bit -64bit]"
+ fi
+ fi
+}
+
+src_install() {
+ if [[ $native_install ]]; then
+ # 32b RPM has things hidden in funny places
+ use x86 && pushd "${S}/usr/lib/flash-plugin"
+
+ exeinto /opt/netscape/plugins
+ doexe libflashplayer.so
+ inst_plugin /opt/netscape/plugins/libflashplayer.so
+
+ use x86 && popd
+
+ # 64b tarball has no readme file.
+ use x86 && dodoc "${S}/usr/share/doc/flash-plugin-${PV}/readme.txt"
+ fi
+
+ if use amd64 && has_multilib_profile && use 32bit; then
+ oldabi="${ABI}"
+ ABI="x86"
+
+ # 32b plugin
+ pushd "${S}/usr/lib/flash-plugin"
+ exeinto /opt/netscape/plugins32/
+ doexe libflashplayer.so
+ inst_plugin /opt/netscape/plugins32/libflashplayer.so
+ dodoc "${S}/usr/share/doc/flash-plugin-${PV}/readme.txt"
+ popd
+
+ # 32b library compatibility:
+ #
+ # libcurl and libnss are not currently available in any emul-linux-x86
+ # packages, so for amd64 we provide these snarfed out of other binary
+ # packages. libcurl and its ssl dependencies come from
+ # app-text/acroread; libnss and its friends come from
+ # net-libs/xulrunner-bin
+ exeinto /opt/flash-libcompat
+ pushd "${WORKDIR}/flash-libcompat-0.2/"
+ doexe *
+ popd
+ echo 'LDPATH="/opt/flash-libcompat"' > 99flash-libcompat
+ doenvd 99flash-libcompat
+
+ ABI="${oldabi}"
+ fi
+
+ # The magic config file!
+ insinto "/etc/adobe"
+ doins "${FILESDIR}/mms.cfg"
+}
+
+pkg_postinst() {
+ if use amd64; then
+ if has_version 'www-plugins/nspluginwrapper'; then
+ if [[ $native_install ]]; then
+ # TODO: Perhaps parse the output of 'nspluginwrapper -l'
+ # However, the 64b flash plugin makes 'nspluginwrapper -l' segfault.
+ local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so"
+ if [[ -f ${FLASH_WRAPPER} ]]; then
+ einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed"
+ nspluginwrapper -r "${FLASH_WRAPPER}"
+ fi
+ else
+ oldabi="${ABI}"
+ ABI="x86"
+ local FLASH_SOURCE="${ROOT}/usr/$(get_libdir)/${PLUGINS_DIR}/libflashplayer.so"
+
+ einfo "nspluginwrapper detected: Installing plugin wrapper"
+ nspluginwrapper -i "${FLASH_SOURCE}"
+
+ ABI="${oldabi}"
+ fi
+ elif [[ ! $native_install ]]; then
+ einfo "To use the 32-bit flash player in a native 64-bit firefox,"
+ einfo "you must install www-plugins/nspluginwrapper"
+ fi
+ fi
+
+ ewarn "Flash player is closed-source, with a long history of security"
+ 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"
+
+ if has_version 'kde-base/konqueror'; then
+ elog "Konqueror users - You may need to follow the instructions here:"
+ elog " http://www.gentoo.org/proj/en/desktop/kde/kde-flash.xml"
+ elog "For flash to work with your browser."
+ fi
+}
diff --git a/www-plugins/adobe-flash/metadata.xml b/www-plugins/adobe-flash/metadata.xml
index 8be16fe08e9e..d7a439dbf734 100644
--- a/www-plugins/adobe-flash/metadata.xml
+++ b/www-plugins/adobe-flash/metadata.xml
@@ -7,7 +7,8 @@
<name>Jim Ramsay</name>
</maintainer>
<use>
- <flag name='32bit'>For amd64-multilib, installs the 32-bit plugin
- alongside the native 64-bit plugin</flag>
+ <flag name='64bit'>For amd64-multilib, installs the native 64-bit
+ plugin</flag>
+ <flag name='32bit'>For amd64-multilib, installs the 32-bit plugin</flag>
</use>
</pkgmetadata>