diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-08-23 22:26:39 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-08-23 22:26:39 +0800 |
commit | 3d8970e911b23d31a53ffac6363a9b117513d744 (patch) | |
tree | dc47ce15b42c3d565c8b044ddf7a88100b291375 /chromium | |
parent | 292d40041d5da4b58999a63cb9b9ca682bfefe36 (diff) | |
download | copr-rpm-spec-3d8970e911b23d31a53ffac6363a9b117513d744.tar copr-rpm-spec-3d8970e911b23d31a53ffac6363a9b117513d744.tar.gz copr-rpm-spec-3d8970e911b23d31a53ffac6363a9b117513d744.tar.bz2 copr-rpm-spec-3d8970e911b23d31a53ffac6363a9b117513d744.tar.lz copr-rpm-spec-3d8970e911b23d31a53ffac6363a9b117513d744.tar.xz copr-rpm-spec-3d8970e911b23d31a53ffac6363a9b117513d744.tar.zst copr-rpm-spec-3d8970e911b23d31a53ffac6363a9b117513d744.zip |
chromium: Fix GLIBC 2.22 build issue on Fedora 23 and later
Diffstat (limited to 'chromium')
-rw-r--r-- | chromium/chromium/chromium-boringssl-glibc-2.22.patch | 36 | ||||
-rw-r--r-- | chromium/chromium/chromium.spec | 9 |
2 files changed, 44 insertions, 1 deletions
diff --git a/chromium/chromium/chromium-boringssl-glibc-2.22.patch b/chromium/chromium/chromium-boringssl-glibc-2.22.patch new file mode 100644 index 0000000..77ae6df --- /dev/null +++ b/chromium/chromium/chromium-boringssl-glibc-2.22.patch @@ -0,0 +1,36 @@ +From 241364c6f4d44165ce2dc707b9ad141dcc880d1b Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +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 <raj.khem@gmail.com> +Reviewed-on: https://boringssl-review.googlesource.com/5253 +Reviewed-by: Adam Langley <agl@google.com> +--- + crypto/bio/socket_helper.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/crypto/bio/socket_helper.c b/crypto/bio/socket_helper.c +index b1cdd1a..481278f 100644 +--- a/crypto/bio/socket_helper.c ++++ b/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/chromium/chromium/chromium.spec b/chromium/chromium/chromium.spec index e12a21d..d18caff 100644 --- a/chromium/chromium/chromium.spec +++ b/chromium/chromium/chromium.spec @@ -8,7 +8,7 @@ Name: chromium Version: 44.0.2403.157 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An open-source project that aims to build a safer, faster, and more stable browser Group: Applications/Internet @@ -21,6 +21,9 @@ Source0: https://commondatastorage.googleapis.com/chromium-browser-official/c Source1: chromium-browser.sh Source2: chromium-browser.desktop +# Add a patch from Arch Linux to allowing building with GLIBC 2.22 +Patch0: chromium-boringssl-glibc-2.22.patch + # I don't have time to test whether it work on other architectures ExclusiveArch: x86_64 @@ -73,6 +76,7 @@ Requires: hicolor-icon-theme %prep %setup -q +%patch0 -p1 -d third_party/boringssl/src %build @@ -216,6 +220,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sun Aug 23 2015 - Ting-Wei Lan <lantw44@gmail.com> - 44.0.2403.157-2 +- Fix GLIBC 2.22 build issue on Fedora 23 and later + * Fri Aug 21 2015 - Ting-Wei Lan <lantw44@gmail.com> - 44.0.2403.157-1 - Update to 44.0.2403.157 |