forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-ros/rospack: add custom patch to return proper package paths with…
… our package.xml moved to ros_packages. Package-Manager: portage-2.3.2
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Index: rospack-2.3.1/src/rospack.cpp | ||
=================================================================== | ||
--- rospack-2.3.1.orig/src/rospack.cpp | ||
+++ rospack-2.3.1/src/rospack.cpp | ||
@@ -191,6 +191,13 @@ class Stackage | ||
break; | ||
} | ||
} | ||
+ | ||
+ // On Gentoo we move package.xml to /usr/share/ros_packages/... but need to keep standard stuff in /usr/share, so correct this here. | ||
+ try { | ||
+ fs::path p = fs::canonical("../../" + name_, path_); | ||
+ path_ = p.string(); | ||
+ } | ||
+ catch(fs::filesystem_error& e) {}; | ||
} | ||
|
||
bool isStack() const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters