<table><tr><td style="">rjvbb updated this revision to Diff 42097.<br />rjvbb added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7930">View Revision</a></tr></table><br /><div><div><p>Refactored for the 5.3 branch + completed.</p>
<p>An example where this is required:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">mkdir -p work/src/KDE/KF5
cd work/src/KDE
git clone kde:kdevelop kdevelop-git
cd KF5
ln -s kdevelop5-git ../kdevelop
(cd kdevelop5-git ; git checkout 5.3)
mkdir kdevelop5-git/build
# import kdevelop5-git into KDevelop,
# configure with kdevelop5-git/build as build dir
# (outside of KDevelop:)
(cd kdevelop5-git/build/plugins/astyle ; make -w kdevastyle_autogen)</pre></div>
<p>For me this will fail on an include of configpage.h because it is looked for via a relative path that tries to access ~/work/src/KDE/kdevelop but fails because it is executed in ~/work/src/KDE/KF5/kdevelop5-git/build instead of ~/work/src/KDE/kdevelop/build. These paths refer to the same location on disk but differ in the number of path segments, as mentioned above.</p></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D7930?vs=20244&id=42097">https://phabricator.kde.org/D7930?vs=20244&id=42097</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7930">https://phabricator.kde.org/D7930</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/cmake/cmakecommitchangesjob.cpp<br />
plugins/cmake/cmakeimportjsonjob.cpp<br />
plugins/cmake/cmakemanager.cpp<br />
plugins/cmake/cmakemodelitems.cpp<br />
plugins/cmake/cmakeserverimportjob.cpp<br />
plugins/cmake/cmakeutils.cpp<br />
plugins/cmake/cmakeutils.h<br />
plugins/cmake/settings/cmakepreferences.cpp<br />
plugins/cmakebuilder/cmakebuilder.cpp<br />
plugins/cmakebuilder/cmakejob.cpp</div></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop, apol, mwolff<br /><strong>Cc: </strong>flherne, mwolff, apol, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>