Skip to content

Conversation

kliem
Copy link
Contributor

@kliem kliem commented Mar 19, 2021

An install from source of cdd will put the headers in cddlib. So this location folder should be the default place to look for.

Some systems put cdd in usr/bin/cdd (e.g. ubuntu bionic). If I have installed an updated cdd somewhere else, it is difficult to link this other one.

This patch will link the cdd installed from source anywhere, if it is early in my $PATH. I would argue that this is what I want in this case.

The downside is, that the system installed cdd will not be chosen anymore (depending on the system), if I also have a user installed cdd in my $PATH. (This could be fixed by enabling only one of HAVE_CDDLIB_SETOPER_H etc. according to the first element in my path with cdd.) However, this seems to be an unlikely scenario.

@hannes14
Copy link
Member

Having the "same" library twice on a system is asking for trouble.
We do not care about the order, just need to find the include files.

@hannes14 hannes14 merged commit f2f7da3 into Singular:spielwiese Mar 19, 2021
@kliem
Copy link
Contributor Author

kliem commented Mar 19, 2021

Thank you. It's a SageMath thing that sometimes system installs are rejected.

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.

2 participants