summaryrefslogtreecommitdiff
path: root/dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2013-09-02 00:56:58 +1000
committerMichael Palimaka <kensington@gentoo.org>2013-09-02 00:56:58 +1000
commit92a917e50fcf53fa66ddad9e373e13afb45dd350 (patch)
tree0e486b766d12ba7967fb95e114e4cda8f033d0f8 /dev-util/cmake/files/cmake-2.6.3-no-duplicates-in-rpath.patch
parent86a9c84652f866041291701466483f4d50033146 (diff)
downloadkde-92a917e50fcf53fa66ddad9e373e13afb45dd350.tar.gz
kde-92a917e50fcf53fa66ddad9e373e13afb45dd350.tar.bz2
kde-92a917e50fcf53fa66ddad9e373e13afb45dd350.zip
[dev-util/cmake] Version bump wrt bug #483150.
Package-Manager: portage-2.2.1
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();