Ticket #45265: root.4.diff
File root.4.diff, 4.1 KB (added by cjones051073 (Chris Jones), 10 years ago) |
---|
-
Portfile
9 9 PortGroup github 1.0 10 10 PortGroup select 1.0 11 11 12 # don't forget to update both the git tag and the version 13 #github.setup root-mirror root 6-02-00 v 14 # tag below is 6.02/00 + a few minor fixes for installation issues. 15 github.setup root-mirror root f460f42728305617c4978ced32bd030b1b4279e0 16 version 6.02.00 12 17 13 # don't forget to update both the git tag and the version14 github.setup root-mirror root 6-00-02 v15 version 6.00.0216 revision 217 18 # this could be a better way to set the version (unless we use a sha sum for the git tag ;) 18 19 # version [string map {- .} $version] 19 20 set version_major [lindex [split ${version} .] 0] 20 checksums rmd160 5efc28e5d68aaa4274d869c809c4d052d6011fe4 \21 sha256 6e6fa7fbe0fe72828a6a65f758af9e1fcb04b66dec7fae79ecbe06e81692b21822 21 22 checksums rmd160 46c38ab178b114794b2f53cfdd59b41e53470223 \ 23 sha256 cfa9d3daadb05ff527d75ec5959bb1ca3d0ea2f200a09ec1959dc0ef9dba2389 24 23 25 name root${version_major} 24 26 categories science 25 27 maintainers hep.phy.cam.ac.uk:jonesc mojca … … 60 62 select.group root 61 63 select.file ${filespath}/${name} 62 64 63 patchfiles patch-cmake-modules-SearchInstalledSoftware.cmake.diff64 65 65 # Force a compatible compiler 66 66 compiler.blacklist-append *gcc* {clang < 500} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2 67 67 compiler.fallback-append macports-clang-3.4 macports-clang-3.5 … … 125 125 126 126 platform darwin { 127 127 128 if {${os.major} < 10} { 128 # No longer compiles on OSX10.6, due to update to internal LLVM version. 129 # Disable build on this platform. 130 if { ${os.major} < 11 } { 129 131 pre-fetch { 130 ui_error "${name} requires C++11 and modifications of the package."131 return -code error " C++11 needed"132 ui_error "${name} is not supported on this OSX release." 133 return -code error "Unsupported OSX version" 132 134 } 133 } elseif {${os.major} == 10} { 134 # an ugly workaround for lack of __thread on 10.6 (and earlier) 135 # it has to be patched properly upstream 136 # https://sft.its.cern.ch/jira/browse/ROOT-6394 137 patchfiles-append patch-montecarlo-vmc-inc-TMCtls.h.diff 138 } 135 } 139 136 140 137 # Note that we are forcing this choice. This means that anything linking 141 138 # against root6 needs to also be using libc++. This is possibly … … 567 564 # Note that g95 does not work here, so that variant is removed 568 565 # ======================================================================================== 569 566 570 set gcc_versions { 4.7 4.8 4.9 }567 set gcc_versions { 4.7 4.8 4.9 5 } 571 568 set default_fortran_variant +gcc48 572 569 573 570 foreach gcc_ver ${gcc_versions} { -
files/patch-montecarlo-vmc-inc-TMCtls.h.diff
1 https://sft.its.cern.ch/jira/browse/ROOT-6394 2 3 --- montecarlo/vmc/inc/TMCtls.h.orig 4 +++ montecarlo/vmc/inc/TMCtls.h 5 @@ -49,8 +49,8 @@ 6 ( defined(__MACH__) && defined(__GNUC__) && __GNUC__>=4 && __GNUC_MINOR__>=7 ) || \ 7 defined(__linux__) || defined(_AIX) ) && ( !defined(__CINT__) ) 8 // Multi-threaded build: for POSIX systems 1 --- ./montecarlo/vmc/inc/TMCtls.h.orig 2014-10-03 11:59:47.000000000 +0100 2 +++ ./montecarlo/vmc/inc/TMCtls.h 2014-10-03 12:00:24.000000000 +0100 3 @@ -52,8 +52,8 @@ 4 */ 5 #if ( defined(__linux__) ) && ( !defined(__CINT__) ) 6 // Multi-threaded build: for POSIX systems 9 7 - #include <pthread.h> 10 8 - #define TMCThreadLocal __thread 11 + //#include <pthread.h>9 + //#include <pthread.h> 12 10 + #define TMCThreadLocal 13 11 #else 14 12 //# error "No Thread Local Storage (TLS) technology supported for this platform. Use sequential build !" 15 #define TMCThreadLocal 13 #define TMCThreadLocal