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

www/serf hardcodes /usr/lib in --rpath breaking hybrid subversion #44

Open
bsdjhb opened this issue Aug 3, 2022 · 0 comments
Open

www/serf hardcodes /usr/lib in --rpath breaking hybrid subversion #44

bsdjhb opened this issue Aug 3, 2022 · 0 comments

Comments

@bsdjhb
Copy link

bsdjhb commented Aug 3, 2022

Not sure if we want to fix this vs try to get purecap subversion working instead?

Symptom is that pkg64 svn doesn't work out of the box.

> svn info
ld-elf64.so.1: /usr/local64/bin/svn: cannot load /usr/lib/libssl.so.111 since it is CheriABI

I debugged this to libserf.so.1 having /usr/lib in its rpath:

> readelf -d /usr/local64/lib/libserf-1.so

Dynamic section at offset 0x19538 contains 37 entries:
  Tag                Type                  Name/Value
 0x000000000000001d RUNPATH              Library runpath: [/usr/local64/lib:/usr/local64/lib:/usr/lib:/usr/local64/lib/db5:/usr/lib]
...

This ends up in RPATH in serf's SConstruct file via $OPENSSL/lib so it's not a LOCALBASE issue, but instead things assuming base system libraries are in /usr/lib. Workaround is to use env LD_64_LIBRARY_PATH=/usr/lib64 svn ...

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