all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 389f60e30450a1432de333ce5fcdda16f8a822fb 2677 bytes (raw)
name: gnu/packages/patches/boost-fix-icu-build.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
 
Pass -std=c++11 when compiling files that include the ICU headers.  Without
this flag, compilation fails and causes Boost's build system to remove ICU
support.  Note that $(pkg-config --variable=CXXFLAGS icu-uc) includes
"-std=c++11", but Boost's build system does not use 'pkg-config'.

--- boost_1_66_0/libs/locale/build/Jamfile.v2.orig	2017-12-13 18:56:44.000000000 -0500
+++ boost_1_66_0/libs/locale/build/Jamfile.v2	2018-04-08 14:13:17.953484787 -0400
@@ -65,8 +65,8 @@
 
 if $(ICU_LINK)
 {
-    ICU_OPTS = <include>$(ICU_PATH)/include <linkflags>$(ICU_LINK) <dll-path>$(ICU_PATH)/bin <runtime-link>shared ;
-    ICU64_OPTS = <include>$(ICU_PATH)/include <linkflags>$(ICU_LINK) <dll-path>$(ICU_PATH)/bin64 <runtime-link>shared ;
+    ICU_OPTS = <include>$(ICU_PATH)/include <cxxflags>-std=c++11 <linkflags>$(ICU_LINK) <dll-path>$(ICU_PATH)/bin <runtime-link>shared ;
+    ICU64_OPTS = <include>$(ICU_PATH)/include <cxxflags>-std=c++11 <linkflags>$(ICU_LINK) <dll-path>$(ICU_PATH)/bin64 <runtime-link>shared ;
 }
 else
 {
@@ -120,7 +120,8 @@
 
     explicit icuuc icudt icuin ;
 
-    ICU_OPTS =   <include>$(ICU_PATH)/include 
+    ICU_OPTS =   <include>$(ICU_PATH)/include
+      <cxxflags>-std=c++11
       <library>icuuc/<link>shared/<runtime-link>shared 
       <library>icudt/<link>shared/<runtime-link>shared 
       <library>icuin/<link>shared/<runtime-link>shared
@@ -179,7 +180,8 @@
 
     explicit icuuc_64 icudt_64 icuin_64 ;
 
-    ICU64_OPTS =   <include>$(ICU_PATH)/include 
+    ICU64_OPTS =   <include>$(ICU_PATH)/include
+      <cxxflags>-std=c++11
       <library>icuuc_64/<link>shared/<runtime-link>shared 
       <library>icudt_64/<link>shared/<runtime-link>shared 
       <library>icuin_64/<link>shared/<runtime-link>shared
--- boost_1_66_0/libs/regex/build/Jamfile.v2.orig	2017-12-13 18:56:48.000000000 -0500
+++ boost_1_66_0/libs/regex/build/Jamfile.v2	2018-04-08 14:11:56.405080410 -0400
@@ -44,7 +44,7 @@
 
    if $(ICU_LINK)
    {
-      ICU_OPTS = <include>$(ICU_PATH)/include <linkflags>$(ICU_LINK) <dll-path>$(ICU_PATH)/bin <define>BOOST_HAS_ICU=1 <runtime-link>shared ;
+      ICU_OPTS = <include>$(ICU_PATH)/include <cxxflags>-std=c++11 <linkflags>$(ICU_LINK) <dll-path>$(ICU_PATH)/bin <define>BOOST_HAS_ICU=1 <runtime-link>shared ;
    }
    else
    {
@@ -77,7 +77,8 @@
       lib icuin : : <name>this_is_an_invalid_library_name ;
 
       ICU_OPTS = 
-         <include>$(ICU_PATH)/include 
+         <include>$(ICU_PATH)/include
+         <cxxflags>-std=c++11
          <runtime-link>shared:<library>icuuc/<link>shared
          <runtime-link>shared:<library>icudt/<link>shared
          <runtime-link>shared:<library>icuin/<link>shared

debug log:

solving 389f60e30 ...
found 389f60e30 in https://yhetil.org/guix/87lgdxqzod.fsf@netris.org/

applying [1/1] https://yhetil.org/guix/87lgdxqzod.fsf@netris.org/
diff --git a/gnu/packages/patches/boost-fix-icu-build.patch b/gnu/packages/patches/boost-fix-icu-build.patch
new file mode 100644
index 000000000..389f60e30

1:15: trailing whitespace.
 
1:26: trailing whitespace.
 
1:28: trailing whitespace.
 
1:29: trailing whitespace.
-    ICU_OPTS =   <include>$(ICU_PATH)/include 
1:32: trailing whitespace.
       <library>icuuc/<link>shared/<runtime-link>shared 
Checking patch gnu/packages/patches/boost-fix-icu-build.patch...
Applied patch gnu/packages/patches/boost-fix-icu-build.patch cleanly.
warning: squelched 10 whitespace errors
warning: 15 lines add whitespace errors.

index at:
100644 389f60e30450a1432de333ce5fcdda16f8a822fb	gnu/packages/patches/boost-fix-icu-build.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.