Closed mathisschmieder closed 2 years ago
There was an error in my proposed fix, this will create a backup file with extension '-e'. The proper fix is as follows:
sed -i'' -e 's+import iceboxdb+import iceboxdb as iceboxdb+g' icebox.py
I hit the same problem last night and used the latter suggestion in my local build.
Worked for me as well, thanks.
Hi,
While trying to install icestorm on macOS, I ran into some incompatibilities between GNU and BSD sed. The changes in https://github.com/cliffordwolf/icestorm/commit/fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e break the make install process on macOS:
sed -i 's+import iceboxdb+import iceboxdb as iceboxdb+g' icebox.py sed: 1: "icebox.py": command i expects \ followed by text
The fix is actually quite easy, you just have to add -e after -i:
sed -i -e 's+import iceboxdb+import iceboxdb as iceboxdb+g' icebox.py
This will work both on BSD and GNU sed (tested on macOS Catalina 10.15.4 with BSD sed and GNU sed version 4.8 and Ubuntu 20.04 with GNU sed version 4.7).
Thanks a lot, Mathis