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

absolute paths in singular config files #12

Open
apaffenholz opened this issue Jun 19, 2014 · 0 comments
Open

absolute paths in singular config files #12

apaffenholz opened this issue Jun 19, 2014 · 0 comments

Comments

@apaffenholz
Copy link
Member

singular creates saveral files of various different types (scripts, header, pkg config) that contain absolute paths to the installation directory and to the source directory.

See e.g.
polymake.app/Contents/Resources/bin/libpolys-config
polymake.app/Contents/Resources/include/singular/singularconfig.h
polymake.app/Contents/Resources/lib/pkgconfig/Singular.pc

I don't know whether they are actually used in an installed version of Singular. However,
we can't replace all the absolute paths with environment variables (e.g. in the headers). So the only solution I currently see is to write a post-installation script that replaces the paths with the correct ones on the target machine (triggered by the user (i.e. provide a "run once in a terminal" installation instruction) or via a check included in the start script (check one of the files, if wrong, run the script)).

This would fix paths to the installation directory. However, most files also point back to the build directory. This is a still unfixed bug in singular (http://www.singular.uni-kl.de:8002/trac/ticket/618), and we have no chance to fix it, the build directory is not included in the bundle.

Another solution would be to remove singular from the bundle...

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