polkit-qt patch by Lukas, resolving akabei issues, mediastreamer rebuild for sound stack

This commit is contained in:
abveritas 2013-03-21 18:44:54 +00:00
parent 9bda2463f0
commit 876c76de88
3 changed files with 30 additions and 12 deletions

View File

@ -1,14 +1,10 @@
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer :abveritas[at]chakra-project[dog]org>
# maintainer : Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=mediastreamer
pkgver=2.8.2
pkgrel=2
pkgrel=3
pkgdesc="A library written in C that allows you to create and run audio and video streams."
arch=('i686' 'x86_64')
arch=('x86_64')
url="http://www.linphone.org"
license=('GPL')
depends=('ortp' 'speex' 'v4l-utils' 'ffmpeg>=0.11' 'libxv')

View File

@ -1,22 +1,23 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=polkit-qt
pkgver=0.103.0
pkgrel=2
pkgrel=3
pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API'
arch=('x86_64')
url='https://projects.kde.org/projects/kdesupport/polkit-qt-1'
license=('LGPL')
depends=('polkit' 'qt')
makedepends=('cmake' 'automoc4')
source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2")
md5sums=('a105e233e6733fb072c9080cd7ae1af2')
source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2"
'polkit1_auth.diff')
md5sums=('a105e233e6733fb072c9080cd7ae1af2'
'ccfa0fb7273939fde2431628795ff527')
build() {
cd "${srcdir}"
patch -p2 -i "${srcdir}"/polkit1_auth.diff
mkdir build
cd build
cmake ../${pkgname}-1-${pkgver} \

View File

@ -0,0 +1,21 @@
diff --git a/core/polkitqt1-authority.cpp b/core/polkitqt1-authority.cpp
index f134ca686f3f897e83c37b1715965696618dfc85..1ac2d6ce66ec9a4606da91d7d14f31e19b8fcf81 100644
--- a/core/polkitqt1-authority.cpp
+++ b/core/polkitqt1-authority.cpp
@@ -25,6 +25,7 @@
#include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusReply>
+#include <QtDBus/QDBusConnectionInterface>
#include <polkit/polkit.h>
@@ -254,6 +255,8 @@ void Authority::Private::seatSignalsConnect(const QString &seat)
void Authority::Private::dbusSignalAdd(const QString &service, const QString &path, const QString &interface, const QString &name)
{
+ if (!QDBusConnection::systemBus().interface()->isServiceRegistered(service))
+ return;
// FIXME: This code seems to be nonfunctional - it needs to be fixed somewhere (is it Qt BUG?)
QDBusConnection::systemBus().connect(service, path, interface, name,
q, SLOT(dbusFilter(QDBusMessage)));