Skip to content

Conversation

@guitargeek
Copy link
Contributor

Backport of ff7e631 requested by @vepadulano, for the fixes in core/base/CMakeLists.txt.

@github-actions
Copy link

github-actions bot commented Jan 26, 2026

Test Results

    19 files      19 suites   3d 12h 40m 34s ⏱️
 3 715 tests  3 714 ✅ 0 💤 1 ❌
68 853 runs  68 852 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit add84f5.

♻️ This comment has been updated with latest results.

fs::path libDir = gROOT->GetSharedLibDir().Data();
fs::path libDirRef = EXPECTED_SHARED_LIBRARY_DIR;

EXPECT_EQ(libDir, libDirRef);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reasons this seems to fail ...

@guitargeek guitargeek changed the title [core] Generalize TROOT::GetSharedLibDir() also on Windows [v638][core] Generalize TROOT::GetSharedLibDir() also on Windows Jan 27, 2026
This follows up on 47caba5, also generalizing the function on
Windows by dynamically finding `libCore.dll` (or `Core.dll` depending on
the toolchain).

The goal is to avoid using `TROOT::GetRootSys()` in the implementation
of this method, with the overarching goal of not having to rely on
environment variables like `ROOTSYS` one day, which might not be set in
some environments like the Python wheels.

A unit test for `TROOT::GetSharedLibDir()` is also implemented.

(cherry picked from commit ff7e631)
This is to avoid a warning when running the tutorials:
```txt
Processing /github/home/ROOT-CI/src/tutorials/machine_learning/TMVA_SOFIE_GNN_Application.C...
In file included from input_line_10:1:
 ##[error]/github/home/ROOT-CI/src/tutorials/machine_learning/TMVA_SOFIE_GNN_Application.C:14:10: fatal error: 'encoder.hxx' file not found
 #include "encoder.hxx"
         ^~~~~~~~~~~~~
 ##[error]/github/home/ROOT-CI/src/tutorials/machine_learning/TMVA_SOFIE_GNN_Application.C:138:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
}
^
```

(cherry picked from commit 50c9227)
The idea is to find the actual ROOT install directory, so we have to
follow symlinks. The `info->dlpi_name` doesn't do that, so we need to do
that ourselves with `fs::canonical()`.

Closes root-project#21031.

(cherry picked from commit f1af3d7)
@guitargeek guitargeek merged commit 1160150 into root-project:v6-38-00-patches Jan 28, 2026
23 of 26 checks passed
@guitargeek guitargeek deleted the bp_1 branch January 28, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants