summaryrefslogtreecommitdiff
path: root/dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch
diff options
context:
space:
mode:
authorAndreas K. Huettel (dilfridge) <mail@akhuettel.de>2010-06-27 20:59:35 +0200
committerTheo Chatzimichos <tampakrap@gentoo.org>2010-06-28 15:39:17 +0300
commit24809f5ecafa63aee6541fa450766a74bf1b5467 (patch)
tree4db35207f0bba30ba3f0f5f98452f27322de4ffc /dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch
parent094f28b78ae614dcfdb9c83d0ac0ac7d6f42878e (diff)
downloadkde-24809f5ecafa63aee6541fa450766a74bf1b5467.tar.gz
kde-24809f5ecafa63aee6541fa450766a74bf1b5467.tar.bz2
kde-24809f5ecafa63aee6541fa450766a74bf1b5467.zip
[dev-util/cmake] Fix java detection, should resolve bug 315229. Please test.
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.patch19
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();