Skip to content

Fix FINDLIB_PATH when using relative paths - #100

Open
shym wants to merge 1 commit into
ocaml:masterfrom
shym:pre-fix
Open

Fix FINDLIB_PATH when using relative paths#100
shym wants to merge 1 commit into
ocaml:masterfrom
shym:pre-fix

Conversation

@shym

@shym shym commented Mar 5, 2025

Copy link
Copy Markdown
Contributor

Fix the generation of the relative site lib path so that both destdir and path start with a $PREFIX/lib.

Before that patch, running:

./configure -bindir $OPAM_SWITCH_PREFIX/bin -sitelib $OPAM_SWITCH_PREFIX/lib -mandir $OPAM_SWITCH_PREFIX/man -config $OPAM_SWITCH_PREFIX/lib/findlib.conf -with-relative-paths-at $OPAM_SWITCH_PREFIX -no-custom -no-camlp4
make -B findlib.conf

yielded a broken path:

path="REFIX/lib:..."

configure has been tested with dash, bash and busybox sh; the 'info' reported by shellcheck is indeed correct.

Fix the generation of the relative site lib path so that both `destdir`
and `path` start with a `$PREFIX/lib`

Before that patch, running:

```
./configure -bindir $OPAM_SWITCH_PREFIX/bin -sitelib $OPAM_SWITCH_PREFIX/lib -mandir $OPAM_SWITCH_PREFIX/man -config $OPAM_SWITCH_PREFIX/lib/findlib.conf -with-relative-paths-at $OPAM_SWITCH_PREFIX -no-custom -no-camlp4
make -B findlib.conf
```

yielded a broken `path`:

```
path="REFIX/lib:..."
```

`configure` has been tested with `dash`, `bash` and `busybox sh`; the
'info' reported by `shellcheck` is indeed correct
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

Successfully merging this pull request may close these issues.

1 participant