From a1c3b313be5be9716a761a762ea3651070ed9e43 Mon Sep 17 00:00:00 2001 From: Andrew Savchenko Date: Wed, 2 Jul 2014 17:29:12 +0400 Subject: sci-physics/root: fix Cling library load It was broken for prefix builds (that's how ROOT is installed in Gentoo. See bug https://sft.its.cern.ch/jira/browse/ROOT-6410. --- sci-physics/root/files/root-6.00.01-cling.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sci-physics/root/files/root-6.00.01-cling.patch (limited to 'sci-physics/root/files') diff --git a/sci-physics/root/files/root-6.00.01-cling.patch b/sci-physics/root/files/root-6.00.01-cling.patch new file mode 100644 index 000000000..146e89fde --- /dev/null +++ b/sci-physics/root/files/root-6.00.01-cling.patch @@ -0,0 +1,19 @@ +commit eea9517c17bd86beda895a5a8b3ffe59af18596f +Author: Axel Naumann +Date: Tue Jul 1 17:45:20 2014 +0200 + + From Pere: go via TSystem to use prefix if defined (ROOT-6410). + +diff --git a/core/meta/src/TCling.cxx b/core/meta/src/TCling.cxx +index baec571..4976d4e 100644 +--- a/core/meta/src/TCling.cxx ++++ b/core/meta/src/TCling.cxx +@@ -4703,7 +4703,7 @@ void* TCling::LazyFunctionCreatorAutoload(const std::string& mangled_name) { + TString lib; + Ssiz_t posLib = 0; + while (libs.Tokenize(lib, posLib)) { +- if (Load(lib, kFALSE /*system*/) < 0) { ++ if (gSystem->Load(lib, "", kFALSE /*system*/) < 0) { + // The library load failed, all done. + //fprintf(stderr, "load failed: %s\n", errmsg.c_str()); + return 0; -- cgit v1.2.3-65-gdbad