Library name/SONAME are the same for KF5 and KF6
KDevelop is still on KF5 (24.02.2) while Kompare is/can be KF6 (what I got here), I can't include libkomparediff2 into KDevelop now as both 23.08.5 and 24.02.2 provide the same libaries which will conflict in the end so can't be co-installed.
Packages installed here (Haiku): KDevelop 24.02.2 KF5 5.115.0 Kompare 24.02.2 KF6 6.1.0 libkomparediff2 24.02.2 KF6 6.1.0