I can't install kdiff3 on Intrepid (Broken dependecy)

Bug #260326 reported by totya
56
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kdiff3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kdiff3

I can't install kdiff3 on Intrepid.

$ sudo aptitude install kdiff3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages are BROKEN:
  kdiff3
The following NEW packages will be installed:
  kdiff3-doc{a}
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1777kB of archives. After unpacking 5300kB will be used.
The following packages have unmet dependencies:
  kdiff3: Depends: libkonq4 (>= 4:3.5.8-1) which is a virtual package.
The following actions will resolve these dependencies:

Keep the following packages at their current version:
kdiff3 [Not Installed]

Leave the following dependencies unresolved:
kdiff3-doc recommends kdiff3
Score is -10081

Accept this solution? [Y/n/q/?]

It looks like kdiff3 has a broken dependency.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Needs to be removed from the archive since libkonq4 -dev doesn't exist in Intrepid. I'll ask Riddell to do this.
You could try using Kompare until kdiff gets a KDE4 version.

Changed in kdiff3:
status: New → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Removed it from the archives.

Changed in kdiff3:
status: Confirmed → Fix Released
Revision history for this message
totya (totya) wrote :

It's sad. Kdiff3 was a very fast compare a merge utility. Kompare is nice, however very slow when I'm working with big files. I hope Kdiff3 will be ported to KDE4.

Yeah I know there are other alternatives too: meld, xxdiff, ... however these utilities are slower than Kdiff3. Kdiff3 is a superior one in terms of speed. I use very fast modern computers, and I don't understand why the most merge and diff utilities are so slow.

By the way I understand why Kdiff3 removed from the archive.

Revision history for this message
joachimeibl (joachim-eibl) wrote : Re: [Bug 260326] Re: I can't install kdiff3 on Intrepid (Broken dependecy)

Am Donnerstag 28 August 2008 10:01:21 schrieb totya:
> It's sad. Kdiff3 was a very fast compare a merge utility. Kompare is
> nice, however very slow when I'm working with big files. I hope Kdiff3
> will be ported to KDE4.

I'm working on a KDE4 version, but it is not quite finished yet.

> Yeah I know there are other alternatives too: meld, xxdiff, ... however
> these utilities are slower than Kdiff3. Kdiff3 is a superior one in
> terms of speed. I use very fast modern computers, and I don't understand
> why the most merge and diff utilities are so slow.

Speed is an important design goal for me.
Part of why it took so long is because Qt4 was very slow in the early versions
and KDiff3 was not at all satisfactory to use. Even now I needed some
additional optimisations that weren't necessary with Qt3.

> By the way I understand why Kdiff3 removed from the archive.

You might want to try the current svn-version:
Requirements: normal devel-packages for KDE4 + libkonq-devel (That's the name
on opensuse 11).

svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/utils/kdiff3 kdiff3
cd kdiff3
mkdir release
cd release
cmake .. -DCMAKE_INSTALL_PREFIX=<KDE4-prefix>
make
sudo make install

<KDE4-prefix> is where the other KDE4-programs are installed. (For me
it's "/usr".)
Feedback on bugs and regressions is appreciated.

Best regards,
Joachim

Revision history for this message
totya (totya) wrote :

Hi,

Oh, so you are working on the KDE4 version. This is a very good news! I will try the svn version. Kdiff3 is simply the best diff and merge tool, so keep up the good work!

Best Regards,
Krisztian

Revision history for this message
totya (totya) wrote :

Hi Joachim,

I've followed your instruction and now I have a KDE4 version of Kdiff3.

First impressions:

- works (no crash occurred yet)
- fast (faster than meld, kompare, xxdiff)

It would be nice to see this svn version in the universe repository for Intrepid. However I'm able to build one for myself.

Keep up the good work!

Best Regards,
Krisztian

Revision history for this message
aidave (aidave) wrote :

Hi, I am trying to run this command:

cmake .. -DCMAKE_INSTALL_PREFIX=<KDE4-prefix>

I can't get it to work in 8.10. I installed kubuntu-desktop. Maybe I don't know what the <KDE4-prefix> is supposed to be, I've tried a bunch of paths. Here is the output:

$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/kde4
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/davey/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps

What is the proper path for default installs?

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

The proper path is /usr

Revision history for this message
aidave (aidave) wrote :

This is what happens when I try /usr, then run make:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/davey/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
  CMakeLists.txt:3 (find_package)

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present. A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file. The version specified may be lower
  if you wish to support older CMake versions for this project. For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
davey@leaf:~/Apps/kdiff3/release$ make
make: *** No targets specified and no makefile found. Stop.

Revision history for this message
gyrm (hbchai) wrote :

@aidave

I was having the same problem. The following post helped:

http://ubuntuforums.org/showthread.php?t=718183

I basically had to install the kde, kdelibs5-dev, and libkonq5-dev packages.

Revision history for this message
aidave (aidave) wrote :

Thank you "gyrm", your advice worked! :)

"sudo apt get install kde kdelibs5-dev libkonq5-dev"

Did the trick.

I also had to add "kdiff3 %1 %2" to kdesvn's external diff setting.

Revision history for this message
Tero Saarni (tsaarni) wrote :

Does anyone have PPA build of kdiff3?

Revision history for this message
Mekk (marcin-kasperski) wrote :

Just faced this problem

Kdiff3 is de facto required by mercurial (and likely a few other dvcs-s). Meld is in no way replacement for it.

:-(((

Revision history for this message
Mekk (marcin-kasperski) wrote :

I just tested (on the suggestion from mercurial mailing list), that one can install hardy kdiff3 package on intrepid and it works without any problems. Just:

 sudo apt-get install kdelibs4c2a

 wget http://launchpadlibrarian.net/10679965/kdiff3_0.9.92-2ubuntu1_i386.deb
 wget http://launchpadlibrarian.net/13473685/libkonq4_3.5.9-0ubuntu7_i386.deb
 wget http://launchpadlibrarian.net/10679966/kdiff3-doc_0.9.92-2ubuntu1_all.deb
 dpkg -i *.deb

and kdiff3 seems to work correctly (this for i386, for other architectures similar method with suitable packages).

So what about just copying kdiff3 and libkonq4 packages from hardy to intrepid, exactly as they are?

Revision history for this message
Greg Rundlett (greg.rundlett) wrote :

On my (Intrepid) kubuntu system, there is an apparent bug in the kdelibs5-dev package.

See the file
/usr/share/kde4/apps/cmake/modules/KDELibsDependenciesInternal.cmake

It adds the following nonexistent library to solid_LIB_DEPENDS:
/build/buildd/kde4libs-4.1.2/obj-i486-linux-gnu/lib/libkdecore.so

Change it to: /usr/lib/libkdecore.so

(That change was the way that I was able to make and install kdiff3)

Revision history for this message
aidave (aidave) wrote :

How does one uninstall this?

Revision history for this message
Oernie (arne-henningsen) wrote :

Mekk wrote:
> sudo apt-get install kdelibs4c2a
> wget http://launchpadlibrarian.net/10679965/kdiff3_0.9.92-2ubuntu1_i386.deb
> wget http://launchpadlibrarian.net/13473685/libkonq4_3.5.9-0ubuntu7_i386.deb
> wget http://launchpadlibrarian.net/10679966/kdiff3-doc_0.9.92-2ubuntu1_all.deb
> dpkg -i *.deb

Thank you, Mekk, for posting this simple solution! It works great!

Anyway, I hope a KDE4 version of KDiff3 (or -- preliminary -- the old KDE3 version and libkonq4_3.5.9) will be added to the universe repository for Intrepid soon. KDiff3 is really the best diff and merge utility on Earth!

Arne

Revision history for this message
Michael Mikowski (kfocus) wrote :

FYI, I was able to build this with project neon's kde-nightly build, kde 4.2 beta 2.

I had to get from the repos:

% sudo apt-get install kdelibs5-dev libkonq5-dev

Notice that 'kde' does not appear required. This save lots of time and disk space.

Also, had to enable "Unsupported Updates" in adept sources to update cmake to 2.6.2

Then using the directions from comment 4, the build went smoothly, with a fair bit of warnings. My KDE4-prefix was /opt/kde-nightly.

I have used this at work for a few days, and had no problems. Results were comparable with KDE3.x versions, but looked nicer.

Revision history for this message
totya (totya) wrote :

The new stable version has been released.

http://kdiff3.sourceforge.net/#news

009-01-06: Version 0.9.93

        * KDE4 support (with much porting help from Valentin Rusu)
        * Build process uses cmake (instead of auto-tools like autoconf, automake etc.)
        * Dropped Qt3/KDE3 support (use 0.9.92 if you need this)
        * Optional auto detection of line end style for saving.
        * Option to close on ESC (default is off)
        * Bugfixes.

So kdiff3 has a stable KDE4 version.

Previously kdiff3 has been removed from Ubuntu as a package. Will be kdiff3 included in Ubuntu 9.04 again? I can't leave without it. ;-) Or it's too late?

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Definitely *not* too late. ;-)
I can package it after we're done with KDE 4.2 RC1. Of course if someone else wants to package it sooner by all means do so. :)

Revision history for this message
totya (totya) wrote :

Hi,

It's nice to see there is hope for kdiff3! Please create a package if you can and if you have time! Personally I haven't got packaging experience, however I'm a user who appreciate the works which have been done for us by the Ubuntu/Kubuntu developers.

Best Regards,
Totya

Revision history for this message
Tero Saarni (tsaarni) wrote :

I saw the new release uploaded to Debian experimental http://packages.qa.debian.org/k/kdiff3/news/20090115T181704Z.html. The package seemed to build ok on Intrepid too.

In case someone wants it I uploaded it to my PPA:
https://launchpad.net/~tsaarni/+archive

Revision history for this message
Gerry (gerry-spm+lnchpad) wrote :

> sudo apt-get install kdelibs4c2a
> http://launchpadlibrarian.net/13473685/libkonq4_3.5.9-0ubuntu7_i386.deb
> http://launchpadlibrarian.net/10679966/kdiff3-doc_0.9.92-2ubuntu1_all.deb
> http://launchpadlibrarian.net/10679965/kdiff3_0.9.92-2ubuntu1_i386.deb

Thank you so much Mekk, that worked perfectly. I wish this had been in the repository as the other diff tools are no substitute for Kdiff3

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.