Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project install installs fmt lib #865

Closed
VVD opened this issue Mar 1, 2024 · 1 comment
Closed

Project install installs fmt lib #865

VVD opened this issue Mar 1, 2024 · 1 comment

Comments

@VVD
Copy link

VVD commented Mar 1, 2024

Install stage failed - tried install include/fmt/*.h, libfmt.a, fmt.pc, fmt*.cmake files which conflicts with files from system-installed libfmt.

Install log before patch:

cd /tmp/work/usr/ports/graphics/khronos-texture/work/.build && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/libfmt.a
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/args.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/chrono.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/color.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/compile.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/core.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/format.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/format-inl.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/os.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/ostream.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/printf.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/ranges.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/std.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/fmt/xchar.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/fmt/fmt-config.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/fmt/fmt-config-version.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/fmt/fmt-targets.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/fmt/fmt-targets-release.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/pkgconfig/fmt.pc
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx2check
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx2check" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx2ktx2
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx2ktx2" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktxinfo
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktxinfo" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktxsc
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktxsc" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/toktx
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/toktx" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/libktx.so.0.0.0
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/libktx.so.0
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/ktx.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/ktxvulkan.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/libktx.so
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/KHR/khr_df.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/ktx/KtxTargets.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/ktx/KtxTargets-release.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/ktx/KtxConfig.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/ktx/KtxConfigVersion.cmake

Patch:

--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -1064,6 +1064,7 @@ endif()
 # this CMakeLists is included in another project which is unlikely
 # except for building the ktx library.
 if((KTX_FEATURE_TOOLS OR KTX_FEATURE_TESTS) AND NOT TARGET fmt::fmt)
+    set(FMT_INSTALL OFF)
     set(FMT_SYSTEM_HEADERS ON)
     add_subdirectory(other_projects/fmt)
 endif()

Install log after patch:

cd /tmp/work/usr/ports/graphics/khronos-texture/work/.build && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx2check
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx2check" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx2ktx2
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktx2ktx2" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktxinfo
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktxinfo" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktxsc
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/ktxsc" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/toktx
-- Set non-toolchain portion of runtime path of "/tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/bin/toktx" to "$ORIGIN:$ORIGIN/../lib"
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/libktx.so.0.0.0
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/libktx.so.0
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/ktx.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/ktxvulkan.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/libktx.so
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/include/KHR/khr_df.h
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/ktx/KtxTargets.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/ktx/KtxTargets-release.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/ktx/KtxConfig.cmake
-- Installing: /tmp/work/usr/ports/graphics/khronos-texture/work/stage/usr/local/lib/cmake/ktx/KtxConfigVersion.cmake

Some more details are here: #786 (comment).

@VVD
Copy link
Author

VVD commented Mar 13, 2024

Thanks!

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

No branches or pull requests

1 participant