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

raco distribute not respecting symbolic links (specifically with Rosette) #4945

Open
gussmith23 opened this issue Mar 1, 2024 · 1 comment

Comments

@gussmith23
Copy link

Thank you all!

What version of Racket are you using?
8.11 [cs]

What program did you run?
raco distribute on a project that uses Rosette.

What should have happened?
When using raco distribute with Rosette, you are expected to place some binaries inside of Rosette (specifically, the solvers it uses). raco distribute then bundles up those binaries with Rosette. In my case, I put in symbolic links to the binaries, which are built at a different location, just for organizational reasons. When raco distribute bundled up the symbolic links, it should have kept them as symbolic links.

Instead, it seems like it just copied the binaries to the location instead. This is frustrating, as it means their RPATHs are no longer valid when their RPATHs are defined relatively.

Please include any other relevant details
This is on Ubuntu.

@gussmith23
Copy link
Author

@sorawee pointed out offline that distribute may be using this:
https://docs.racket-lang.org/reference/Filesystem.html#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._copy-file%29%29

If src refers to a link, the target of the link is copied, rather than the link itself.

Thanks for the find on that.

I guess the question is, do you want to support my edge-case?

gussmith23 added a commit to uwsampl/lakeroad that referenced this issue Mar 1, 2024
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