diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-08-15 08:02:35 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-08-15 08:25:26 +0200 |
commit | 22d803245bc35305dde45a1873ffc5d352ed5fac (patch) | |
tree | 34e726a7b66c1aebcfef366a32fd5627d51029dc /dev-python/catkin_pkg/files | |
parent | dev-ml/ppx_variants_conv: convert to opam.eclass (diff) | |
download | gentoo-22d803245bc35305dde45a1873ffc5d352ed5fac.tar.gz gentoo-22d803245bc35305dde45a1873ffc5d352ed5fac.tar.bz2 gentoo-22d803245bc35305dde45a1873ffc5d352ed5fac.zip |
dev-python/catkin_pkg: bump to 0.3.6 and update infinite loop patch
Package-Manager: Portage-2.3.7, Repoman-2.3.3
Diffstat (limited to 'dev-python/catkin_pkg/files')
-rw-r--r-- | dev-python/catkin_pkg/files/infinite_loop2.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/catkin_pkg/files/infinite_loop2.patch b/dev-python/catkin_pkg/files/infinite_loop2.patch new file mode 100644 index 000000000000..7c5edba2b50c --- /dev/null +++ b/dev-python/catkin_pkg/files/infinite_loop2.patch @@ -0,0 +1,27 @@ +https://bugs.gentoo.org/show_bug.cgi?id=612860 +By Tim Rakowski +We os.walk /usr with followlinks=True, but at least nodejs contains a "recursive" link in /usr/include/node + +Index: catkin_pkg-0.3.6/src/catkin_pkg/packages.py +=================================================================== +--- catkin_pkg-0.3.6.orig/src/catkin_pkg/packages.py ++++ catkin_pkg-0.3.6/src/catkin_pkg/packages.py +@@ -56,7 +56,9 @@ def find_package_paths(basepath, exclude + """ + paths = [] + real_exclude_paths = [os.path.realpath(p) for p in exclude_paths] if exclude_paths is not None else [] ++ visited = set() + for dirpath, dirnames, filenames in os.walk(basepath, followlinks=True): ++ visited.add(dirpath) + if 'CATKIN_IGNORE' in filenames or \ + os.path.realpath(dirpath) in real_exclude_paths or \ + (exclude_subspaces and '.catkin' in filenames): +@@ -67,7 +69,7 @@ def find_package_paths(basepath, exclude + del dirnames[:] + continue + # filter out hidden directories in-place +- dirnames[:] = [d for d in dirnames if not d.startswith('.')] ++ dirnames[:] = [d for d in dirnames if not d.startswith('.') and not os.path.realpath(os.path.join(dirpath, d)) in visited] + return paths + + |