Petr Gajdos
b62ddc35fe
- Add Fix-the-symlinks-creation.patch to fix the symlinks creation. OBS-URL: https://build.opensuse.org/request/show/748749 OBS-URL: https://build.opensuse.org/package/show/graphics/openexr?expand=0&rev=41
37 lines
2.4 KiB
Diff
37 lines
2.4 KiB
Diff
From 4e54bde78f65c0fef8a9f794aaacea07813fba09 Mon Sep 17 00:00:00 2001
|
|
From: Antonio Rojas <arojas@archlinux.org>
|
|
Date: Sat, 19 Oct 2019 09:58:10 +0200
|
|
Subject: [PATCH] Take DESTDIR into account when creating library symlinks
|
|
|
|
---
|
|
IlmBase/config/LibraryDefine.cmake | 2 +-
|
|
OpenEXR/config/LibraryDefine.cmake | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/IlmBase/config/LibraryDefine.cmake b/IlmBase/config/LibraryDefine.cmake
|
|
index 0502825f..9fb92c1c 100644
|
|
--- a/IlmBase/config/LibraryDefine.cmake
|
|
+++ b/IlmBase/config/LibraryDefine.cmake
|
|
@@ -100,7 +100,7 @@ function(ILMBASE_DEFINE_LIBRARY libname)
|
|
if(BUILD_SHARED_LIBS AND (NOT "${ILMBASE_LIB_SUFFIX}" STREQUAL ""))
|
|
set(verlibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${ILMBASE_LIB_SUFFIX}${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
set(baselibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_INSTALL_FULL_LIBDIR} ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})")
|
|
+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR} ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})")
|
|
install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_LIBDIR} ${baselibname} -> ${verlibname}\")")
|
|
set(verlibname)
|
|
set(baselibname)
|
|
diff --git a/OpenEXR/config/LibraryDefine.cmake b/OpenEXR/config/LibraryDefine.cmake
|
|
index 6946ca94..c5b6096a 100644
|
|
--- a/OpenEXR/config/LibraryDefine.cmake
|
|
+++ b/OpenEXR/config/LibraryDefine.cmake
|
|
@@ -94,7 +94,7 @@ function(OPENEXR_DEFINE_LIBRARY libname)
|
|
if(BUILD_SHARED_LIBS AND (NOT "${OPENEXR_LIB_SUFFIX}" STREQUAL ""))
|
|
set(verlibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${OPENEXR_LIB_SUFFIX}${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
set(baselibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_INSTALL_FULL_LIBDIR} ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})")
|
|
+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR} ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})")
|
|
install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_LIBDIR} ${baselibname} -> ${verlibname}\")")
|
|
set(verlibname)
|
|
set(baselibname)
|