Skip to content

CMake and RPM changes to get EL8 builds working#142

Merged
matyasselmeci merged 3 commits intoPelicanPlatform:mainfrom
matyasselmeci:pr/el8
Feb 20, 2026
Merged

CMake and RPM changes to get EL8 builds working#142
matyasselmeci merged 3 commits intoPelicanPlatform:mainfrom
matyasselmeci:pr/el8

Conversation

@matyasselmeci
Copy link
Contributor

Fixes #140.

The following differences were the cause of the EL8 build failures:

  • tinyxml2 6.0.0 defined the CMake target tinyxml2 instead of tinyxml2::tinyxml2 like later versions; fixed by defining the latter if the former is found
  • Some of the libraries did not list the std::namespace dependency needed on GCC 8.5
  • The cmake --build command in the spec file was assuming an out-of-source build and hardcoded the build path, but EL8 builds are in-source by default. Doubly fixed by changing the EL8 build to be out-of-source as well, and by using the standard %cmake_build macro to specify the same paths as the other %cmake_* macros.

Tested on EL8, EL9, and EL10 builds on OSG Koji.

matyasselmeci and others added 3 commits February 13, 2026 12:49
tinyxml2 6.0.0 (EL8) provides the 'tinyxml2' target instead of the
'tinyxml2::tinyxml2' target.  If the former is found, define the latter.

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Use the standard cmake macros for consistency and making sure they all find the
right directories.
…nd XrdOssPoscObj

This library needs to be explicitly listed on EL8 (GCC 8.5) to avoid
undefined reference errors to things like
`std::filesystem::__cxx11::path::_M_split_cmpts()`
@patrickbrophy patrickbrophy self-requested a review February 20, 2026 15:15
@patrickbrophy patrickbrophy self-assigned this Feb 20, 2026
Copy link
Contributor

@patrickbrophy patrickbrophy left a comment

Choose a reason for hiding this comment

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

I was able to build this in an EL8 container and the changes looks good. LGTM

@matyasselmeci matyasselmeci merged commit 82e9722 into PelicanPlatform:main Feb 20, 2026
3 checks passed
@matyasselmeci matyasselmeci deleted the pr/el8 branch February 20, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RPM does not build on EL8

2 participants