-
-
Notifications
You must be signed in to change notification settings - Fork 745
allow macOS sed #41399
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
base: develop
Are you sure you want to change the base?
allow macOS sed #41399
Conversation
|
|
|
Documentation preview for this PR (built with commit ff27f83; changes) is ready! 🎉 |
|
This works for me. Thanks for investigating and finding the fix. |
|
@vbraun - this unbreaks ./bootstrap + ./configure on macOS. |
|
No idea how this is supposed to work. Surely there should be a space between to be safe, escape the |
fixes a bug in sagemath#41333 tested on macOS and Linux now
|
indeed, missing space after I let the pattern matching as is, as we are here at the mercy of autotools, anyway. Maybe we can just drop |
|
By the way, the testbots are not detecting untracked files in the repo, because with the previous version, which created |
|
I gather it's not shown due to a |
If I create a file so it seems like it should be caught somewhere other than manually. |
|
Anyway, this version works for me on OS X. Can someone confirm that it is okay on a system with GNU |
|
I certainly checked Linux, and macOS |
sorry, I forgot running ./boostrap... So, now, I have resorted to calling sed on macOS using the |
|
I don't think that the work on all supported platforms? |
no, it does not work with GNU seds. One gets |
|
We can merge this as is, although I find it annoying to have different shell code for different platforms. I think that this should be portable (although not tested), but maybe this is annoying in other ways: |
|
@jhpalmieri we already spent way too much time on this. 😃 |
|
@jhpalmieri - well, we can do --- a/configure_wrapper
+++ b/configure_wrapper
@@ -14,8 +14,5 @@ cp conftest.py bak_conftest.py
# Fix config.status to call ./configure instead of ./real_configure
# so that --recheck also protects conftest.py
-if [[ "$OSTYPE" == "darwin"* ]]; then
- sed -i '' "s|'./real_configure'|'./configure'|g" config.status
-else
- sed -i "s|'./real_configure'|'./configure'|g" config.status
-fi
+sed -i.old "s|'./real_configure'|'./configure'|g" config.status
+rm -f config.status.oldThis is portable, according to my tests. :-) sorry, I want the 1st place in this bikesheddingfest :-) |
fixes a bug in #41333
📝 Checklist
⌛ Dependencies