]> https://gitweb.dealii.org/ - candi.git/commitdiff
Patch boost bug
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 13 May 2018 19:57:23 +0000 (21:57 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 13 May 2018 19:59:01 +0000 (21:59 +0200)
deal.II-toolchain/packages/boost.package
deal.II-toolchain/patches/boost-conflict.patch [new file with mode: 0644]

index 5f85d8853ebf111c4805297deca1f77438419487..cd6dfe21d37c4f35c3f689cb1d2fd219cd077d8c 100644 (file)
@@ -20,6 +20,14 @@ package_specific_build () {
     quit_if_fail "boost build ./b2 failed"
 }
 
+package_specific_patch () {
+    if [ "$VERSION" = "1_63_0" ]; then
+      cd ${UNPACK_PATH}/${EXTRACTSTO}
+      cecho ${WARN} "applying patch for zlib bzip conflict"
+      patch -p0 --forward < ${ORIG_DIR}/${PROJECT}/patches/boost-conflict.patch || true
+    fi
+}
+
 package_specific_register () {
     export BOOST_DIR=${INSTALL_PATH}
     export BOOST_ROOT=${INSTALL_PATH}
diff --git a/deal.II-toolchain/patches/boost-conflict.patch b/deal.II-toolchain/patches/boost-conflict.patch
new file mode 100644 (file)
index 0000000..f013f42
--- /dev/null
@@ -0,0 +1,31 @@
+--- tools/build/src/build/ac.jam       2016-12-22 13:33:21.000000000 +0100
++++ tools/build/src/build/ac.jam       2018-05-13 14:22:14.492433637 +0200
+@@ -76,14 +76,6 @@
+ rule find-library ( properties : names + : provided-path ? )
+ {
+     local result ;
+-    if ! $(.main.cpp)
+-    {
+-        local a = [ class.new action : ac.generate-main :
+-                    [ property-set.empty ] ] ;
+-        .main.cpp = [ virtual-target.register
+-            [ class.new file-target main.cpp exact
+-                : CPP : $(.project) : $(a) ] ] ;
+-    }
+     if [ $(properties).get <link> ] = shared
+     {
+         link-opts = <link>shared <link>static ;
+@@ -100,8 +92,12 @@
+         {
+             local name = $(names-iter[1]) ;
+             local lib = [ construct-library $(name) : $(properties) : $(provided-path) ] ;
++            local a = [ class.new action : ac.generate-main :
++                [ property-set.empty ] ] ;
++            local main.cpp = [ virtual-target.register
++                [ class.new file-target main-$(name).cpp exact : CPP : $(.project) : $(a) ] ] ;
+             local test = [ generators.construct $(.project) $(name) : EXE
+-                : [ $(properties).add $(lib[1]) ] : $(.main.cpp) $(lib[2-])
++                : [ $(properties).add $(lib[1]) ] : $(main.cpp) $(lib[2-])
+                 : true ] ;
+             local jam-targets ;
+             for t in $(test[2-])

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.