diff options
author | Paweł Hajdan <phajdan.jr@gentoo.org> | 2010-12-18 15:05:43 +0000 |
---|---|---|
committer | Paweł Hajdan <phajdan.jr@gentoo.org> | 2010-12-18 15:05:43 +0000 |
commit | 1ac40d295a0f0e25ee8e17ea18dd55eac406d306 (patch) | |
tree | b37b9be95ad4937ba948b4fb5da9b3209e2a1a71 | |
parent | Delete older ebuild. (diff) | |
download | historical-1ac40d295a0f0e25ee8e17ea18dd55eac406d306.tar.gz historical-1ac40d295a0f0e25ee8e17ea18dd55eac406d306.tar.bz2 historical-1ac40d295a0f0e25ee8e17ea18dd55eac406d306.zip |
Version bump for dev channel release. Fixes bug #348458 by Mike Gilbert <floppymaster@gmail.com>, used modified patch by Mike Gilbert <floppymaster@gmail.com>. Remove old ebuilds and patches.
Package-Manager: portage-2.1.9.24/cvs/Linux i686
-rw-r--r-- | www-client/chromium/ChangeLog | 12 | ||||
-rw-r--r-- | www-client/chromium/Manifest | 11 | ||||
-rw-r--r-- | www-client/chromium/chromium-10.0.612.1.ebuild (renamed from www-client/chromium/chromium-9.0.597.16.ebuild) | 11 | ||||
-rw-r--r-- | www-client/chromium/chromium-8.0.552.215.ebuild | 276 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-locale-glib-r0.patch | 415 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-system-icu-r2.patch | 36 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-tests-r0.patch | 11 |
7 files changed, 56 insertions, 716 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index 8a23789a7ed0..25a3649c8683 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for www-client/chromium # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.243 2010/12/16 15:23:43 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.244 2010/12/18 15:05:43 phajdan.jr Exp $ + +*chromium-10.0.612.1 (18 Dec 2010) + + 18 Dec 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> + -files/chromium-locale-glib-r0.patch, -chromium-8.0.552.215.ebuild, + +files/chromium-system-icu-r2.patch, -chromium-9.0.597.16.ebuild, + -files/chromium-tests-r0.patch, +chromium-10.0.612.1.ebuild: + Version bump for dev channel release. Fixes bug #348458 by Mike Gilbert + <floppymaster@gmail.com>, used modified patch by Mike Gilbert + <floppymaster@gmail.com>. Remove old ebuilds and patches. 16 Dec 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> chromium-9.0.597.19.ebuild: diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index 77ee114bb948..f8f51deb749d 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -1,21 +1,18 @@ AUX chromium-gecko-mediaplayer-r0.patch 590 RMD160 8b01e801ef4a8d3aaa842ab217929e71ebb70a87 SHA1 916ecd1c7a405fc12de579538c07c42cd9e84ecc SHA256 491cfaa353ad965a0cbfe2fc6370e4df5d1cd55398698b838996053f9e46f12c AUX chromium-launcher.sh 648 RMD160 d9331083750789d5c514c0fa1843037337ac476a SHA1 015efb2faacfc000c23644323c56795acfb7bc7e SHA256 3ae91f5bee0107adf3511205a062465901c7daaa13e3758ae970a6da4f0fa12c -AUX chromium-locale-glib-r0.patch 14967 RMD160 4764e11584bc796004acdfb6f997b01d5045ad8f SHA1 aba8d20bff1753303749f7e1c710529de8077c18 SHA256 afdc118a01b0ca7ba6d524d8e30fde8f6bf2cb2ec29959a788e5636066a53b06 AUX chromium-locale-glib-r1.patch 14823 RMD160 78159c294e953941b35346fc3b228ccbdd988b0d SHA1 b6de887cc67e3db01edb22ccd2eec3048f34df87 SHA256 71b1c2c3cd7382938e1cb4097428ded1dd019b8ef6be3ed6e882647e8e65b2f6 AUX chromium-system-icu-r1.patch 735 RMD160 d3fabb98c3de79afd87f4dad2fd842eac31b0167 SHA1 6f2d38dcd26dbd948237a3a6185e2dfff753fb5a SHA256 f37bcb4938d7600a1c56fd6494fa8680ff19749a3a50df82b5c88b8c996e2185 +AUX chromium-system-icu-r2.patch 1082 RMD160 7b908b8b34c0beaa969aa6c3bc4d0349ca8a7616 SHA1 17e9c7704164ac224e227e535bd4031670994590 SHA256 1bbdec893ed6d158981e33a2f661a47733ceaec3b686025ba5f233f3fe031264 AUX chromium-system-vpx-r1.patch 2171 RMD160 7b5e5e624084a0a63c15e7e783676a9365ad211f SHA1 68142ca461ec721f8134af2e9cf45ff18093da10 SHA256 684a88573c33bb5c987f7e08611b4a3a019eac9ea9ec14fe60f79141e75763c5 -AUX chromium-tests-r0.patch 555 RMD160 6f26a053196f15924e939d1d84b959ccae68eb8d SHA1 be5c142e2a36dcc5eb7be1a619528be41cb1c293 SHA256 a7f1fd8b31491401420705d89e38f0e4811a92066ede1d6019275c46360d6711 AUX chromium.xml 390 RMD160 6b2f901da76555a7112f71a6f9dae6e2e3307324 SHA1 81148a0b094bc697ff2c9d33efe976b1bffb72a3 SHA256 a81c6257346eaa4f6389fc9ea8834fd2dd3b006cf4e9e999028aca812d76fe9a AUX extract_v8_version.py 731 RMD160 71b134c9b88902259cb20ec232b8da6c3d8a15de SHA1 3dc5d6f9437f4b0ffb584395e19663450384b53a SHA256 4011f1e2f44bd18ad1266dffc1d3fbc13a6430afade2b19240b31ee9437dcbda AUX v8.gyp 2602 RMD160 2949c9e2d8e2297182130e5984fb5f114c260a81 SHA1 7d32a04a7a921f30b0c3ed33a5593f1059832c96 SHA256 bc5342501d71754f23bd87914bb11841a7487330ba2f0462611dd1b0f99a2a43 -DIST chromium-8.0.552.215.tar.bz2 135971053 RMD160 fd971365dc103e227a50743877068705d6097e1c SHA1 fc039b5cb6a75dd967e152d9b5ab3274d5e94b46 SHA256 fb34f28446ef6835f54f2b0749c040dedf95646858c27a72031dae39b500a44f +DIST chromium-10.0.612.1.tar.bz2 143485277 RMD160 396eaeb7d25ddb9b372be52d93a1de65ab646edf SHA1 96085dfee33727ff121d955dc093f3e293a7d1dc SHA256 dc1e0ccf1e56f5111acfb0686283bd2e8557a94513c9087a00910408f8fe89e4 DIST chromium-8.0.552.224.tar.bz2 135345394 RMD160 e7bed4bc0b4d851e83bfc351ceca9af4ae739dad SHA1 4544ec2f753893e9a5426e4bad353bad8fd25f8a SHA256 c10b5f7cbafbc430ba25f6cdc00af5c86c6216b280101df2036a89474b75a848 -DIST chromium-9.0.597.16.tar.bz2 141678073 RMD160 62c5f53528cb8d7794e0e4a30c0a9b42fc304613 SHA1 3958b30cd2687121d9f55adebd1d8da80065ea48 SHA256 469704126f081b97c4d56204babeb5898a4eea9d5802534c333cd12013a856ee DIST chromium-9.0.597.19.tar.bz2 141604890 RMD160 9333fe36501215c2c3f717525216ec1f04ffd8b7 SHA1 01086ba4d186893b0a909be5f4c19c6dbf599baf SHA256 b3a1ae7aed12f8ab4d46ac9571259e1666e2abdd24c0a5d08638ea1b94d3c681 -EBUILD chromium-8.0.552.215.ebuild 8603 RMD160 5e9da9d8720bcbdea61e7b88098a8954a7c96241 SHA1 3c0e72fdb99230bae9b248d5643540a6294e1d5d SHA256 f8f0ff88c24a9cc3c6a39ff58bbe535bf7ad78b91fa8f1042cc85847c860a4c5 +EBUILD chromium-10.0.612.1.ebuild 9703 RMD160 2f85537003b7395700e721f74893d2dda343180a SHA1 4423bfe30808ed0768df6544118881f0e2c31133 SHA256 f000bb3efd7fda47d1fccc138cfaefc2deff8b9ce781eb7227388e15e4f26c58 EBUILD chromium-8.0.552.224.ebuild 8606 RMD160 da7aba06f58b5f00f49fa2b5377be60f986ea7b4 SHA1 3c7127b56601c7db9684d561fffed18ed1246fd4 SHA256 5b4ca0dcf464bd316fd5d8ea36f10a2553748d0df821eed8a026a03c5f0e943f -EBUILD chromium-9.0.597.16.ebuild 9758 RMD160 5c8e2fc44cd84335e24c9297cb767384c7a81955 SHA1 88cc9b3672534fc7e2cc9b0bbbb7431a899565fd SHA256 8499f95128af69e5cf8a83c8c51ceaedcc4e20b759d38dac0c660b7f06ef46fd EBUILD chromium-9.0.597.19.ebuild 9757 RMD160 9cd2c3cccf511a487cdf37cc3cd6f1e7beea1d52 SHA1 7168fe29e7321cf84df4a912f794d1ac77065b6b SHA256 0bdcaaf83a5c3134359ad64f2fcaf362ac5b94d1de7147ba4b71e71b9e153a27 EBUILD chromium-9999.ebuild 11360 RMD160 de86664824c5d6229959f69765567af3bcee89cf SHA1 c8540296db206ab2e6c4fb88df2ccb98e983a66b SHA256 93c331424c5fa68389ca925642d4bf4cf4d28a70ce98c16f6d747ba35db6a21d -MISC ChangeLog 53704 RMD160 71cf60bbe34c5a9eecf1abd0d81bc4ac5ac83199 SHA1 3ffd9f76957c0768bda63cbd8bdadc5858e9d337 SHA256 6055550e3c68eecd19965c09cf00cc6de9ccb8f5ad5c01d78645aedb5be0fa9f +MISC ChangeLog 54195 RMD160 7cb18cbbd23160f37f181918a827b7f873980482 SHA1 ec3b741ab4c7411a330a1f004390ece21e5cfadc SHA256 2987e52834d97965bdb2df16a4cf8fc33d6750f709a76aa2fc07c33d0d576587 MISC metadata.xml 607 RMD160 98f163b667c92c149e6ad82352ff5a1ea076361f SHA1 0d7d96013e31288c37a0e245cf2b538af1a46eaf SHA256 1d94b496c34342ce43cf7b1c6887d90930c0531e903e512d2d132e79e1d0d27d diff --git a/www-client/chromium/chromium-9.0.597.16.ebuild b/www-client/chromium/chromium-10.0.612.1.ebuild index 7f996eedce5c..a537609067c8 100644 --- a/www-client/chromium/chromium-9.0.597.16.ebuild +++ b/www-client/chromium/chromium-10.0.612.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9.0.597.16.ebuild,v 1.1 2010/12/10 19:50:12 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-10.0.612.1.ebuild,v 1.1 2010/12/18 15:05:43 phajdan.jr Exp $ EAPI="3" PYTHON_DEPEND="2:2.6" @@ -14,14 +14,14 @@ SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" +KEYWORDS="~amd64 ~x86" IUSE="cups +gecko-mediaplayer gnome gnome-keyring system-sqlite system-v8" RDEPEND="app-arch/bzip2 system-sqlite? ( - >=dev-db/sqlite-3.6.23.1[fts3,icu,secure-delete,threadsafe] + >=dev-db/sqlite-3.7.2[fts3,icu,secure-delete,threadsafe] ) - system-v8? ( >=dev-lang/v8-2.5.9.1 ) + system-v8? ( >=dev-lang/v8-3.0.0.1 ) dev-libs/dbus-glib >=dev-libs/icu-4.4.1 >=dev-libs/libevent-1.4.13 @@ -107,8 +107,7 @@ src_prepare() { # Make sure we don't use bundled libvpx headers. epatch "${FILESDIR}"/${PN}-system-vpx-r1.patch - # Small fixes to make tests compile, to be upstreamed. - epatch "${FILESDIR}"/${PN}-tests-r0.patch + epatch "${FILESDIR}"/${PN}-system-icu-r2.patch remove_bundled_lib "third_party/bzip2" remove_bundled_lib "third_party/codesighs" diff --git a/www-client/chromium/chromium-8.0.552.215.ebuild b/www-client/chromium/chromium-8.0.552.215.ebuild deleted file mode 100644 index f3aa503872fb..000000000000 --- a/www-client/chromium/chromium-8.0.552.215.ebuild +++ /dev/null @@ -1,276 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-8.0.552.215.ebuild,v 1.3 2010/12/09 16:14:13 rich0 Exp $ - -EAPI="2" - -inherit eutils flag-o-matic multilib pax-utils portability toolchain-funcs - -DESCRIPTION="Open-source version of Google Chrome web browser" -HOMEPAGE="http://chromium.org/" -SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm x86" -IUSE="cups +gecko-mediaplayer gnome gnome-keyring system-sqlite system-v8" - -RDEPEND="app-arch/bzip2 - system-sqlite? ( - >=dev-db/sqlite-3.6.23.1[fts3,icu,secure-delete,threadsafe] - ) - system-v8? ( ~dev-lang/v8-2.4.9.13 ) - >=dev-libs/icu-4.4.1 - >=dev-libs/libevent-1.4.13 - dev-libs/libxml2 - dev-libs/libxslt - >=dev-libs/nss-3.12.3 - >=gnome-base/gconf-2.24.0 - gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) - >=media-libs/alsa-lib-1.0.19 - virtual/jpeg - media-libs/libpng - >=media-video/ffmpeg-0.6_p25423[threads] - cups? ( >=net-print/cups-1.3.11 ) - sys-libs/zlib - >=x11-libs/gtk+-2.14.7 - x11-libs/libXScrnSaver" -DEPEND="${RDEPEND} - dev-lang/perl - >=dev-util/gperf-3.0.3 - >=dev-util/pkgconfig-0.23 - sys-devel/flex" -RDEPEND+=" - || ( - x11-themes/gnome-icon-theme - x11-themes/oxygen-molecule - x11-themes/tango-icon-theme - x11-themes/xfce4-icon-theme - ) - x11-misc/xdg-utils - virtual/ttf-fonts - gecko-mediaplayer? ( !www-plugins/gecko-mediaplayer[gnome] )" - -remove_bundled_lib() { - einfo "Removing bundled library $1 ..." - local out - out="$(find $1 -type f \! -iname '*.gyp' -print -delete)" \ - || die "failed to remove bundled library $1" - if [[ -z $out ]]; then - die "no files matched when removing bundled library $1" - fi -} - -pkg_setup() { - CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" - - # Make sure the build system will use the right tools, bug #340795. - tc-export AR CC CXX RANLIB - - # Prevent user problems like bug #299777. - if ! grep -q /dev/shm <<< $(get_mounts); then - ewarn "You don't have tmpfs mounted at /dev/shm." - ewarn "${PN} may fail to start in that configuration." - ewarn "Please uncomment the /dev/shm entry in /etc/fstab," - ewarn "and run 'mount /dev/shm'." - fi - if [ `stat -c %a /dev/shm` -ne 1777 ]; then - ewarn "/dev/shm does not have correct permissions." - ewarn "${PN} may fail to start in that configuration." - ewarn "Please run 'chmod 1777 /dev/shm'." - fi -} - -src_prepare() { - # Small fix to the system-provided icu support, - # to be upstreamed. - epatch "${FILESDIR}"/${PN}-system-icu-r1.patch - - # Enable optional support for gecko-mediaplayer. - epatch "${FILESDIR}"/${PN}-gecko-mediaplayer-r0.patch - - # Backport a fix for bug #343971. - epatch "${FILESDIR}"/${PN}-locale-glib-r1.patch - - remove_bundled_lib "third_party/bzip2" - remove_bundled_lib "third_party/codesighs" - remove_bundled_lib "third_party/icu" - remove_bundled_lib "third_party/jemalloc" - remove_bundled_lib "third_party/lcov" - remove_bundled_lib "third_party/libevent" - remove_bundled_lib "third_party/libjpeg" - remove_bundled_lib "third_party/libpng" - remove_bundled_lib "third_party/libxml" - remove_bundled_lib "third_party/libxslt" - remove_bundled_lib "third_party/lzma_sdk" - remove_bundled_lib "third_party/molokocacao" - remove_bundled_lib "third_party/ocmock" - remove_bundled_lib "third_party/pyftpdlib" - remove_bundled_lib "third_party/simplejson" - remove_bundled_lib "third_party/tlslite" - # TODO: also remove third_party/ffmpeg (needs to be compile-tested). - # TODO: also remove third_party/zlib. For now the compilation fails if we - # remove it (minizip-related). - - if use system-sqlite; then - remove_bundled_lib "third_party/sqlite/src" - remove_bundled_lib "third_party/sqlite/preprocessed" - fi - - if use system-v8; then - # Provide our own gyp file that links with the system v8. - # TODO: move this upstream. - cp "${FILESDIR}"/v8.gyp v8/tools/gyp || die - - remove_bundled_lib "v8" - - # The implementation files include v8 headers with full path, - # like #include "v8/include/v8.h". Make sure the system headers - # will be used. - # TODO: find a solution that can be upstreamed. - rmdir v8/include || die - ln -s /usr/include v8/include || die - fi -} - -src_configure() { - local myconf="" - - # Never tell the build system to "enable" SSE2, it has a few unexpected - # additions, bug #336871. - myconf+=" -Ddisable_sse2=1" - - # Use system-provided libraries. - # TODO: use_system_hunspell (upstream changes needed). - # TODO: use_system_ssl (need to consult upstream). - myconf+=" - -Duse_system_bzip2=1 - -Duse_system_ffmpeg=1 - -Duse_system_icu=1 - -Duse_system_libevent=1 - -Duse_system_libjpeg=1 - -Duse_system_libpng=1 - -Duse_system_libxml=1 - -Duse_system_zlib=1" - - if use system-sqlite; then - myconf+=" -Duse_system_sqlite=1" - fi - - # The dependency on cups is optional, see bug #324105. - if use cups; then - myconf+=" -Duse_cups=1" - else - myconf+=" -Duse_cups=0" - fi - - if use "gnome-keyring"; then - myconf+=" -Duse_gnome_keyring=1 -Dlinux_link_gnome_keyring=1" - else - # TODO: we should also disable code trying to dlopen - # gnome-keyring in that case. - myconf+=" -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0" - fi - - # Enable sandbox. - myconf+=" - -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox - -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" - - if host-is-pax; then - # Prevent the build from failing (bug #301880). The performance - # difference is very small. - myconf+=" -Dv8_use_snapshot=0" - fi - - if use gecko-mediaplayer; then - # Disable hardcoded blacklist for gecko-mediaplayer. - # When www-plugins/gecko-mediaplayer is compiled with USE=gnome, it causes - # the browser to hang. We can handle the situation via dependencies, - # thus making it possible to use gecko-mediaplayer. - append-flags -DGENTOO_CHROMIUM_ENABLE_GECKO_MEDIAPLAYER - fi - - # Our system ffmpeg should support more codecs than the bundled one - # for Chromium. - myconf+=" -Dproprietary_codecs=1" - - # Use target arch detection logic from bug #296917. - local myarch="$ABI" - [[ $myarch = "" ]] && myarch="$ARCH" - - if [[ $myarch = amd64 ]] ; then - myconf+=" -Dtarget_arch=x64" - elif [[ $myarch = x86 ]] ; then - myconf+=" -Dtarget_arch=ia32" - elif [[ $myarch = arm ]] ; then - # TODO: check this again after - # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed. - append-flags -fno-tree-sink - - myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" - else - die "Failed to determine target arch, got '$myarch'." - fi - - if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then - myconf+=" -Dno_strict_aliasing=1 -Dgcc_version=44" - fi - - # Work around a likely GCC bug, see bug #331945. - if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then - append-flags -fno-ipa-cp - fi - - # Make sure that -Werror doesn't get added to CFLAGS by the build system. - # Depending on GCC version the warnings are different and we don't want - # the build to fail because of that. - myconf+=" -Dwerror=" - - build/gyp_chromium --depth=. ${myconf} || die -} - -src_compile() { - emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die -} - -src_install() { - exeinto "${CHROMIUM_HOME}" - pax-mark m out/Release/chrome - doexe out/Release/chrome - doexe out/Release/chrome_sandbox || die - fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" - doexe out/Release/xdg-settings || die - doexe "${FILESDIR}"/chromium-launcher.sh || die - - insinto "${CHROMIUM_HOME}" - doins out/Release/chrome.pak || die - doins out/Release/resources.pak || die - - doins -r out/Release/locales || die - doins -r out/Release/resources || die - - # chrome.1 is for chromium --help - newman out/Release/chrome.1 chrome.1 || die - newman out/Release/chrome.1 chromium.1 || die - - # Chromium looks for these in its folder - # See media_posix.cc and base_paths_linux.cc - dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die - dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die - dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die - - # Install icon and desktop entry. - newicon out/Release/product_logo_48.png ${PN}-browser.png || die - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die - make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \ - "MimeType=text/html;text/xml;application/xhtml+xml;" - sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die - - # Install GNOME default application entry (bug #303100). - if use gnome; then - dodir /usr/share/gnome-control-center/default-apps || die - insinto /usr/share/gnome-control-center/default-apps - doins "${FILESDIR}"/chromium.xml || die - fi -} diff --git a/www-client/chromium/files/chromium-locale-glib-r0.patch b/www-client/chromium/files/chromium-locale-glib-r0.patch deleted file mode 100644 index eb9bc7dc7312..000000000000 --- a/www-client/chromium/files/chromium-locale-glib-r0.patch +++ /dev/null @@ -1,415 +0,0 @@ -Index: app/l10n_util.cc -=================================================================== ---- app/l10n_util.cc (revision 63359) -+++ app/l10n_util.cc (working copy) -@@ -4,6 +4,10 @@ - - #include "app/l10n_util.h" - -+#if defined(TOOLKIT_USES_GTK) -+#include <glib/gutils.h> -+#endif -+ - #include <cstdlib> - - #include "app/app_paths.h" -@@ -384,43 +335,71 @@ - namespace l10n_util { - - std::string GetApplicationLocale(const std::string& pref_locale) { --#if !defined(OS_MACOSX) -+#if defined(OS_MACOSX) -+ -+ // Use any override (Cocoa for the browser), otherwise use the preference -+ // passed to the function. -+ std::string app_locale = l10n_util::GetLocaleOverride(); -+ if (app_locale.empty()) -+ app_locale = pref_locale; -+ -+ // The above should handle all of the cases Chrome normally hits, but for some -+ // unit tests, we need something to fall back too. -+ if (app_locale.empty()) -+ app_locale = "en-US"; -+ -+ // Windows/Linux call SetICUDefaultLocale after determining the actual locale -+ // with CheckAndResolveLocal to make ICU APIs work in that locale. -+ // Mac doesn't use a locale directory tree of resources (it uses Mac style -+ // resources), so mirror the Windows/Linux behavior of calling -+ // SetICUDefaultLocale. -+ base::i18n::SetICUDefaultLocale(app_locale); -+ return app_locale; -+ -+#else -+ - FilePath locale_path; - PathService::Get(app::DIR_LOCALES, &locale_path); - std::string resolved_locale; - std::vector<std::string> candidates; -- const std::string system_locale = GetSystemLocale(); - - // We only use --lang and the app pref on Windows. On Linux, we only - // look at the LC_*/LANG environment variables. We do, however, pass --lang - // to renderer and plugin processes so they know what language the parent - // process decided to use. -+ - #if defined(OS_WIN) -+ - // First, try the preference value. - if (!pref_locale.empty()) - candidates.push_back(pref_locale); - - // Next, try the system locale. -- candidates.push_back(system_locale); -+ candidates.push_back(base::i18n::GetConfiguredLocale()); - - #elif defined(OS_CHROMEOS) -+ - // On ChromeOS, use the application locale preference. - if (!pref_locale.empty()) - candidates.push_back(pref_locale); - --#elif defined(OS_POSIX) -- // On POSIX, we also check LANGUAGE environment variable, which is supported -- // by gettext to specify a priority list of prefered languages. -- const char* env_language = ::getenv("LANGUAGE"); -- if (env_language) -- SplitAndNormalizeLanguageList(env_language, &candidates); -+#elif defined(OS_POSIX) && defined(TOOLKIT_USES_GTK) - -- // Only fallback to the system locale if LANGUAGE is not specified. -- // We emulate gettext's behavior here, which ignores LANG/LC_MESSAGES/LC_ALL -- // when LANGUAGE is specified. If no language specified in LANGUAGE is valid, -- // then just fallback to the locale based on LC_ALL/LANG. -- if (candidates.empty()) -- candidates.push_back(system_locale); -+ // GLib implements correct environment variable parsing with -+ // the precedence order: LANGUAGE, LC_ALL, LC_MESSAGES and LANG. -+ // We used to use our custom parsing code along with ICU for this purpose. -+ // If we have a port that does not depend on GTK, we have to -+ // restore our custom code for that port. -+ const char* const* languages = g_get_language_names(); -+ DCHECK(languages); // A valid pointer is guaranteed. -+ DCHECK(*languages); // At least one entry, "C", is guaranteed. -+ -+ for (; *languages != NULL; ++languages) { -+ candidates.push_back(base::i18n::GetCanonicalLocale(*languages)); -+ } -+ -+#else -+#error Unsupported platform, see build/build_config.h - #endif - - std::vector<std::string>::const_iterator i = candidates.begin(); -@@ -443,27 +422,7 @@ - - return std::string(); - --#else // !defined(OS_MACOSX) -- -- // Use any override (Cocoa for the browser), otherwise use the preference -- // passed to the function. -- std::string app_locale = l10n_util::GetLocaleOverride(); -- if (app_locale.empty()) -- app_locale = pref_locale; -- -- // The above should handle all of the cases Chrome normally hits, but for some -- // unit tests, we need something to fall back too. -- if (app_locale.empty()) -- app_locale = "en-US"; -- -- // Windows/Linux call SetICUDefaultLocale after determining the actual locale -- // with CheckAndResolveLocal to make ICU APIs work in that locale. -- // Mac doesn't use a locale directory tree of resources (it uses Mac style -- // resources), so mirror the Windows/Linux behavior of calling -- // SetICUDefaultLocale. -- base::i18n::SetICUDefaultLocale(app_locale); -- return app_locale; --#endif // !defined(OS_MACOSX) -+#endif - } - - string16 GetDisplayNameForLocale(const std::string& locale, -Index: app/l10n_util_unittest.cc -=================================================================== ---- app/l10n_util_unittest.cc (revision 63359) -+++ app/l10n_util_unittest.cc (working copy) -@@ -100,7 +100,17 @@ - // The meaning of that API, on the Mac, is "the locale used by Cocoa's main - // nib file", which clearly can't be stubbed by a test app that doesn't use - // Cocoa. -+ -+void SetDefaultLocaleForTest(const std::string& tag, base::Environment* env) { -+#if defined(OS_POSIX) && !defined(OS_CHROMEOS) -+ env->SetVar("LANGUAGE", tag); -+#else -+ SetICUDefaultLocale(tag); -+#endif -+} -+ - TEST_F(L10nUtilTest, GetAppLocale) { -+ scoped_ptr<base::Environment> env; - // Use a temporary locale dir so we don't have to actually build the locale - // dlls for this test. - FilePath orig_locale_dir; -@@ -140,7 +150,7 @@ - icu::Locale locale = icu::Locale::getDefault(); - - #if defined(OS_POSIX) && !defined(OS_CHROMEOS) -- scoped_ptr<base::Environment> env(base::Environment::Create()); -+ env.reset(base::Environment::Create()); - - // Test the support of LANGUAGE environment variable. - SetICUDefaultLocale("en-US"); -@@ -163,15 +173,25 @@ - env->SetVar("LANGUAGE", "/fr:zh_CN"); - EXPECT_EQ("zh-CN", l10n_util::GetApplicationLocale("")); - -- // Make sure the follow tests won't be affected by LANGUAGE environment -- // variable. -+ // Test prioritization of the different environment variables. -+ env->SetVar("LANGUAGE", "fr"); -+ env->SetVar("LC_ALL", "es"); -+ env->SetVar("LC_MESSAGES", "he"); -+ env->SetVar("LANG", "nb"); -+ EXPECT_EQ("fr", l10n_util::GetApplicationLocale("")); - env->UnSetVar("LANGUAGE"); -+ EXPECT_EQ("es", l10n_util::GetApplicationLocale("")); -+ env->UnSetVar("LC_ALL"); -+ EXPECT_EQ("he", l10n_util::GetApplicationLocale("")); -+ env->UnSetVar("LC_MESSAGES"); -+ EXPECT_EQ("nb", l10n_util::GetApplicationLocale("")); -+ env->UnSetVar("LANG"); - #endif // defined(OS_POSIX) && !defined(OS_CHROMEOS) - -- SetICUDefaultLocale("en-US"); -+ SetDefaultLocaleForTest("en-US", env.get()); - EXPECT_EQ("en-US", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("xx"); -+ SetDefaultLocaleForTest("xx", env.get()); - EXPECT_EQ("en-US", l10n_util::GetApplicationLocale("")); - - #if defined(OS_CHROMEOS) -@@ -184,31 +204,31 @@ - EXPECT_EQ("en-GB", l10n_util::GetApplicationLocale("en-GB")); - - #else // defined(OS_CHROMEOS) -- SetICUDefaultLocale("en-GB"); -+ SetDefaultLocaleForTest("en-GB", env.get()); - EXPECT_EQ("en-GB", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("fr-CA"); -+ SetDefaultLocaleForTest("fr-CA", env.get()); - EXPECT_EQ("fr", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("es-MX"); -+ SetDefaultLocaleForTest("es-MX", env.get()); - EXPECT_EQ("es-419", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("es-AR"); -+ SetDefaultLocaleForTest("es-AR", env.get()); - EXPECT_EQ("es-419", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("es-ES"); -+ SetDefaultLocaleForTest("es-ES", env.get()); - EXPECT_EQ("es", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("es"); -+ SetDefaultLocaleForTest("es", env.get()); - EXPECT_EQ("es", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("zh-HK"); -+ SetDefaultLocaleForTest("zh-HK", env.get()); - EXPECT_EQ("zh-TW", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("zh-MK"); -+ SetDefaultLocaleForTest("zh-MK", env.get()); - EXPECT_EQ("zh-TW", l10n_util::GetApplicationLocale("")); - -- SetICUDefaultLocale("zh-SG"); -+ SetDefaultLocaleForTest("zh-SG", env.get()); - EXPECT_EQ("zh-CN", l10n_util::GetApplicationLocale("")); - #endif // defined (OS_CHROMEOS) - -Index: base/i18n/rtl.cc -=================================================================== ---- base/i18n/rtl.cc (revision 63359) -+++ base/i18n/rtl.cc (working copy) -@@ -18,26 +18,58 @@ - #include <gtk/gtk.h> - #endif - -+namespace { -+ -+// Extract language and country, ignore keywords, concatenate using dash. -+std::string GetLocaleString(const icu::Locale& locale) { -+ const char* language = locale.getLanguage(); -+ const char* country = locale.getCountry(); -+ -+ std::string result = -+ (language != NULL && *language != '\0') ? language : "und"; -+ -+ if (country != NULL && *country != '\0') { -+ result += '-'; -+ result += country; -+ } -+ -+ return result; -+} -+ -+} // namespace -+ - namespace base { - namespace i18n { - - // Represents the locale-specific ICU text direction. - static TextDirection g_icu_text_direction = UNKNOWN_DIRECTION; - -+#if defined(OS_WIN) - void GetLanguageAndRegionFromOS(std::string* lang, std::string* region) { - // Later we may have to change this to be OS-dependent so that - // it's not affected by ICU's default locale. It's all right - // to do this way because SetICUDefaultLocale is internal - // to this file and we know that it's not yet called when this function - // is called. -- icu::Locale locale = icu::Locale::getDefault(); -+ const icu::Locale& locale = icu::Locale::getDefault(); - const char* language = locale.getLanguage(); - const char* country = locale.getCountry(); - DCHECK(language); - *lang = language; - *region = country; - } -+#endif - -+// Convert the ICU default locale to a string. -+std::string GetConfiguredLocale() { -+ return GetLocaleString(icu::Locale::getDefault()); -+} -+ -+// Convert the ICU canonicalized locale to a string. -+std::string GetCanonicalLocale(const char* locale) { -+ return GetLocaleString(icu::Locale::createCanonical(locale)); -+} -+ - // Convert Chrome locale name to ICU locale name - std::string ICULocaleName(const std::string& locale_string) { - // If not Spanish, just return it. -@@ -50,13 +82,14 @@ - // locale. If it's es-RR other than es-ES, map to es-RR. Otherwise, map - // to es-MX (the most populous in Spanish-speaking Latin America). - if (LowerCaseEqualsASCII(locale_string, "es-419")) { -- std::string lang, region; -- GetLanguageAndRegionFromOS(&lang, ®ion); -- if (LowerCaseEqualsASCII(lang, "es") && -- !LowerCaseEqualsASCII(region, "es")) { -- lang.append("-"); -- lang.append(region); -- return lang; -+ const icu::Locale& locale = icu::Locale::getDefault(); -+ std::string language = locale.getLanguage(); -+ const char* country = locale.getCountry(); -+ if (LowerCaseEqualsASCII(language, "es") && -+ !LowerCaseEqualsASCII(country, "es")) { -+ language += '-'; -+ language += country; -+ return language; - } - return "es-MX"; - } -Index: base/i18n/rtl.h -=================================================================== ---- base/i18n/rtl.h (revision 63359) -+++ base/i18n/rtl.h (working copy) -@@ -29,9 +29,19 @@ - LEFT_TO_RIGHT, - }; - --// Get language and region from the OS. -+#if defined(OS_WIN) -+// Get language and region from the OS. Used by Chrome Frame. - void GetLanguageAndRegionFromOS(std::string* lang, std::string* region); -+#endif - -+// Get the locale that the currently running process has been configured to use. -+// The return value is of the form language[-country] (e.g., en-US) where the -+// language is the 2 or 3 letter code from ISO-639. -+std::string GetConfiguredLocale(); -+ -+// Canonicalize a string (eg. a POSIX locale string) to a Chrome locale name. -+std::string GetCanonicalLocale(const char* locale); -+ - // Sets the default locale of ICU. - // Once the application locale of Chrome in GetApplicationLocale is determined, - // the default locale of ICU need to be changed to match the application locale -@@ -136,7 +146,7 @@ - // string is wrapped with LRE (Left-To-Right Embedding) and PDF (Pop - // Directional Formatting) marks and returned. In LTR locale, the string itself - // is returned. --string16 GetDisplayStringInLTRDirectionality(const string16& text) -+string16 GetDisplayStringInLTRDirectionality(const string16& text) - WARN_UNUSED_RESULT; - - // Strip the beginning (U+202A..U+202B, U+202D..U+202E) and/or ending (U+202C) ---- app/l10n_util.cc.orig 2010-11-04 13:19:45.000000000 +0100 -+++ app/l10n_util.cc 2010-11-04 13:20:46.000000000 +0100 -@@ -313,59 +313,6 @@ - return false; - } - --// Get the locale of the operating system. The return value is of the form --// language[-country] (e.g., en-US) where the language is the 2 letter code from --// ISO-639. --std::string GetSystemLocale() { -- std::string language, region; -- base::i18n::GetLanguageAndRegionFromOS(&language, ®ion); -- std::string ret; -- if (!language.empty()) -- ret.append(language); -- if (!region.empty()) { -- ret.append("-"); -- ret.append(region); -- } -- return ret; --} -- --#if defined(OS_POSIX) && !defined(OS_MACOSX) --// Split and normalize the language list specified by LANGUAGE environment. --// LANGUAGE environment specifies a priority list of user prefered locales for --// application UI messages. Locales are separated by ':' character. The format --// of a locale is: language[_territory[.codeset]][@modifier] --// --// This function splits the language list and normalizes each locale into --// language[-territory] format, eg. fr, zh-CN, etc. --void SplitAndNormalizeLanguageList(const std::string& env_language, -- std::vector<std::string>* result) { -- std::vector<std::string> langs; -- SplitString(env_language, ':', &langs); -- std::vector<std::string>::iterator i = langs.begin(); -- for (; i != langs.end(); ++i) { -- size_t end_pos = i->find_first_of(".@"); -- // Erase encoding and modifier part. -- if (end_pos != std::string::npos) -- i->erase(end_pos); -- -- if (!i->empty()) { -- std::string locale; -- size_t sep = i->find_first_of("_-"); -- if (sep != std::string::npos) { -- // language part is always in lower case. -- locale = StringToLowerASCII(i->substr(0, sep)); -- locale.append("-"); -- // territory part is always in upper case. -- locale.append(StringToUpperASCII(i->substr(sep + 1))); -- } else { -- locale = StringToLowerASCII(*i); -- } -- result->push_back(locale); -- } -- } --} --#endif -- - // On Linux, the text layout engine Pango determines paragraph directionality - // by looking at the first strongly-directional character in the text. This - // means text such as "Google Chrome foo bar..." will be layed out LTR even diff --git a/www-client/chromium/files/chromium-system-icu-r2.patch b/www-client/chromium/files/chromium-system-icu-r2.patch new file mode 100644 index 000000000000..778eeaed81ff --- /dev/null +++ b/www-client/chromium/files/chromium-system-icu-r2.patch @@ -0,0 +1,36 @@ +--- base/i18n/word_iterator.cc.orig 2010-12-17 07:27:02.000000000 +0000 ++++ base/i18n/word_iterator.cc 2010-12-17 07:29:03.000000000 +0000 +@@ -21,7 +21,7 @@ + + WordIterator::~WordIterator() { + if (iter_) +- ubrk_close(iter_); ++ ubrk_close(static_cast<UBreakIterator*>(iter_)); + } + + bool WordIterator::Init() { +@@ -45,13 +45,13 @@ + NOTREACHED() << "ubrk_open failed"; + return false; + } +- ubrk_first(iter_); // Move the iterator to the beginning of the string. ++ ubrk_first(static_cast<UBreakIterator*>(iter_)); // Move the iterator to the beginning of the string. + return true; + } + + bool WordIterator::Advance() { + prev_ = pos_; +- const int32_t pos = ubrk_next(iter_); ++ const int32_t pos = ubrk_next(static_cast<UBreakIterator*>(iter_)); + if (pos == UBRK_DONE) { + pos_ = npos; + return false; +@@ -62,7 +62,7 @@ + } + + bool WordIterator::IsWord() const { +- return (ubrk_getRuleStatus(iter_) != UBRK_WORD_NONE); ++ return (ubrk_getRuleStatus(static_cast<UBreakIterator*>(iter_)) != UBRK_WORD_NONE); + } + + string16 WordIterator::GetWord() const { diff --git a/www-client/chromium/files/chromium-tests-r0.patch b/www-client/chromium/files/chromium-tests-r0.patch deleted file mode 100644 index c8461366adc1..000000000000 --- a/www-client/chromium/files/chromium-tests-r0.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- base/watchdog_unittest.cc.orig 2010-12-09 10:31:32.000000000 +0000 -+++ base/watchdog_unittest.cc 2010-12-09 10:31:53.000000000 +0000 -@@ -86,7 +86,7 @@ - - // Make sure a basic alarm fires when the time has expired. - TEST_F(WatchdogTest, AlarmPriorTimeTest) { -- WatchdogCounter watchdog(TimeDelta::TimeDelta(), "Enabled2", true); -+ WatchdogCounter watchdog(TimeDelta(), "Enabled2", true); - // Set a time in the past. - watchdog.ArmSomeTimeDeltaAgo(TimeDelta::FromSeconds(2)); - // It should instantly go off, but certainly in less than 5 minutes. |