-
Notifications
You must be signed in to change notification settings - Fork 16
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
_symlinks attempts to create multiple symbolic links to .../include
#1
Comments
A simple fix is to check if the path exists here before trying to create the symlink:
|
Sorry I had a pull request ready but removed the forked repo. You can take a look at #3 |
Another case this fails for is ImageMagick on current Debian unstable:
There doesn't appear to be much interest in getting this fixed. Am I mistaken? |
I have put together a working implementation of another approach to symlinking in headers. This approach is to create a tree of symlinks that merges include paths together. So, for example, if a package In other words, if our package has headers:
Then the resulting directory structure will be:
I have implemented this on a branch where I also did a bit of cleanup. I'll open a PR once it is a bit more mature. @cherrry , LMK if you want this factored apart differently (like a distinct PR for cleanup). This is currently a bit of a hack, because Bazel's lack of while loops and general recursion have kept me from traversing arbitrary directory trees. (Perhaps there is a way to do this that I am not aware of.) I have resorted to unrolling the directory tree traversal manually for several levels. |
Thanks everyone helping here. Unfortunately I haven't work on coding side projects for a while (to completely detach from work 😅), and not actively maintaining the package. If anyone is interested to maintain a fork, I'm happy to update the README.md to redirect my repository to yours. But accepting pull requests fixing the issue upstream here isn't feasible since I couldn't help verify the change before merge. |
I am very sympathetic to the need to disconnect! Please don't worry about it. I'd be happy to maintain a fork for the time being. I'm ready to merge my changes into the main branch of my GitHub repo, so just let me know when you think you're done pushing changes on your end, and I'll rebase and keep things moving along. Feel free to add an AUTHORS file crediting yourself however you'd like. If you don't, I'll add one. |
When
pkg-config
returns paths with multiples of.../include
the function_symlinks
attempts (and fails viajava.io.IOException
) to create multiple symbolic links of the same path.The simplest solution is to modify the name of the final directory that is created. An attempt to create sub-directories to hold these
include
directories may, in turn, create cyclical symbolic links inside the system directory.The text was updated successfully, but these errors were encountered: