Skip to content
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

Can not compile ocamlfind 1.9.6 under Cygwin /opam 2.2.0 /ocaml 5.2.0 #66

Open
iBoost21 opened this issue Jun 19, 2023 · 0 comments
Open

Comments

@iBoost21
Copy link

iBoost21 commented Jun 19, 2023

# tools/patch '@sitelib@' '/home/Kevin/.opam/5.2.0+trunk/lib' |
# tools/patch '@FINDLIB_PATH@' '/home/Kevin/.opam/5.2.0+trunk/lib/ocaml;/home/Kevin/.opam/5.2.0+trunk/lib' -p >findlib.conf
# sed: -e expression #1, char 58: unknown option to `s'

In the patch script, the delimiter used by sed is ;, which is generally a safe choice. However, since the replacement value contains ;, we need to choose a delimiter that won't appear in the paths.

Here, I've changed the delimiter from ; to |, as | is less likely to appear in file paths. So, the final line of the patch script should look like this:

sed -e 's|'"$varname"'|'"$varvalue"'|g'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant