Merge pull request #189139 from panicgh/remove-boost155

boost155: remove

authored by Christian Kögler and committed by GitHub 05db8394 6b253102

+4 -254
-12
pkgs/development/libraries/boost/1.55.nix
··· 1 - { callPackage, fetchurl, ... } @ args: 2 - 3 - callPackage ./generic.nix (args // rec { 4 - version = "1.55.0"; 5 - 6 - patches = [ ./clang-math.patch ./clang-math-2.patch ./gcc-5.patch ]; 7 - 8 - src = fetchurl { 9 - url = "mirror://sourceforge/boost/boost_${builtins.replaceStrings ["."] ["_"] version}.tar.bz2"; 10 - sha256 = "0lkv5dzssbl5fmh2nkaszi8x9qbj80pr4acf9i26sj3rvlih1w7z"; 11 - }; 12 - })
···
-45
pkgs/development/libraries/boost/clang-math-2.patch
··· 1 - From 6bb71fdd8f7cc346d90fb14beb38b7297fc1ffd9 Mon Sep 17 00:00:00 2001 2 - From: Andrey Semashev <andrey.semashev@gmail.com> 3 - Date: Sun, 26 Jan 2014 13:58:48 +0400 4 - Subject: [PATCH] Fixed incorrect initialization of 128-bit values, when no 5 - native support for 128-bit integers is available. 6 - 7 - --- 8 - boost/atomic/detail/cas128strong.hpp | 10 +++++++--- 9 - 1 file changed, 7 insertions(+), 3 deletions(-) 10 - 11 - diff --git a/boost/atomic/detail/cas128strong.hpp b/boost/atomic/detail/cas128strong.hpp 12 - index 906c13e..dcb4d7d 100644 13 - --- a/boost/atomic/detail/cas128strong.hpp 14 - +++ b/boost/atomic/detail/cas128strong.hpp 15 - @@ -196,15 +196,17 @@ class base_atomic<T, void, 16, Sign> 16 - 17 - public: 18 - BOOST_DEFAULTED_FUNCTION(base_atomic(void), {}) 19 - - explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0) 20 - + explicit base_atomic(value_type const& v) BOOST_NOEXCEPT 21 - { 22 - + memset(&v_, 0, sizeof(v_)); 23 - memcpy(&v_, &v, sizeof(value_type)); 24 - } 25 - 26 - void 27 - store(value_type const& value, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT 28 - { 29 - - storage_type value_s = 0; 30 - + storage_type value_s; 31 - + memset(&value_s, 0, sizeof(value_s)); 32 - memcpy(&value_s, &value, sizeof(value_type)); 33 - platform_fence_before_store(order); 34 - platform_store128(value_s, &v_); 35 - @@ -247,7 +249,9 @@ class base_atomic<T, void, 16, Sign> 36 - memory_order success_order, 37 - memory_order failure_order) volatile BOOST_NOEXCEPT 38 - { 39 - - storage_type expected_s = 0, desired_s = 0; 40 - + storage_type expected_s, desired_s; 41 - + memset(&expected_s, 0, sizeof(expected_s)); 42 - + memset(&desired_s, 0, sizeof(desired_s)); 43 - memcpy(&expected_s, &expected, sizeof(value_type)); 44 - memcpy(&desired_s, &desired, sizeof(value_type)); 45 -
···
-65
pkgs/development/libraries/boost/clang-math.patch
··· 1 - From e4bde20f2eec0a51be14533871d2123bd2ab9cf3 Mon Sep 17 00:00:00 2001 2 - From: Andrey Semashev <andrey.semashev@gmail.com> 3 - Date: Fri, 28 Feb 2014 12:43:11 +0400 4 - Subject: [PATCH] More compilation fixes for the case when 128-bit integers are 5 - not supported. 6 - 7 - --- 8 - boost/atomic/detail/gcc-atomic.hpp | 17 ++++++++++++----- 9 - 1 file changed, 12 insertions(+), 5 deletions(-) 10 - 11 - diff --git a/boost/atomic/detail/gcc-atomic.hpp b/boost/atomic/detail/gcc-atomic.hpp 12 - index a130590..4af99a1 100644 13 - --- a/boost/atomic/detail/gcc-atomic.hpp 14 - +++ b/boost/atomic/detail/gcc-atomic.hpp 15 - @@ -958,14 +958,16 @@ class base_atomic<T, void, 16, Sign> 16 - 17 - public: 18 - BOOST_DEFAULTED_FUNCTION(base_atomic(void), {}) 19 - - explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0) 20 - + explicit base_atomic(value_type const& v) BOOST_NOEXCEPT 21 - { 22 - + memset(&v_, 0, sizeof(v_)); 23 - memcpy(&v_, &v, sizeof(value_type)); 24 - } 25 - 26 - void store(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT 27 - { 28 - - storage_type tmp = 0; 29 - + storage_type tmp; 30 - + memset(&tmp, 0, sizeof(tmp)); 31 - memcpy(&tmp, &v, sizeof(value_type)); 32 - __atomic_store_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order)); 33 - } 34 - @@ -980,7 +982,8 @@ class base_atomic<T, void, 16, Sign> 35 - 36 - value_type exchange(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT 37 - { 38 - - storage_type tmp = 0; 39 - + storage_type tmp; 40 - + memset(&tmp, 0, sizeof(tmp)); 41 - memcpy(&tmp, &v, sizeof(value_type)); 42 - tmp = __atomic_exchange_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order)); 43 - value_type res; 44 - @@ -994,7 +997,9 @@ class base_atomic<T, void, 16, Sign> 45 - memory_order success_order, 46 - memory_order failure_order) volatile BOOST_NOEXCEPT 47 - { 48 - - storage_type expected_s = 0, desired_s = 0; 49 - + storage_type expected_s, desired_s; 50 - + memset(&expected_s, 0, sizeof(expected_s)); 51 - + memset(&desired_s, 0, sizeof(desired_s)); 52 - memcpy(&expected_s, &expected, sizeof(value_type)); 53 - memcpy(&desired_s, &desired, sizeof(value_type)); 54 - const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, false, 55 - @@ -1010,7 +1015,9 @@ class base_atomic<T, void, 16, Sign> 56 - memory_order success_order, 57 - memory_order failure_order) volatile BOOST_NOEXCEPT 58 - { 59 - - storage_type expected_s = 0, desired_s = 0; 60 - + storage_type expected_s, desired_s; 61 - + memset(&expected_s, 0, sizeof(expected_s)); 62 - + memset(&desired_s, 0, sizeof(desired_s)); 63 - memcpy(&expected_s, &expected, sizeof(value_type)); 64 - memcpy(&desired_s, &desired, sizeof(value_type)); 65 - const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, true,
···
-45
pkgs/development/libraries/boost/darwin-1.55-no-system-python.patch
··· 1 - diff --git a/tools/build/src/tools/python.jam b/tools/build/src/tools/python.jam 2 - index 273b28a..2d2031e 100644 3 - --- a/tools/build/v2/tools/python.jam 4 - +++ b/tools/build/v2/tools/python.jam 5 - @@ -428,13 +428,7 @@ local rule windows-installed-pythons ( version ? ) 6 - 7 - local rule darwin-installed-pythons ( version ? ) 8 - { 9 - - version ?= $(.version-countdown) ; 10 - - 11 - - local prefix 12 - - = [ GLOB /System/Library/Frameworks /Library/Frameworks 13 - - : Python.framework ] ; 14 - - 15 - - return $(prefix)/Versions/$(version)/bin/python ; 16 - + return ; 17 - } 18 - 19 - 20 - @@ -890,25 +884,6 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? : 21 - 22 - # See if we can find a framework directory on darwin. 23 - local framework-directory ; 24 - - if $(target-os) = darwin 25 - - { 26 - - # Search upward for the framework directory. 27 - - local framework-directory = $(libraries[-1]) ; 28 - - while $(framework-directory:D=) && $(framework-directory:D=) != Python.framework 29 - - { 30 - - framework-directory = $(framework-directory:D) ; 31 - - } 32 - - 33 - - if $(framework-directory:D=) = Python.framework 34 - - { 35 - - debug-message framework directory is \"$(framework-directory)\" ; 36 - - } 37 - - else 38 - - { 39 - - debug-message "no framework directory found; using library path" ; 40 - - framework-directory = ; 41 - - } 42 - - } 43 - 44 - local dll-path = $(libraries) ; 45 -
···
+1 -16
pkgs/development/libraries/boost/default.nix
··· 5 }: 6 7 let 8 - # for boost 1.55 we need to use 1.56's b2 9 - # since 1.55's build system is not working 10 - # with our derivation 11 - useBoost156 = rec { 12 - version = "1.56.0"; 13 - src = fetchurl { 14 - url = "mirror://sourceforge/boost/boost_${lib.replaceStrings ["."] ["_"] version}.tar.bz2"; 15 - sha256 = "07gz62nj767qzwqm3xjh11znpyph8gcii0cqhnx7wvismyn34iqk"; 16 - }; 17 - }; 18 - 19 makeBoost = file: 20 lib.fix (self: 21 callPackage file { 22 boost-build = boost-build.override { 23 # useBoost allows us passing in src and version from 24 # the derivation we are building to get a matching b2 version. 25 - useBoost = 26 - if lib.versionAtLeast self.version "1.56" 27 - then self 28 - else useBoost156; # see above 29 }; 30 } 31 ); 32 in { 33 - boost155 = makeBoost ./1.55.nix; 34 boost159 = makeBoost ./1.59.nix; 35 boost160 = makeBoost ./1.60.nix; 36 boost165 = makeBoost ./1.65.nix;
··· 5 }: 6 7 let 8 makeBoost = file: 9 lib.fix (self: 10 callPackage file { 11 boost-build = boost-build.override { 12 # useBoost allows us passing in src and version from 13 # the derivation we are building to get a matching b2 version. 14 + useBoost = self; 15 }; 16 } 17 ); 18 in { 19 boost159 = makeBoost ./1.59.nix; 20 boost160 = makeBoost ./1.60.nix; 21 boost165 = makeBoost ./1.65.nix;
-64
pkgs/development/libraries/boost/gcc-5.patch
··· 1 - https://svn.boost.org/trac/boost/ticket/10125 2 - 3 - boost/thread/pthread/once.hpp | 6 +++--- 4 - boost/thread/pthread/once_atomic.hpp | 2 +- 5 - boost/thread/win32/once.hpp | 2 +- 6 - 3 files changed, 5 insertions(+), 5 deletions(-) 7 - 8 - diff --git a/boost/thread/pthread/once.hpp b/boost/thread/pthread/once.hpp 9 - index ccfb051..0bef038 100644 10 - --- a/boost/thread/pthread/once.hpp 11 - +++ b/boost/thread/pthread/once.hpp 12 - @@ -42,7 +42,7 @@ namespace boost 13 - } 14 - 15 - #ifdef BOOST_THREAD_PROVIDES_ONCE_CXX11 16 - -#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES 17 - +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) 18 - template<typename Function, class ...ArgTypes> 19 - inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args); 20 - #else 21 - @@ -65,7 +65,7 @@ namespace boost 22 - private: 23 - volatile thread_detail::uintmax_atomic_t epoch; 24 - 25 - -#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES 26 - +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) 27 - template<typename Function, class ...ArgTypes> 28 - friend void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args); 29 - #else 30 - @@ -118,7 +118,7 @@ namespace boost 31 - // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2444.html 32 - 33 - 34 - -#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES 35 - +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) 36 - 37 - 38 - template<typename Function, class ...ArgTypes> 39 - diff --git a/boost/thread/pthread/once_atomic.hpp b/boost/thread/pthread/once_atomic.hpp 40 - index 9e2f876..923f07b 100644 41 - --- a/boost/thread/pthread/once_atomic.hpp 42 - +++ b/boost/thread/pthread/once_atomic.hpp 43 - @@ -115,7 +115,7 @@ namespace boost 44 - #endif 45 - 46 - 47 - -#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES 48 - +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) 49 - 50 - template<typename Function, class ...ArgTypes> 51 - inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args) 52 - diff --git a/boost/thread/win32/once.hpp b/boost/thread/win32/once.hpp 53 - index cafcfd4..9b37b31 100644 54 - --- a/boost/thread/win32/once.hpp 55 - +++ b/boost/thread/win32/once.hpp 56 - @@ -227,7 +227,7 @@ namespace boost 57 - } 58 - } 59 - 60 - -#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES 61 - +#if !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) 62 - //#if defined(BOOST_THREAD_RVALUE_REFERENCES_DONT_MATCH_FUNTION_PTR) 63 - inline void call_once(once_flag& flag, void (*f)()) 64 - {
···
+1 -4
pkgs/development/libraries/boost/generic.nix
··· 118 patchFlags = []; 119 120 patches = patches 121 - ++ optional stdenv.isDarwin ( 122 - if version == "1.55.0" 123 - then ./darwin-1.55-no-system-python.patch 124 - else ./darwin-no-system-python.patch) 125 # Fix boost-context segmentation faults on ppc64 due to ABI violation 126 ++ optional (versionAtLeast version "1.61" && 127 versionOlder version "1.71") (fetchpatch {
··· 118 patchFlags = []; 119 120 patches = patches 121 + ++ optional stdenv.isDarwin ./darwin-no-system-python.patch 122 # Fix boost-context segmentation faults on ppc64 due to ABI violation 123 ++ optional (versionAtLeast version "1.61" && 124 versionOlder version "1.71") (fetchpatch {
+2 -3
pkgs/top-level/all-packages.nix
··· 17466 boolstuff = callPackage ../development/libraries/boolstuff { }; 17467 17468 inherit (callPackage ../development/libraries/boost { inherit (buildPackages) boost-build; }) 17469 - boost155 17470 boost159 17471 boost160 17472 boost165 ··· 32986 gl117 = callPackage ../games/gl-117 { }; 32987 32988 globulation2 = callPackage ../games/globulation { 32989 - boost = boost155; 32990 }; 32991 32992 gltron = callPackage ../games/gltron { }; ··· 33462 space-orbit = callPackage ../games/space-orbit { }; 33463 33464 spring = callPackage ../games/spring 33465 - { stdenv = gcc10StdenvCompat; asciidoc = asciidoc-full; boost = boost155; }; 33466 33467 springLobby = callPackage ../games/spring/springlobby.nix { }; 33468
··· 17466 boolstuff = callPackage ../development/libraries/boolstuff { }; 17467 17468 inherit (callPackage ../development/libraries/boost { inherit (buildPackages) boost-build; }) 17469 boost159 17470 boost160 17471 boost165 ··· 32985 gl117 = callPackage ../games/gl-117 { }; 32986 32987 globulation2 = callPackage ../games/globulation { 32988 + boost = boost168; # breaks with >= boost169 32989 }; 32990 32991 gltron = callPackage ../games/gltron { }; ··· 33461 space-orbit = callPackage ../games/space-orbit { }; 33462 33463 spring = callPackage ../games/spring 33464 + { stdenv = gcc10StdenvCompat; asciidoc = asciidoc-full; }; 33465 33466 springLobby = callPackage ../games/spring/springlobby.nix { }; 33467