Bug 2274016

Summary: [EPEL8] boost1.78-static .cmake incorrect path for static libraries
Product: [Fedora] Fedora EPEL Reporter: rhys.parry
Component: boost1.78Assignee: Denis Arnaud <denis.arnaud_fedora>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel8CC: denis.arnaud_fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test repro none

Description rhys.parry 2024-04-08 15:16:17 UTC
Created attachment 2025856 [details]
Test repro

Description of problem:
boost1.78-static looks in the incorrect directory for static libraries when using CMake's FindBoost.

The shipped .cmake file looks to point at the same directory (/usr/lib64) for both the shared and static Boost libraries. However the static Boost libraries are instead in /usr/lib64/boost1.78 .

Version-Release number of selected component (if applicable):
1.78.0-1.el8

How reproducible:
Fully here.

Steps to Reproduce:
1. Extract BoostEpelStaticTest.tar.gz contents
2. Open BoostEpel Folder in VS Code
3. [F1] Dev Containers: Reopen in Container
4. [F1] CMake: Delete Cache and Reconfigure
5. [F1] CMake: Clean Rebuild

Actual results:
[proc] Executing command: /usr/local/bin/cmake --build /workspaces/BoostEpel/build --config Debug --target all --
[build] ninja: error: '/usr/lib64/libboost_filesystem.a', needed by 'EpelStaticBoostTest', missing and no known rule to make it

Expected results:
Builds test exe

Additional info:
Workaround: Uncomment "RUN mv /usr/lib64/boost1.78/* /usr/lib64/" in Dockerfile

Comment 1 Denis Arnaud 2024-04-09 08:35:45 UTC
Thanks for reporting that bug!

Do not hesitate to create a pull request (PR) on https://src.fedoraproject.org/rpms/boost1.78/tree/epel8 . It will greatly accelerate the resolution.