-
Notifications
You must be signed in to change notification settings - Fork 194
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
path.d and YARP_DATA_DIRS conflict #336
Comments
Interesting :-). Looking forward to the details. |
For me it's the other way around... If I set YARP_DATA_DIRS for one project, YARP stops finding the resources for a different project that is installed (even if it is cited in /usr/local/share/yarp/config/path.d). My objective is to mainly use YARP_DATA_DIRS, but once and a while install to see that the installation (for other people) is performed correctly. Right now, if there is a lagged behind YARP_DATA_DIRS corresponding to a different project, my installed data is not found when I install. (Workaround: removing YARP_DATA_DIRS for all projects while testing installation on any specific project). |
@jgvictores when
Then yarp will try
Does that help? |
the painful details http://wiki.icub.org/wiki/YARP_ResourceFinder |
btw very interested in hearing ways that the new config stuff breaks old workflows (and fixing that) |
That is an elegant solution that works nicely. 👍 Not closing issue because it was started by @traversaro. |
@jgvictores: given you are using these functionalities I would like to know if you find the "path.d" option useful. We added it to give users the possibility to extend YARP's search path in installed configurations, however I later thought it could be enough to give users the possibility to populate their own data files directly in the YARP installed tree (e.g. /usr/local/share/yarp). |
@lornat75: 1) I like extending YARP's search path in installed configurations. 2) Regarding installing an external package directly in YARP... personally, I prefer to keep YARP a bit cleaner.
|
More details. yarp and icub-main installed from sources and installed in their default installation directories.
As soon as the
|
The point is in the If This seems to be directly contradicting the documentation, in which There are then two possible solutions:
I would prefer the first solution (fixing the code) to reduce the complexity in documenting the installation process of downstream projects such as the cc @drdanz [1] : http://www.yarp.it/yarp_data_dirs.html#datafiles_extendsearch |
If we decide to support path.d as a way to extend yarp's search path for resources maybe it makes sense for YARP_DATA_DIRS to redefine it. However, I do not have strong opinions your observations look reasonable too. |
@diegoferigo was recently affected by this. |
If two different projects are "Extending the search path", as defined in http://www.yarp.it/git-master/yarp_data_dirs.html , and one is extending it using the
path.d
method and the other one is using theYARP_DATA_DIRS
method, only thepath.d
one is working.More detail will follow.
The text was updated successfully, but these errors were encountered: