[arch-commits] Commit in chromium/trunk (2 files)

Evangelos Foutras foutrelis at archlinux.org
Wed Aug 12 20:29:14 UTC 2015


    Date: Wednesday, August 12, 2015 @ 22:29:13
  Author: foutrelis
Revision: 243373

Fix BoringSSL build with glibc 2.22 (FS#45965)

Added:
  chromium/trunk/0001-Demand-for-newer-POSIX-macro.patch
Modified:
  chromium/trunk/PKGBUILD

-----------------------------------------+
 0001-Demand-for-newer-POSIX-macro.patch |   36 ++++++++++++++++++++++++++++++
 PKGBUILD                                |    5 ++++
 2 files changed, 41 insertions(+)

Added: 0001-Demand-for-newer-POSIX-macro.patch
===================================================================
--- 0001-Demand-for-newer-POSIX-macro.patch	                        (rev 0)
+++ 0001-Demand-for-newer-POSIX-macro.patch	2015-08-12 20:29:13 UTC (rev 243373)
@@ -0,0 +1,36 @@
+From 241364c6f4d44165ce2dc707b9ad141dcc880d1b Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem at 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 at gmail.com>
+Reviewed-on: https://boringssl-review.googlesource.com/5253
+Reviewed-by: Adam Langley <agl at 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
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-08-12 16:34:08 UTC (rev 243372)
+++ PKGBUILD	2015-08-12 20:29:13 UTC (rev 243373)
@@ -29,6 +29,7 @@
         chromium.desktop
         0001-NSS-reject-DH-groups-smaller-than-1024-bits.patch
         0001-Use-the-correct-URL-for-ERR_SSL_WEAK_SERVER_EPHEMERA.patch
+        0001-Demand-for-newer-POSIX-macro.patch
         chromium-widevine.patch)
 sha256sums=('eba271c210a020dd61b72c940abeecdafc562a1d15fb45615dda72bcb6219f3c'
             '7f91c81721092d707d7b94e6555a48bc7fd0bc0e1174df4649bdcd745930e52f'
@@ -35,6 +36,7 @@
             '028a748a5c275de9b8f776f97909f999a8583a4b77fd1cd600b4fc5c0c3e91e9'
             '46daf921ed7eaab175f5a86b09357c69c33a10ffe1d4e7c24476af510c1b28d0'
             '8fb428244be7b50268a2848a34405c5551232e5c77f9e553cfdd3103979748d2'
+            'd908939b10161efe658f0f82d2c132bf28dff54e08f02c6fed93815c3656f328'
             '379b746e187de28f80f5a7cd19edcfa31859656826f802a1ede054fcb6dfb221')
 
 # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
@@ -63,6 +65,9 @@
   # https://code.google.com/p/chromium/issues/detail?id=490260
   patch -Np1 -i ../0001-Use-the-correct-URL-for-ERR_SSL_WEAK_SERVER_EPHEMERA.patch
 
+  # Fix BoringSSL build with glibc 2.22 (FS#45965)
+  patch -Np1 -d third_party/boringssl/src < ../0001-Demand-for-newer-POSIX-macro.patch
+
   # Enable support for the Widevine CDM plugin
   # The actual libraries are not included, but can be copied over from Chrome:
   #   libwidevinecdmadapter.so



More information about the arch-commits mailing list