summaryrefslogtreecommitdiff
path: root/dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2012-04-22 16:47:30 +0200
committerJohannes Huber <johu@gentoo.org>2012-04-22 16:47:30 +0200
commite12461b061fbfa6e480ae3fa9a19fb0745190f38 (patch)
treec2e1148f459a7c5fb978844ac122129af2184f80 /dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch
parent3e1396fb1dcda3f1cda6c5e9c837a9e470c05491 (diff)
downloadkde-e12461b061fbfa6e480ae3fa9a19fb0745190f38.tar.gz
kde-e12461b061fbfa6e480ae3fa9a19fb0745190f38.tar.bz2
kde-e12461b061fbfa6e480ae3fa9a19fb0745190f38.zip
[dev-util/cmake] Version bump.
(Portage version: 2.2.0_alpha100/git/Linux i686, unsigned Manifest commit)
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();