Subject: [bug#28330] [PATCH staging 2/2] gnu: boost: Update to 1.65.0.

From: Marius Bakke <[email-masked]>
Date: Sat, 2 Sep 2017 15:09:47 +0200

* gnu/packages/boost.scm (%boost-1.65.0-context.patch,
%boost-1.65.0-fiber.patch): New variables.
(boost): Update to 1.65.0.
[source](patches): New field.
---
 gnu/packages/boost.scm | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index 4c7308e9d..c0ae8dd19 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -33,19 +33,41 @@
   #:use-module (gnu packages python)
   #:use-module (gnu packages shells))
 
+;; Boost provides some fixes for problems found by library maintainers
+;; after the release.  See "known issues" at
+;; <http://www.boost.org/users/history/version_1_65_0.html>
+(define %boost-1.65.0-context.patch
+  (origin
+    (method url-fetch)
+    (uri (string-append "http://www.boost.org/patches/1_65_0/0001-context-"
+                        "function-executed-by-resume_with-has-to-retu.patch"))
+    (file-name "boost-1.65.0-context.patch")
+    (sha256
+     (base32 "12vha10dsyx8m29m1d3np0xh0a2vrqapjd6ha746nqv78zi1nlgd"))))
+
+(define %boost-1.65.0-fiber.patch
+  (origin
+    (method url-fetch)
+    (uri (string-append "http://www.boost.org/patches/1_65_0/0002-fiber-resume_"
+                        "with-requires-tor-return-a-continuation.patch"))
+    (file-name "boost-1.65.0-fiber.patch")
+    (sha256
+     (base32 "05hb1qwzj5y2cyhvdkw4vdg412gkzillrkmsdz470hb3p0jgpjhv"))))
+
 (define-public boost
   (package
     (name "boost")
-    (version "1.64.0")
+    (version "1.65.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
                     "mirror://sourceforge/boost/boost/" version "/boost_"
                     (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version)
                     ".tar.bz2"))
+              (patches (list %boost-1.65.0-context.patch %boost-1.65.0-fiber.patch))
               (sha256
                (base32
-                "0cikd35xfkpg9nnl76yqqnqxnf3hyfjjww8xjd4akflprsm5rk3v"))))
+                "0b4hz6rciqw7nf49yar271pbfwv94vrk2sjn5af0gyz288kp29pa"))))
     (build-system gnu-build-system)
     (inputs `(("icu4c" ,icu4c)
               ("zlib" ,zlib)))
-- 
2.14.1