Gentoo Archives: gentoo-commits

From: "Jim Ramsay (lack)" <lack@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/adobe-flash: ChangeLog adobe-flash-10.2.161.23_pre20100927.ebuild adobe-flash-10.2.161.22_pre20100915.ebuild
Date: Sat, 09 Oct 2010 20:04:19
Message-Id: 20101009193140.288E92004C@flycatcher.gentoo.org
1 lack 10/10/09 19:31:40
2
3 Modified: ChangeLog
4 Added: adobe-flash-10.2.161.23_pre20100927.ebuild
5 Removed: adobe-flash-10.2.161.22_pre20100915.ebuild
6 Log:
7 Next Square preview release is out, and the previous release now fails to fetch. Bug #339551
8
9 (Portage version: 2.1.9.14/cvs/Linux i686)
10
11 Revision Changes Path
12 1.49 www-plugins/adobe-flash/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.49&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.49&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?r1=1.48&r2=1.49
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v
21 retrieving revision 1.48
22 retrieving revision 1.49
23 diff -u -r1.48 -r1.49
24 --- ChangeLog 17 Sep 2010 18:25:17 -0000 1.48
25 +++ ChangeLog 9 Oct 2010 19:31:40 -0000 1.49
26 @@ -1,6 +1,14 @@
27 # ChangeLog for www-plugins/adobe-flash
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.48 2010/09/17 18:25:17 lack Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.49 2010/10/09 19:31:40 lack Exp $
31 +
32 +*adobe-flash-10.2.161.23_pre20100927 (09 Oct 2010)
33 +
34 + 09 Oct 2010; Jim Ramsay <lack@g.o>
35 + -adobe-flash-10.2.161.22_pre20100915.ebuild,
36 + +adobe-flash-10.2.161.23_pre20100927.ebuild:
37 + Next Square preview release is out, and the previous release now fails to
38 + fetch. Bug #339551
39
40 17 Sep 2010; Jim Ramsay <lack@g.o>
41 adobe-flash-10.2.161.22_pre20100915.ebuild:
42
43
44
45 1.1 www-plugins/adobe-flash/adobe-flash-10.2.161.23_pre20100927.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.161.23_pre20100927.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.161.23_pre20100927.ebuild?rev=1.1&content-type=text/plain
49
50 Index: adobe-flash-10.2.161.23_pre20100927.ebuild
51 ===================================================================
52 # Copyright 1999-2010 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.161.23_pre20100927.ebuild,v 1.1 2010/10/09 19:31:40 lack Exp $
55
56 EAPI=3
57 inherit nsplugins multilib toolchain-funcs versionator
58
59 # Specal version parsing for date-based 'square' releases
60 # For proper date ordering in the ebuild we are using preCCYYMMDD whereas Adobe
61 # uses MMDDYY
62 EBUILD_DATE=$(get_version_component_range $(get_version_component_count))
63 DATE_SUFFIX=${EBUILD_DATE: -4}${EBUILD_DATE:5:2}
64 MY_32B_URI="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer_square_p2_32bit_linux_${DATE_SUFFIX}.tar.gz"
65 MY_64B_URI="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer_square_p2_64bit_linux_${DATE_SUFFIX}.tar.gz"
66
67 DESCRIPTION="Adobe Flash Player"
68 SRC_URI="x86? ( ${MY_32B_URI} )
69 amd64? (
70 multilib? (
71 32bit? ( ${MY_32B_URI} )
72 64bit? ( ${MY_64B_URI} )
73 )
74 !multilib? ( ${MY_64B_URI} )
75 )"
76 #HOMEPAGE="http://www.adobe.com/"
77 HOMEPAGE="http://labs.adobe.com/technologies/flashplayer10/"
78 IUSE="multilib nspluginwrapper +32bit +64bit"
79 SLOT="0"
80
81 KEYWORDS="-* ~amd64 ~x86"
82 LICENSE="AdobeFlash-10.1"
83 RESTRICT="strip mirror"
84
85 S="${WORKDIR}"
86
87 NATIVE_DEPS="x11-libs/gtk+:2
88 media-libs/fontconfig
89 dev-libs/nss
90 net-misc/curl
91 >=sys-libs/glibc-2.4"
92
93 EMUL_DEPS=">=app-emulation/emul-linux-x86-gtklibs-20100409-r1
94 app-emulation/emul-linux-x86-soundlibs"
95
96 DEPEND="amd64? ( multilib? ( 32bit? ( nspluginwrapper? (
97 www-plugins/nspluginwrapper ) ) ) )"
98 RDEPEND="x86? ( $NATIVE_DEPS )
99 amd64? (
100 multilib? (
101 64bit? ( $NATIVE_DEPS )
102 32bit? ( $EMUL_DEPS )
103 )
104 !multilib? ( $NATIVE_DEPS )
105 )
106 || ( media-fonts/liberation-fonts media-fonts/corefonts )
107 ${DEPEND}"
108
109 # Where should this all go? (Bug #328639)
110 INSTALL_BASE="opt/Adobe/flash-player"
111
112 # Ignore QA warnings in these binary closed-source libraries, since we can't fix
113 # them:
114 QA_EXECSTACK="${INSTALL_BASE}32/libflashplayer.so
115 ${INSTALL_BASE}/libflashplayer.so"
116
117 QA_DT_HASH="${INSTALL_BASE}32/libflashplayer.so
118 ${INSTALL_BASE}/libflashplayer.so"
119
120 pkg_setup() {
121 einfo "Date is $EBUILD_DATE suffix is $DATE_SUFFIX"
122 if use x86; then
123 export native_install=1
124 elif use amd64; then
125 # amd64 users may unselect the native 64bit binary, if they choose
126 if ! use multilib || use 64bit; then
127 export native_install=1
128 else
129 unset native_install
130 fi
131
132 if use multilib && use 32bit; then
133 export amd64_32bit=1
134 else
135 unset amd64_32bit
136 fi
137
138 if use multilib && ! use 32bit && ! use 64bit; then
139 eerror "You must select at least one library USE flag (32bit or 64bit)"
140 die "No library version selected [-32bit -64bit]"
141 fi
142
143 if [[ $native_install ]]; then
144 # 64bit flash requires the 'lahf' instruction (bug #268336)
145 # Also, check if *any* of the processors are affected (bug #286159)
146 if grep '^flags' /proc/cpuinfo | grep -qv 'lahf_lm'; then
147 export need_lahf_wrapper=1
148 else
149 unset need_lahf_wrapper
150 fi
151 fi
152 fi
153 }
154
155 src_unpack() {
156 # In this pre-release version, both tarballs have just 'libflashplayer.so'
157 # and no prefix directory, so put the 32-bit one somewhere else.
158 if [[ $amd64_32bit ]]; then
159 mkdir 32bit
160 pushd "${S}/32bit"
161 unpack $(basename $MY_32B_URI)
162 popd
163 unpack $(basename $MY_64B_URI)
164 else
165 default_src_unpack
166 fi
167 }
168
169 src_compile() {
170 if [[ $need_lahf_wrapper ]]; then
171 # This experimental wrapper, from Maks Verver via bug #268336 should
172 # emulate the missing lahf instruction affected platforms.
173 $(tc-getCC) -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so \
174 "${FILESDIR}/flashplugin-lahf-fix.c" \
175 || die "Compile of flashplugin-lahf-fix.so failed"
176 fi
177 }
178
179 src_install() {
180 if [[ $native_install ]]; then
181 exeinto /${INSTALL_BASE}
182 doexe libflashplayer.so
183 inst_plugin /${INSTALL_BASE}/libflashplayer.so
184 fi
185
186 if [[ $need_lahf_wrapper ]]; then
187 # This experimental wrapper, from Maks Verver via bug #268336 should
188 # emulate the missing lahf instruction affected platforms.
189 exeinto /${INSTALL_BASE}
190 doexe flashplugin-lahf-fix.so
191 inst_plugin /${INSTALL_BASE}/flashplugin-lahf-fix.so
192 fi
193
194 if [[ $amd64_32bit ]]; then
195 local oldabi="${ABI}"
196 ABI="x86"
197
198 # 32b plugin
199 pushd "${S}/32bit"
200 exeinto /${INSTALL_BASE}32
201 doexe libflashplayer.so
202 inst_plugin /${INSTALL_BASE}32/libflashplayer.so
203 popd
204
205 ABI="${oldabi}"
206 fi
207
208 # The magic config file!
209 insinto "/etc/adobe"
210 doins "${FILESDIR}/mms.cfg"
211 }
212
213 pkg_postinst() {
214 if use amd64; then
215 if has_version 'www-plugins/nspluginwrapper'; then
216 if [[ $native_install ]]; then
217 # TODO: Perhaps parse the output of 'nspluginwrapper -l'
218 # However, the 64b flash plugin makes
219 # 'nspluginwrapper -l' segfault.
220 local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so"
221 if [[ -f ${FLASH_WRAPPER} ]]; then
222 einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed"
223 nspluginwrapper -r "${FLASH_WRAPPER}"
224 fi
225 if [[ $need_lahf_wrapper ]]; then
226 ewarn "Your processor does not support the 'lahf' instruction which is used"
227 ewarn "by Adobe's 64-bit flash binary. We have installed a wrapper which"
228 ewarn "should allow this plugin to run. If you encounter problems, please"
229 ewarn "adjust your USE flags to install only the 32-bit version and reinstall:"
230 ewarn " ${CATEGORY}/$PN[+32bit -64bit]"
231 elog
232 fi
233 fi
234 if [[ $amd64_32bit ]]; then
235 einfo "nspluginwrapper detected: Installing plugin wrapper"
236 local oldabi="${ABI}"
237 ABI="x86"
238 local FLASH_SOURCE="${ROOT}/${INSTALL_BASE}32/libflashplayer.so"
239 nspluginwrapper -i "${FLASH_SOURCE}"
240 ABI="${oldabi}"
241 ewarn "Using adobe-flash-10.1 in a 64-bit browser is unstable:"
242 ewarn " http://bugs.gentoo.org/324365"
243 ewarn "The recommended configuration is to use the 32-bit plugin"
244 ewarn "in a 32-bit browser such as www-client/firefox-bin"
245 elog
246 fi
247 elif [[ ! $native_install ]]; then
248 elog "To use the 32-bit flash player in a native 64-bit browser,"
249 elog "you must install www-plugins/nspluginwrapper"
250 fi
251 fi
252
253 ewarn "Flash player is closed-source, with a long history of security"
254 ewarn "issues. Please consider only running flash applets you know to"
255 ewarn "be safe. The 'flashblock' extension may help for mozilla users:"
256 ewarn " https://addons.mozilla.org/en-US/firefox/addon/433"
257 }