Adding a link with `ln -s /usr/include //include` compiles but doesn't fix the ebuild Reproducible: Always Steps to Reproduce: 1. emerge -v sdl2-ttf Actual Results: Abort: Fails to locate SDL2_INCLUDE_DIR Expected Results: Compile and install locating SDL2_INCLUDE_DIR as /usr/include not //include
Please include the full build.log and emerge --info (with the symlink removed).
Created attachment 848465 [details] output of emerge -v sdl2-ttf
emerge --info too please if not already working on it. It might be an issue with CMake (which is fixed in portage git).
The line of code in question is located at /lib/cmake/SDL2/sdl2-config.cmake:17 get_file_component(prefix "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) ${CMAKE_CURRENT_LIST_DIR} is set to /lib/cmake/SDL2 So this seems to be related to the usr-merge transition
Yes, that's what I was suspecting, hence asking about emerge --info.
Created attachment 848467 [details] emerge --info sdl2-ttf libsdl2
Any chance you could try portage-9999 briefly and report if it helps?
Created attachment 848485 [details, diff] media-libs/libsdl2 cmake merged-usr fix using REALPATH
Created attachment 848487 [details] [New Ebuild] media-libs/libsdl2-2.26.2-r1.ebuild
*** This bug has been marked as a duplicate of bug 888543 ***
The bug is triggered in dev-util/cmake-3.25.1 Adding GetRealPath to CollapseFullPath resolves the issue.
Created attachment 848553 [details, diff] dev-util/cmake-3.25.1 add GetRealPath to CollapseFullPath
Created attachment 848555 [details] [New Ebuild] dev-util/cmake-3.25.1-r1.ebuild