diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2014-02-26 06:22:40 +1100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2014-02-26 06:22:40 +1100 |
| commit | 49f71dc215bb4d7337c826e7fbad8b1539e5ab81 (patch) | |
| tree | 36d4d2a2ac00ef3d3141a0dd35df64610524b46e /dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch | |
| parent | 0f1b15c95fa4d0fbe77c819166e39f52c9566275 (diff) | |
| download | kde-49f71dc215bb4d7337c826e7fbad8b1539e5ab81.tar.gz kde-49f71dc215bb4d7337c826e7fbad8b1539e5ab81.tar.bz2 kde-49f71dc215bb4d7337c826e7fbad8b1539e5ab81.zip | |
[dev-util/cmake] Improve boost python patch to fix libboost_python detection outside of portage wrt bug #500442.
Package-Manager: portage-2.2.7
Diffstat (limited to 'dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch')
| -rw-r--r-- | dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch b/dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch new file mode 100644 index 00000000000..ceb205ff586 --- /dev/null +++ b/dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch @@ -0,0 +1,19 @@ +Patch by Heiko Przybyl + +--- Source/cmComputeLinkInformation.cxx ++++ Source/cmComputeLinkInformation.cxx +@@ -1686,6 +1686,14 @@ std::string cmComputeLinkInformation::Ge + for(std::vector<std::string>::const_iterator ri = runtimeDirs.begin(); + ri != runtimeDirs.end(); ++ri) + { ++ // Do not add duplicates. ++ // I'd like to have that check already in the list generation code ++ // but that would need lots of more changes, even in ExpandListArgument(). ++ if(*sep != '\0' && (rpath + sep).find(*ri + sep) != std::string::npos) ++ { ++ //std::cerr << "ignoring duplicate: '" << *ri << "' in '" << rpath << "'" << std::endl; ++ continue; ++ } + // Separate from previous path. + rpath += sep; + sep = this->GetRuntimeSep().c_str(); |
