-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support paths from macros extended to support binary relocation #36
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
89ba1e1
Support paths from macros extended to support binary relocation
diegoferigo 153e3ee
Bump build number
diegoferigo 786cf9d
Fix missing extension in patch name
diegoferigo a2b57dc
Package 'patch' is not available in Windows
diegoferigo 29996b0
Remove dependecies to build the recipe locally
diegoferigo a996355
Apply the patch to all supported platforms
diegoferigo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 8d90eee1109a79135b5858d0d7a5fcb0f6cab641 Mon Sep 17 00:00:00 2001 | ||
From: Diego <[email protected]> | ||
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 '/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, I had to add these two build dependencies otherwise building the package locally in my setup (without using docker) was failing, even though the active conda environment had it (I suspect the process runs isolated in a new env). To be precise, my setup is already in a docker container, and running the docker script would require me to setup DIND.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know, but please remove them. The recipe should only contain the dependency required to build the recipe on the conda-forge CI, anything else is quite difficult to maintain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done