diff options
author | Jim Ramsay <lack@gentoo.org> | 2009-02-25 19:22:44 +0000 |
---|---|---|
committer | Jim Ramsay <lack@gentoo.org> | 2009-02-25 19:22:44 +0000 |
commit | 94045ecd33cbd704a1728314cbc94511bfc4c3b4 (patch) | |
tree | 4c06f52ff46304252498d8d6cf2a53b2f757ec5e /net-www | |
parent | Version bump (diff) | |
download | gentoo-2-94045ecd33cbd704a1728314cbc94511bfc4c3b4.tar.gz gentoo-2-94045ecd33cbd704a1728314cbc94511bfc4c3b4.tar.bz2 gentoo-2-94045ecd33cbd704a1728314cbc94511bfc4c3b4.zip |
Added workaround so duplicate 32bit wrappers are not installed (or more precicely, immediately removed) for multilib systems which may have identical 32bit and 64bit plugins installed simultaneously, such as >=net-www/netscape-flash-10.0.22.87
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/nspluginwrapper/ChangeLog | 9 | ||||
-rw-r--r-- | net-www/nspluginwrapper/nspluginwrapper-1.0.0.ebuild | 32 | ||||
-rw-r--r-- | net-www/nspluginwrapper/nspluginwrapper-1.2.2.ebuild | 30 |
3 files changed, 55 insertions, 16 deletions
diff --git a/net-www/nspluginwrapper/ChangeLog b/net-www/nspluginwrapper/ChangeLog index 6a81859a1a4c..340fb7ae3e42 100644 --- a/net-www/nspluginwrapper/ChangeLog +++ b/net-www/nspluginwrapper/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-www/nspluginwrapper # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/ChangeLog,v 1.25 2009/02/03 00:05:59 chutzpah Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/ChangeLog,v 1.26 2009/02/25 19:22:44 lack Exp $ + + 25 Feb 2009; Jim Ramsay <lack@gentoo.org> nspluginwrapper-1.0.0.ebuild, + nspluginwrapper-1.2.2.ebuild: + Added workaround so duplicate 32bit wrappers are not installed (or more + precicely, immediately removed) for multilib systems which may have + identical 32bit and 64bit plugins installed simultaneously, such as + >=net-www/netscape-flash-10.0.22.87 03 Feb 2009; Patrick McLean <chutzpah@gentoo.org> nspluginwrapper-1.2.2.ebuild: diff --git a/net-www/nspluginwrapper/nspluginwrapper-1.0.0.ebuild b/net-www/nspluginwrapper/nspluginwrapper-1.0.0.ebuild index 21610edc5073..093f72750fb7 100644 --- a/net-www/nspluginwrapper/nspluginwrapper-1.0.0.ebuild +++ b/net-www/nspluginwrapper/nspluginwrapper-1.0.0.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/nspluginwrapper-1.0.0.ebuild,v 1.2 2008/10/02 03:16:56 chutzpah Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/nspluginwrapper-1.0.0.ebuild,v 1.3 2009/02/25 19:22:44 lack Exp $ inherit eutils nsplugins flag-o-matic multilib @@ -20,6 +20,26 @@ RDEPEND=">=x11-libs/gtk+-2 DEPEND="${RDEPEND} dev-util/pkgconfig" +autoinstall() { + if [[ -x /usr/bin/${PN} ]]; then + einfo "Auto installing 32bit plugins..." + ${PN} -a -i + ls /usr/lib64/nsbrowser/plugins + + # Remove wrappers if equivalent 64-bit plugins exist + # TODO: May be better to patch nspluginwrapper so it doesn't create + # duplicate wrappers in the first place... + local DIR64="${ROOT}/usr/lib64/nsbrowser/plugins/" + for f in "${DIR64}"/npwrapper.*.so; do + local PLUGIN=${f##*/npwrapper.} + if [[ -f ${DIR64}/${PLUGIN} ]]; then + einfo " Removing duplicate wrapper for native 64-bit ${PLUGIN}" + ${PN} -r "${f}" + fi + done + fi +} + src_compile() { econf --with-biarch \ --with-lib32=$(ABI=x86 get_libdir) \ @@ -38,8 +58,7 @@ src_install() { } pkg_postinst() { - einfo "Auto installing 32bit plugins..." - nspluginwrapper -a -i + autoinstall elog "Any 32bit plugins you currently have installed have now been" elog "configured to work in a 64bit browser. Any plugins you install in" elog "the future will first need to be setup with:" @@ -58,8 +77,5 @@ pkg_prerm() { } pkg_postrm() { - if [[ -x /usr/bin/nspluginwrapper ]]; then - einfo "Auto installing 32bit plugins..." - nspluginwrapper -a -i - fi + autoinstall } diff --git a/net-www/nspluginwrapper/nspluginwrapper-1.2.2.ebuild b/net-www/nspluginwrapper/nspluginwrapper-1.2.2.ebuild index 63d35aa0bb90..9c6138dadea3 100644 --- a/net-www/nspluginwrapper/nspluginwrapper-1.2.2.ebuild +++ b/net-www/nspluginwrapper/nspluginwrapper-1.2.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/nspluginwrapper-1.2.2.ebuild,v 1.2 2009/02/03 00:05:59 chutzpah Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/nspluginwrapper-1.2.2.ebuild,v 1.3 2009/02/25 19:22:44 lack Exp $ inherit eutils nsplugins multilib @@ -21,6 +21,26 @@ RDEPEND=">=x11-libs/gtk+-2 DEPEND="${RDEPEND} dev-util/pkgconfig" +autoinstall() { + if [[ -x /usr/bin/${PN} ]]; then + einfo "Auto installing 32bit plugins..." + ${PN} -a -i + ls /usr/lib64/nsbrowser/plugins + + # Remove wrappers if equivalent 64-bit plugins exist + # TODO: May be better to patch nspluginwrapper so it doesn't create + # duplicate wrappers in the first place... + local DIR64="${ROOT}/usr/lib64/nsbrowser/plugins/" + for f in "${DIR64}"/npwrapper.*.so; do + local PLUGIN=${f##*/npwrapper.} + if [[ -f ${DIR64}/${PLUGIN} ]]; then + einfo " Removing duplicate wrapper for native 64-bit ${PLUGIN}" + ${PN} -r "${f}" + fi + done + fi +} + src_compile() { econf --with-biarch \ --with-lib32=$(ABI=x86 get_libdir) \ @@ -41,8 +61,7 @@ src_install() { } pkg_postinst() { - einfo "Auto installing 32bit plugins..." - ${PN} -a -i + autoinstall elog "Any 32bit plugins you currently have installed have now been" elog "configured to work in a 64bit browser. Any plugins you install in" elog "the future will first need to be setup with:" @@ -61,8 +80,5 @@ pkg_prerm() { } pkg_postrm() { - if [[ -x /usr/bin/${PN} ]]; then - einfo "Auto installing 32bit plugins..." - ${PN} --auto --install - fi + autoinstall } |