Bug#762664: libkdeinit4_ksmserver.so depends on nonexisting libpulse-common

2014-09-24 Thread Michal Hocko
On Wed, Sep 24, 2014 at 12:53:59PM +0200, Michal Hocko wrote:
> On Wed, Sep 24, 2014 at 11:56:51AM +0200, Diederik de Haas wrote:
> > On Wednesday 24 September 2014 11:01:47 Michal Hocko wrote:
> > > $ ldd /usr/lib/kde4/libkdeinit/libkdeinit4_ksmserver.so | grep pulse
> > > libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0
> > > (0x7fae299de000) libpulse-mainloop-glib.so.0 =>
> > > /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x7fae297d9000)
> > > libpulsecommon-5.0.so =>
> > > /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so
> > > (0x7fae28a1a000) libpulsecommon-4.0.so => not found
> > 
> > You have different output then I'm getting.
> > 
> > $ ldd /usr/lib/kde4/libkdeinit/libkdeinit4_ksmserver.so | grep pulse
> > libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 
> > (0x7f56fadb6000)
> > libpulse-mainloop-glib.so.0 => 
> > /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x7f56fabb)
> > libpulsecommon-5.0.so => 
> > /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so 
> > (0x7f56f701)
> 
> OK, I have tried to download .deb package for e.g. kalarm from
> http://ftp.cz.debian.org/debian/pool/main/k/kdepim/kalarm_4.14.0-1_amd64.deb
> extracted the binary and
> $ ldd ./kalarm | grep pulse
> libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 
> (0x7ffe5f6ac000)
> libpulse-mainloop-glib.so.0 => 
> /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x7ffe5f4a6000)
> libpulsecommon-5.0.so => 
> /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so 
> (0x7ffe59ead000)
> libpulsecommon-4.0.so => not found
> 
> Then tried the same from 
> http://ftp.us.debian.org/debian/pool/main/k/kdepim/kalarm_4.14.0-1_amd64.deb
> with the same result. So this doesn't seem to be mirroring related.

OK, found it. readelf -d told me that libphonon.so.4 is pulling in
libpulse.so.0
libpulse-mainloop-glib.so.0

and libpulse-mainloop-glib.so.0
libpulse.so.0
libpulsecommon-4.0.so
libglib-2.0.so.0
libcap.so.2
libpthread.so.0
librt.so.1
libdl.so.2
libm.so.6
libc.so.6

This seems to be coming from libpulse-mainloop-glib0.
$ apt-show-versions -a -p libpulse-mainloop-glib0
libpulse-mainloop-glib0:amd64 4.0-3 install ok installed
libpulse-mainloop-glib0:amd64 2.0-6.1 stable   ftp.cz.debian.org
libpulse-mainloop-glib0:amd64 5.0-6   testing  ftp.cz.debian.org
libpulse-mainloop-glib0:amd64 5.0-6   unstable ftp.cz.debian.org
libpulse-mainloop-glib0:amd64/testing 4.0-3 upgradeable to 5.0-6

And that seems to be the problem. This version of the package was
broken:
Package: libpulse-mainloop-glib0
Status: install ok installed
Priority: optional
Section: sound
Installed-Size: 86
Maintainer: Pulseaudio maintenance team 

Architecture: amd64
Multi-Arch: same
Source: pulseaudio
Version: 4.0-3
Depends: libc6 (>= 2.2.5), libcap2 (>= 2.10), libglib2.0-0 (>= 2.16.0), 
libpulse0 (>= 0.99.1)

it should have depended on (= 4.0-3). 5.0 and 2.0 seems to have them correctly. 
After updating to 5.0
I do not see the problem anymore.
$ ldd ./kalarm | grep pulse
libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 
(0x7f2a4eae2000)
libpulse-mainloop-glib.so.0 => 
/usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x7f2a4e8dc000)
    libpulsecommon-5.0.so => 
/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so (0x7f2a492e3000)

So this bug report can be closed. The real bug is in
libpulse-mainloop-glib0:amd64 4.0-3 package. Sorry about the noise.
-- 
Michal Hocko


-- 
To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140924113949.gc4...@dhcp22.suse.cz



Bug#762664: libkdeinit4_ksmserver.so depends on nonexisting libpulse-common

2014-09-24 Thread Michal Hocko
On Wed, Sep 24, 2014 at 11:56:51AM +0200, Diederik de Haas wrote:
> On Wednesday 24 September 2014 11:01:47 Michal Hocko wrote:
> > $ ldd /usr/lib/kde4/libkdeinit/libkdeinit4_ksmserver.so | grep pulse
> > libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0
> > (0x7fae299de000) libpulse-mainloop-glib.so.0 =>
> > /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x7fae297d9000)
> > libpulsecommon-5.0.so =>
> > /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so
> > (0x7fae28a1a000) libpulsecommon-4.0.so => not found
> 
> You have different output then I'm getting.
> 
> $ ldd /usr/lib/kde4/libkdeinit/libkdeinit4_ksmserver.so | grep pulse
> libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 
> (0x7f56fadb6000)
> libpulse-mainloop-glib.so.0 => 
> /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x7f56fabb)
> libpulsecommon-5.0.so => 
> /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so 
> (0x7f56f701)

OK, I have tried to download .deb package for e.g. kalarm from
http://ftp.cz.debian.org/debian/pool/main/k/kdepim/kalarm_4.14.0-1_amd64.deb
extracted the binary and
$ ldd ./kalarm | grep pulse
libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 
(0x7ffe5f6ac000)
libpulse-mainloop-glib.so.0 => 
/usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x7ffe5f4a6000)
libpulsecommon-5.0.so => 
/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so (0x7ffe59ead000)
libpulsecommon-4.0.so => not found

Then tried the same from 
http://ftp.us.debian.org/debian/pool/main/k/kdepim/kalarm_4.14.0-1_amd64.deb
with the same result. So this doesn't seem to be mirroring related.


-- 
Michal Hocko


-- 
To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140924105359.gb4...@dhcp22.suse.cz



Bug#762664: libkdeinit4_ksmserver.so depends on nonexisting libpulse-common

2014-09-24 Thread Michal Hocko
What is even worse also other kde applications suffer from the same
problem:
$ konsole
konsole: error while loading shared libraries: libpulsecommon-4.0.so:
cannot open shared object file: No such file or directory

$ for file in /usr/bin/*
do
ldd $file | grep libpulsecommon-4.0.so >/dev/null 2>&1 && echo $file
done
/usr/bin/akonadi_davgroupware_resource
/usr/bin/akonadi_googlecalendar_resource
/usr/bin/akonadi_maildispatcher_agent
/usr/bin/akonadi_newmailnotifier_agent
/usr/bin/akonadi_openxchange_resource
/usr/bin/k3b
/usr/bin/kaccess
/usr/bin/kalarm
/usr/bin/kmix
/usr/bin/kmixctrl
/usr/bin/knotify4
/usr/bin/konsole
/usr/bin/krunner
/usr/bin/ksmserver
/usr/bin/kwin
/usr/bin/kwin_gles
/usr/bin/plasma-desktop
/usr/bin/plasma-overlay
/usr/bin/plasmapkg
/usr/bin/plasma-windowed
/usr/bin/systemsettings
/usr/bin/x-terminal-emulator

I have hard time to believe this would get through unnoticed. Is it
possible that there is something wrong with my repository setup or the
mirrors I am using?
$ cat /etc/apt/sources.list
deb http://ftp.cz.debian.org/debian stable main non-free contrib
deb http://security.debian.org/debian-security stable/updates main contrib 
non-free

deb http://ftp.cz.debian.org/debian testing main non-free contrib
deb http://security.debian.org/debian-security testing/updates main contrib 
non-free
#deb http://ftp.debian-unofficial.org/debian testing main contrib non-free 
restricted

deb http://ftp.cz.debian.org/debian unstable main non-free contrib

deb-src http://ftp.cz.debian.org/debian stable main non-free contrib
deb-src http://ftp.cz.debian.org/debian testing main non-free contrib
deb-src http://ftp.cz.debian.org/debian unstable main non-free contrib
#deb-src http://ftp.debian-unofficial.org/debian testing main contrib non-free 
restricted

#deb http://download.skype.com/linux/repos/debian/ stable non-free

This hasn't changed recently. The only thing I have changed recently was
that I removed multiarch support (the additional arch was i386) but I
have tried to reinstall the whole kde stack now and it didn't help at
all.

Thanks!
-- 
Michal Hocko


-- 
To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140924094434.ga4...@dhcp22.suse.cz



Bug#762664: libkdeinit4_ksmserver.so depends on nonexisting libpulse-common

2014-09-24 Thread Michal Hocko
xrandr22:1.4.2-1
ii  libxrender1   1:0.9.8-1
ii  libxtst6  2:1.2.2-1
ii  phonon4:4.8.0-2
ii  plasma-desktop4:4.11.12-1
ii  qdbus 4:4.8.6+git64-g5dc8b2b+dfsg-2
ii  x11-utils 7.7+2
ii  x11-xserver-utils 7.7+3

Versions of packages kde-workspace-bin recommends:
pn  plasma-scriptengines  
ii  policykit-1-gnome 0.105-2
ii  upower0.99.1-3

Versions of packages kde-workspace-bin suggests:
ii  x11-xkb-utils  7.7+1

-- no debconf information

-- 
Michal Hocko


-- 
To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140924090147.ga6...@dhcp22.suse.cz



Bug#529435: QListBox::current set in insertItem without currentChanged emiting

2009-05-19 Thread Michal Hocko
On Tue, May 19, 2009 at 01:17:24PM +0200, Michal Hocko wrote:
> Package: qt-x11-free
> Severity: normal
> 
> Hi,
> I have just noticed that buggy behavior in my application is caused by
> QListBox::current being set during insertItem without triggering 
> currentChanged.
> My application uses currentChanged handler for enable/disable logic and
> so this doesn't work in case that box was empty.
> 
> I am not sure whether this is correct or not, but it is at least
> inconsistent for cases like:
> 
> box->insertItem(item, pos);
> box->setCurrentItem(pos);
> 
> because this will trigger currentChanged signal only if box wasn't empty
> before.
> 
> I have checked the source and really QListBox::insertItem does something
> like:
> 
> if ( hasFocus() && !d->current ) {
>   d->current = d->head;
>   updateItem( d->current );
>   emit highlighted( d->current );
>   emit highlighted( d->current->text() );
>   emit highlighted( index );
> }
> 
> I think that we are missing emit currentChanged there.
 
I would suggest the attached patch. Please note that I haven't tested
it. 
There are more places which set current to some value and don't emit
currentChanged but I wasn't sure whether to fix them as well (e.g.
QListBox::mousePressEventEx, QListBox::mouseReleaseEvent).
-- 
Michal Hocko
Index: qt-x11-free-3.3.8b/src/widgets/qlistbox.cpp
===
--- qt-x11-free-3.3.8b.orig/src/widgets/qlistbox.cpp	2009-05-19 14:01:28.0 +0200
+++ qt-x11-free-3.3.8b/src/widgets/qlistbox.cpp	2009-05-19 14:04:47.0 +0200
@@ -1482,6 +1482,7 @@ void QListBox::insertItem( const QListBo
 if ( hasFocus() && !d->current ) {
 	d->current = d->head;
 	updateItem( d->current );
+	emit currentChanged( d->current );
 	emit highlighted( d->current );
 	emit highlighted( d->current->text() );
 	emit highlighted( index );
@@ -1538,6 +1539,7 @@ void QListBox::insertItem( const QListBo
 if ( hasFocus() && !d->current ) {
 	d->current = d->head;
 	updateItem( d->current );
+	emit currentChanged( d->current );
 	emit highlighted( d->current );
 	emit highlighted( d->current->text() );
 	emit highlighted( index( d->current ) );


Bug#529435: QListBox::current set in insertItem without currentChanged emiting

2009-05-19 Thread Michal Hocko
On Tue, May 19, 2009 at 01:17:24PM +0200, Michal Hocko wrote:
> Package: qt-x11-free
> Severity: normal
> 
> Hi,
> I have just noticed that buggy behavior in my application is caused by
> QListBox::current being set during insertItem without triggering 
> currentChanged.
> My application uses currentChanged handler for enable/disable logic and
> so this doesn't work in case that box was empty.
> 
> I am not sure whether this is correct or not, but it is at least
> inconsistent for cases like:
> 
> box->insertItem(item, pos);
> box->setCurrentItem(pos);
> 
> because this will trigger currentChanged signal only if box wasn't empty
> before.
> 
> I have checked the source and really QListBox::insertItem does something
> like:
> 
> if ( hasFocus() && !d->current ) {
>   d->current = d->head;
>   updateItem( d->current );
>   emit highlighted( d->current );
>   emit highlighted( d->current->text() );
>   emit highlighted( index );
> }
> 
> I think that we are missing emit currentChanged there.

I forgot to say that setCurrentItem after insertItem doesn't trigger
currentChanged because the setCurrentItem returns immediately if the
current is same as the given one which is exactly the case here.

-- 
Michal Hocko



-- 
To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#529435: QListBox::current set in insertItem without currentChanged emiting

2009-05-19 Thread Michal Hocko
Package: qt-x11-free
Severity: normal

Hi,
I have just noticed that buggy behavior in my application is caused by
QListBox::current being set during insertItem without triggering currentChanged.
My application uses currentChanged handler for enable/disable logic and
so this doesn't work in case that box was empty.

I am not sure whether this is correct or not, but it is at least
inconsistent for cases like:

box->insertItem(item, pos);
box->setCurrentItem(pos);

because this will trigger currentChanged signal only if box wasn't empty
before.

I have checked the source and really QListBox::insertItem does something
like:

if ( hasFocus() && !d->current ) {
d->current = d->head;
updateItem( d->current );
emit highlighted( d->current );
emit highlighted( d->current->text() );
emit highlighted( index );
}

I think that we are missing emit currentChanged there.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-rc6-22ef37eed673587ac984965dc88ba94c68873291 (SMP w/2 CPU 
cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#494190: bad unread messages number for imap directories

2008-08-07 Thread Michal Hocko
Package: kmail
Version: 4:3.5.9-5
Severity: normal

It seems that kmail doesn't show correct number of unread messages in my
IMAP folders after check for new emails is done. After I go to the
directory, number is corrected to the actual value.

My IMAP setting is as follows:
* General:
Account, name, passwd, host and port set properly
Show hidden folders, Load attachments on demand, Include in manual mail
check, Enable interval mail checking, Check interval (5m), Identity (Default)
all other options are disabled. 
* Security
Encryption (SSL), Authentication method (Login)
* Filtering
disabled

This behavior is rather annoying because I have to enter email folders to
check for new emails as the shown numbers are not reliable.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages kmail depends on:
ii  kdebase-kio-plugins4:3.5.9.dfsg.1-4  core I/O slaves for KDE
ii  kdelibs4c2a4:3.5.9.dfsg.1-6  core libraries and binaries for al
ii  kdepim-kio-plugins 4:3.5.9-5 KDE pim I/O Slaves
ii  libart-2.0-2   2.3.20-2  Library of functions for 2D graphi
ii  libaudio2  1.9.1-4   Network Audio System - shared libr
ii  libc6  2.7-10GNU C Library: Shared libraries
ii  libfontconfig1 2.6.0-1   generic font configuration library
ii  libfreetype6   2.3.7-1   FreeType 2 font engine, shared lib
ii  libgcc11:4.3.1-2 GCC support library
ii  libice62:1.0.4-1 X11 Inter-Client Exchange library
ii  libidn11   1.8+20080606-1GNU libidn library, implementation
ii  libjpeg62  6b-14 The Independent JPEG Group's JPEG 
ii  libkcal2b  4:3.5.9-5 KDE calendaring library
ii  libkdepim1a4:3.5.9-5 KDE PIM library
ii  libkleopatra1  4:3.5.9-5 KDE GnuPG interface libraries
ii  libkmime2  4:3.5.9-5 KDE MIME interface library
ii  libkpimidentities1 4:3.5.9-5 KDE PIM user identity information 
ii  libksieve0 4:3.5.9-5 KDE mail/news message filtering li
ii  libmimelib1c2a 4:3.5.9-5 KDE mime library
ii  libpng12-0 1.2.27-1  PNG library - runtime
ii  libqt3-mt  3:3.3.8b-5Qt GUI Library (Threaded runtime v
ii  libsm6 2:1.0.3-2 X11 Session Management library
ii  libstdc++6 4.3.1-2   The GNU Standard C++ Library v3
ii  libx11-6   2:1.1.4-2 X11 client-side library
ii  libxcursor11:1.1.9-1 X cursor management library
ii  libxext6   2:1.0.4-1 X11 miscellaneous extension librar
ii  libxft22.1.12-3  FreeType-based font drawing librar
ii  libxi6 2:1.1.3-1 X11 Input extension library
ii  libxinerama1   2:1.0.3-2 X11 Xinerama extension library
ii  libxrandr2 2:1.2.3-1 X11 RandR extension library
ii  libxrender11:0.9.4-2 X Rendering Extension client libra
ii  libxt6 1:1.0.5-3 X11 toolkit intrinsics library
ii  perl   5.10.0-11.1   Larry Wall's Practical Extraction 
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages kmail recommends:
pn  kmailcvt   (no description available)
ii  procmail  3.22-16Versatile e-mail processor

Versions of packages kmail suggests:
ii  bogofilter1.1.7-1a fast Bayesian spam filter (dummy
pn  clamav | f-prot-installer  (no description available)
ii  gnupg 1.4.9-3GNU privacy guard - a free PGP rep
pn  gnupg-agent(no description available)
ii  kaddressbook  4:3.5.9-5  KDE NG addressbook application
pn  kleopatra  (no description available)
pn  pinentry-qt | pinentry-x11 (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]