Is there an existing issue for this?
Describe the bug
If /opt/local/libexec/gnubin (or $(brew --prefix coreutils)/libexec/gnubin) is early in PATH, the versions of find and sed invoked will be the GNU versions. The arguments differ from the Mac versions in incompatible ways. I fixed it by prepending "/usr/bin/" to these two commands. Other commands seem to work, but the future-compatible fix is to be sure we are never calling the gnu executables by removing "gnubin" from PATH or moving it to the end.
Steps to reproduce
- Install homebrew
brew install findutils gnu-sed
- Add
$(brew --prefix coreutils)/libexec/gnubin) to the beginning of PATH
- Run the packaging/macos homebrew build scripts
- The error output is:
sed: can't read s|{VERSION}|5.5.0|: No such file or directory
./3_make_hb_darktable_package.sh{}:209: Error: command `sed -i '' 's|{VERSION}|'$(git describe --tags --long --match '*[0-9.][0-9.][0-9]' | cut -d- -f2 | sed 's/^\([0-9]*\.[0-9]*\)$/\1.0/')'|' "$dtWorkingDir"/Contents/Info.plist` failed with exit code 2
Expected behavior
No response
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
self compiled
darktable version
2360650
What OS are you using?
Mac
What is the version of your OS?
MacOS 15
Describe your system
No response
Are you using OpenCL GPU in darktable?
None
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
Is there an existing issue for this?
Describe the bug
If
/opt/local/libexec/gnubin(or$(brew --prefix coreutils)/libexec/gnubin) is early in PATH, the versions offindandsedinvoked will be the GNU versions. The arguments differ from the Mac versions in incompatible ways. I fixed it by prepending "/usr/bin/" to these two commands. Other commands seem to work, but the future-compatible fix is to be sure we are never calling the gnu executables by removing "gnubin" from PATH or moving it to the end.Steps to reproduce
brew install findutils gnu-sed$(brew --prefix coreutils)/libexec/gnubin) to the beginning of PATHExpected behavior
No response
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
self compiled
darktable version
2360650
What OS are you using?
Mac
What is the version of your OS?
MacOS 15
Describe your system
No response
Are you using OpenCL GPU in darktable?
None
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response