[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#318765: libqt4-dev: got broken alternatives symlink for moc

Package: libqt4-dev
Version: 4.0.0-1
Severity: minor

Compiling a simple test program with qt4 failed with this error message:

$ qmake
$ make
(cd "/src/tools/moc" && make)
/bin/sh: line 0: cd: /src/tools/moc: No such file or directory
make: *** [/usr/bin/moc] Error 1

The reason is, that I somehow ended up with a broken alternatives symlink
for moc:

$ ls -al /etc/alternatives/moc 
lrwxrwxrwx  1 root root 20 Nov  5  2003 /etc/alternatives/moc -> /usr/lib/qt2/bin/moc
$ ls -al /usr/lib/qt2/bin/moc
ls: /usr/lib/qt2/bin/moc: No such file or directory

Unfortunately, update-alternatives seems to be unable to correct this:

# update-alternatives --config moc

There is only 1 program which provides moc
(/usr/bin/moc-qt4). Nothing to configure.

Of course, the fix is trivial (manually correct the symlink). I have no
idea how this happened, but I surely didn't manually mess with the
alternatives. Probably some interesting sequence of installs and
uninstalls of different versions of qt.

If I'm the only one with this problem, just close the report. So, other
people with the same symptoms, please speak up ;)


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=C, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages libqt4-dev depends on:
ii  libaudio-dev             1.7-2           The Network Audio System (NAS). (d
ii  libc6-dev                2.3.2.ds1-22    GNU C Library: Development Librari
ii  libfreetype6-dev         2.1.10-1        FreeType 2 font engine, developmen
ii  libjpeg62-dev            6b-10           Development files for the IJG JPEG
ii  libmng-dev               1.0.8-1         M-N-G library (Development headers
ii  libpng12-dev [libpng12-0 1.2.8rel-1      PNG library - development
ii  libqt4-core              4.0.0-1         Qt 4 core non-GUI functionality ru
ii  libxcursor-dev           1.1.3-1         X cursor management library (devel
ii  libxft-dev               2.1.7-1         FreeType-based font drawing librar
ii  libxrender-dev           1:0.9.0-2       X Rendering Extension client libra
ii  xlibmesa-gl-dev [libgl-d 6.8.2.dfsg.1-2  Mesa 3D graphics library developme
ii  xlibmesa-glu-dev [libglu 4.3.0.dfsg.1-14 Mesa OpenGL utility library develo
ii  xlibs-dev                6.8.2.dfsg.1-2  X Window System client library dev
ii  xlibs-pic                6.8.2.dfsg.1-2  X.Org static PIC libraries transit
ii  zlib1g-dev               1:1.2.2-9       compression library - development

Versions of packages libqt4-dev recommends:
ii  libqt4-gui                    4.0.0-1    Qt 4 core GUI functionality runtim
ii  qt4-dev-tools                 4.0.0-1    Qt 4 development tools

-- no debconf information

Reply to: