Avoid calling gnubin executables during macos build#20614
Avoid calling gnubin executables during macos build#20614lefth wants to merge 2 commits intodarktable-org:masterfrom
Conversation
|
See my comment here: #20613 (comment) The darktable build scripts don't require or install gnubin, so please fix your system setup. |
|
I am still not convinced about these changes. These changes are necessary for YOU, because YOU have changed the standard behavior of YOUR system. Sure, we can add |
| # Handle library relative paths | ||
| oToolLDependencies=$(echo "$oToolLDependencies" | sed "s#@loader_path#${absolutePath}#") | ||
| oToolLDependencies=$(echo "$oToolLDependencies" | sed "s#@rpath#${absolutePath}#") | ||
| oToolLDependencies=$(echo "$oToolLDependencies" | /usr/bin/sed "s#@loader_path#${absolutePath}#") |
There was a problem hiding this comment.
That's wrong, you need to use PATH and never use full path in a script.
|
I'll see if I can tweak the calls to utility binaries to be cross platform. And yes, I know that's silly. It's Mac. It's not cross platform. Yet this is a homebrew installation accept, and homebrew sanctions putting the GNU utilities in PATH. |
No, homebew does not overwrite the standard system utilities, it installs the GNU utilities with the prefix "g": YOU have changed the PATH to overwrite the standard system utilities. How should darktable take into account the personal preferences of countless users? The scripts are written to support the minimal standard system installation. As I already wrote in your issue report, it would be an easy step to write a simple shell script which restores the system PATH and calls the darktable build scripts. |
|
@zisoft Those directions you quoted are the directions I followed. I didn't do anything with the system configuration, nor install files in inappropriate places. My impression is that lowering friction for newbies is important. How easy a project is to build influences whether new contributors join the project. Most of the time, when people fail to build a project, you don't hear about it--they just give up. I'd like to correct one of those small roadblocks. And no, it doesn't affect everybody. It probably affects everyone that shell scripts on both Mac and Linux, though pure Mac users won't have this setup. (That said, I know darktable has a very dedicated team and would not make technically bad compromises for the dubious benefit of some few people being able to compile more easily.) I didn't understand what you said about assuming a minimal system to support the build agents. Is it important to not change this script? Failing that, as I said on the issue page, there are other ways to prevent this problem: invoke the commands in a portable way, print a specific error, or add a sentence to the build instructions. |
|
@lefth : So let's ask what a coding AI agent tells us in this modern times of software development. Let me quote the answer here:
Based on this answer and since I am the maintainer of this script, I would really like to end the discussion here. @TurboGit : I vote for closing this PR |
This fixes #20613.