Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=781201e4fda3a9e4ba632268690f0119f5594e7a
commit 781201e4fda3a9e4ba632268690f0119f5594e7a Author: DeX77 <[email protected]> Date: Mon Oct 12 17:01:59 2015 +0200 chromium-browser-45.0.2454.101-3-x86_64 * relbump * use clang again + add patch to build with newer glibc diff --git a/source/xapps-extra/chromium-browser/0001-Demand-for-newer-POSIX-macro.patch b/source/xapps-extra/chromium-browser/0001-Demand-for-newer-POSIX-macro.patch new file mode 100644 index 0000000..95564c0 --- /dev/null +++ b/source/xapps-extra/chromium-browser/0001-Demand-for-newer-POSIX-macro.patch @@ -0,0 +1,36 @@ +From 241364c6f4d44165ce2dc707b9ad141dcc880d1b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 27 Jun 2015 13:29:52 -0700 +Subject: [PATCH] Demand for newer POSIX macro + +Reason for change: Define _POSIX_C_SOURCE such that it demands correct +posix interfaces, netdb.h declares interfaces such as +getaddrinfo if __USE_POSIX, i.e. POSIX.1:1990 or later. +However, these interfaces were new in the 2001 edition of POSIX +therefore ask for Extension from POSIX.1:2001 since we use addrinfo +structure here. + +Change-Id: Icb1c92745d1a0ca958108ae80c270c630628729e +Signed-off-by: Khem Raj <[email protected]> +Reviewed-on: https://boringssl-review.googlesource.com/5253 +Reviewed-by: Adam Langley <[email protected]> +--- + crypto/bio/socket_helper.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/third_party/boringssl/src/crypto/bio/socket_helper.c b/crypto/bio/socket_helper.c +index b1cdd1a..481278f 100644 +--- a/third_party/boringssl/src/crypto/bio/socket_helper.c ++++ b/third_party/boringssl/src/crypto/bio/socket_helper.c +@@ -12,7 +12,7 @@ + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ + +-#define _POSIX_SOURCE ++#define _POSIX_C_SOURCE 200112L + + #include <openssl/bio.h> + #include <openssl/err.h> +-- +2.5.0 + diff --git a/source/xapps-extra/chromium-browser/FrugalBuild b/source/xapps-extra/chromium-browser/FrugalBuild index ef99363..b2bf3d1 100644 --- a/source/xapps-extra/chromium-browser/FrugalBuild +++ b/source/xapps-extra/chromium-browser/FrugalBuild @@ -3,7 +3,7 @@ pkgname=chromium-browser pkgver=45.0.2454.101 -pkgrel=2 +pkgrel=3 pkgdesc='An open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web' url='http://www.chromium.org/' depends=('nss>=3.15.4' 'alsa-lib' 'hicolor-icon-theme' 'libxslt>=1.1.28' 'ffmpeg>=1.0' \ @@ -12,7 +12,7 @@ depends=('nss>=3.15.4' 'alsa-lib' 'hicolor-icon-theme' 'libxslt>=1.1.28' 'ffmpeg 'systemd>=208-3' 'libcups' 'openssl' 'libxml2' 'speech-dispatcher' 'libpulse>=6.0' \ 'gconf' 'opus>=1.1-2' 'libmtp>=1.1.6-2' 'nspr>=4.10.4' 'libgnome-keyring>=3.10.1-2' \ 'libexif' 'snappy') -makedepends=('python' 'perl' 'gperf' 'yasm' 'libgl' 'cups' 'krb5' 'elfutils' 'subversion' 'gtk+2' 'ninja') +makedepends=('python' 'perl' 'gperf' 'yasm' 'libgl' 'cups' 'krb5' 'elfutils' 'subversion' 'gtk+2' 'ninja' 'clang>=3.7.0-3') license=('BSD') groups=('xapps-extra') archs=('i686' 'x86_64') @@ -24,10 +24,12 @@ up2date="lynx -dump 'http://googlechromereleases.blogspot.de/search/label/Stable egrep -o '([0123456789.]*)'" source=(https://github.com/zcbenz/chromium-source-tarball/releases/download/$pkgver/$_F_archive_name-$pkgver.tar.xz \ $pkgname.desktop \ - $pkgname.sh) + $pkgname.sh \ + 0001-Demand-for-newer-POSIX-macro.patch) sha1sums=('af7c337ac11902b3bfca6485536861f21b9e1510' \ '78ed8913b8a598de6a9e45d206973a846dbe8a51' \ - '4c41d59b4d85a9f0443d6ca1dec456e50059dab5') + '4c41d59b4d85a9f0443d6ca1dec456e50059dab5' \ + '7fff2594aef49c3d5ea63d1402e7aa588e755691') CXXFLAGS="$CXXFLAGS -fpermissive" @@ -47,7 +49,7 @@ build() { -Dgoogle_default_client_id=$_google_default_client_id -Dgoogle_default_client_secret=$_google_default_client_secret -Dwerror= - -Dclang=0 + -Dclang=1 -Dclang_use_chrome_plugins=0 -Dpython_ver=2.7 -Dlinux_link_gsettings=1 @@ -93,6 +95,10 @@ build() { myconf+=" -Ddisable_sse2=1" fi + export CC=clang + export CXX=clang++ + + Fexec build/linux/unbundle/replace_gyp_files.py $myconf -Drelease_extra_cflags="$CFLAGS" Fexec ./build/gyp_chromium --no-parallel --depth . $myconf _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
