diff --git a/recipe/macro_path_binary_relocation.patch b/recipe/macro_path_binary_relocation.patch new file mode 100644 index 0000000..f57ea82 --- /dev/null +++ b/recipe/macro_path_binary_relocation.patch @@ -0,0 +1,22 @@ +From 8d90eee1109a79135b5858d0d7a5fcb0f6cab641 Mon Sep 17 00:00:00 2001 +From: Diego +Date: Tue, 6 Jul 2021 15:47:04 +0200 +Subject: [PATCH] Fix path in conda due to its binary relocation hacks + +--- + src/SystemPaths.cc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/SystemPaths.cc b/src/SystemPaths.cc +index f809686..16e6e66 100644 +--- a/src/SystemPaths.cc ++++ b/src/SystemPaths.cc +@@ -235,6 +235,8 @@ void SystemPaths::AddFilePaths(const std::string &_path) + std::string SystemPaths::NormalizeDirectoryPath(const std::string &_path) + { + std::string path = _path; ++ path.erase(std::find(path.begin(), path.end(), '\0'), path.end()); ++ + // Use '/' because it works on Linux, OSX, and Windows + std::replace(path.begin(), path.end(), '\\', '/'); + // Make last character '/' diff --git a/recipe/meta.yaml b/recipe/meta.yaml index ab8ae0f..57936e8 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -13,9 +13,10 @@ source: patches: - librt_linkage.patch # [linux] - framework.patch # [osx] + - macro_path_binary_relocation.patch build: - number: 2 + number: 3 run_exports: - {{ pin_subpackage(name, max_pin='x') }}