[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Tuesday, May 19, 2020 @ 08:12:40 Author: felixonmars Revision: 386192 upgpkg: polkit-qt 0.113.0-2: reproducibility rebuild Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2020-05-19 08:12:36 UTC (rev 386191) +++ PKGBUILD2020-05-19 08:12:40 UTC (rev 386192) @@ -5,7 +5,7 @@ pkgbase=polkit-qt pkgname=(polkit-qt5) pkgver=0.113.0 -pkgrel=1 +pkgrel=2 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=(x86_64) url='https://www.kde.org/'
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Friday, April 24, 2020 @ 22:42:29 Author: arojas Revision: 381521 https Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2020-04-24 22:41:45 UTC (rev 381520) +++ PKGBUILD2020-04-24 22:42:29 UTC (rev 381521) @@ -12,7 +12,7 @@ license=(LGPL) depends=(polkit qt5-base) makedepends=(cmake) -source=("http://download.kde.org/stable/$pkgbase-1/$pkgbase-1-$pkgver.tar.xz"{,.sig}) +source=("https://download.kde.org/stable/$pkgbase-1/$pkgbase-1-$pkgver.tar.xz"{,.sig}) sha256sums=('5b866a2954ef10ffb66156e2fe8ad0321b5528a8df2e4a91b02f5041ce5563a7' 'SKIP') validpgpkeys=(D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Tuesday, August 27, 2019 @ 18:00:19 Author: arojas Revision: 361282 Update to 0.113.0 Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Modified: PKGBUILD === --- PKGBUILD2019-08-27 17:55:56 UTC (rev 361281) +++ PKGBUILD2019-08-27 18:00:19 UTC (rev 361282) @@ -4,17 +4,18 @@ pkgbase=polkit-qt pkgname=(polkit-qt5) -pkgver=0.112.0+git20180107 -pkgrel=2 +pkgver=0.113.0 +pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=(x86_64) url='https://www.kde.org/' license=(LGPL) depends=(polkit qt5-base) -makedepends=(cmake git) -#source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2;) -source=("git+https://anongit.kde.org/polkit-qt-1.git#commit=cbecf60ac7b5c17cf37503d6675bf5542efbab29;) -sha256sums=('SKIP') +makedepends=(cmake) +source=("http://download.kde.org/stable/$pkgbase-1/$pkgbase-1-$pkgver.tar.xz"{,.sig}) +sha256sums=('5b866a2954ef10ffb66156e2fe8ad0321b5528a8df2e4a91b02f5041ce5563a7' +'SKIP') +validpgpkeys=(D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker prepare() { mkdir -p build @@ -22,9 +23,8 @@ build() { cd build - cmake ../$pkgbase-1 \ --DCMAKE_INSTALL_PREFIX=/usr \ --DLIB_DESTINATION=/usr/lib + cmake ../$pkgbase-1-$pkgver \ +-DCMAKE_INSTALL_PREFIX=/usr make }
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Friday, August 24, 2018 @ 07:10:07 Author: arojas Revision: 332923 Drop Qt4 support Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2018-08-24 07:08:30 UTC (rev 332922) +++ PKGBUILD2018-08-24 07:10:07 UTC (rev 332923) @@ -6,7 +6,7 @@ pkgbase=polkit-qt pkgname=(polkit-qt5) pkgver=0.112.0+git20180107 -pkgrel=1 +pkgrel=2 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=(x86_64) url='https://www.kde.org/'
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD systembus-usage.patch)
Date: Friday, August 24, 2018 @ 07:08:05 Author: arojas Revision: 332921 Drop Qt4 support Modified: polkit-qt/trunk/PKGBUILD Deleted: polkit-qt/trunk/systembus-usage.patch ---+ PKGBUILD | 32 --- systembus-usage.patch | 79 2 files changed, 8 insertions(+), 103 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-08-24 07:05:47 UTC (rev 332920) +++ PKGBUILD2018-08-24 07:08:05 UTC (rev 332921) @@ -1,9 +1,10 @@ # $Id: PKGBUILD 102633 2010-12-09 08:40:59Z andrea $ -# Maintainer: Andrea Scarpino +# Maintainer: Antonio Rojas +# Contributor: Andrea Scarpino # Contributor: Pierre Schmitz pkgbase=polkit-qt -pkgname=(polkit-qt4 polkit-qt5) +pkgname=(polkit-qt5) pkgver=0.112.0+git20180107 pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' @@ -10,42 +11,25 @@ arch=(x86_64) url='https://www.kde.org/' license=(LGPL) -makedepends=(cmake polkit qt4 qt5-base git) +depends=(polkit qt5-base) +makedepends=(cmake git) #source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2;) source=("git+https://anongit.kde.org/polkit-qt-1.git#commit=cbecf60ac7b5c17cf37503d6675bf5542efbab29;) sha256sums=('SKIP') prepare() { - mkdir build{,-qt5} + mkdir -p build } build() { cd build - cmake ../${pkgbase}-1 \ --DCMAKE_BUILD_TYPE=Release \ + cmake ../$pkgbase-1 \ -DCMAKE_INSTALL_PREFIX=/usr \ --DLIB_DESTINATION=/usr/lib \ --DUSE_QT4=ON - make - - cd ../build-qt5 - cmake ../${pkgbase}-1 \ --DCMAKE_BUILD_TYPE=Release \ --DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_DESTINATION=/usr/lib make } -package_polkit-qt4() { - depends=(polkit qt4) - +package_polkit-qt5() { cd build make DESTDIR="$pkgdir" install } - -package_polkit-qt5() { - depends=(polkit qt5-base) - - cd build-qt5 - make DESTDIR="$pkgdir" install -} Deleted: systembus-usage.patch === --- systembus-usage.patch 2018-08-24 07:05:47 UTC (rev 332920) +++ systembus-usage.patch 2018-08-24 07:08:05 UTC (rev 332921) @@ -1,79 +0,0 @@ -commit 88c6e9334c8440721189ef7d020fa94d47f30f8b -Author: Harald Sitter -Date: Fri Aug 1 16:34:03 2014 +0200 - -do not use global static systembus instance - -global static destruction order cannot be controlled and we need our bus -to disconnect from the consolekit signals, so use our own bus instance -to connect to systembus signals - -REVIEW: 119545 - -diff --git a/core/polkitqt1-authority.cpp b/core/polkitqt1-authority.cpp -index dd014cf..f25354d 100644 a/core/polkitqt1-authority.cpp -+++ b/core/polkitqt1-authority.cpp -@@ -83,7 +83,10 @@ public: - // Polkit will return NULL on failures, hence we use it instead of 0 - Private(Authority *qq) : q(qq) - , pkAuthority(NULL) --, m_hasError(false) {} -+, m_hasError(false) -+, m_systemBus(0) -+{ -+} - - ~Private(); - -@@ -103,6 +106,13 @@ public: - bool m_hasError; - Authority::ErrorCode m_lastError; - QString m_errorDetails; -+// Local system bus. QDBusConnection::systemBus() may only be savely used -+// inside a QCoreApplication scope as for example destruction of connected -+// objects need to happen before the bus disappears. Since this class however -+// is a global static and systemBus() internally is a global static we -+// cannot assure destruction order. Instead we create a local copy of the -+// global systemBus instance so we can make life time to our needs. -+// This prevents crashes when cleaning up the global statics. - QDBusConnection *m_systemBus; - GCancellable *m_checkAuthorizationCancellable, - *m_enumerateActionsCancellable, -@@ -127,6 +137,7 @@ public: - - Authority::Private::~Private() - { -+delete m_systemBus; - g_object_unref(m_checkAuthorizationCancellable); - g_object_unref(m_enumerateActionsCancellable); - g_object_unref(m_registerAuthenticationAgentCancellable); -@@ -170,6 +181,9 @@ void Authority::Private::init() - - g_type_init(); - -+m_systemBus = new QDBusConnection(QDBusConnection::connectToBus(QDBusConnection::SystemBus, -+ QString("polkit_qt_system_bus"))); -+ - m_checkAuthorizationCancellable = g_cancellable_new(); - m_enumerateActionsCancellable = g_cancellable_new(); - m_registerAuthenticationAgentCancellable = g_cancellable_new(); -@@ -219,7 +233,7 @@ void Authority::Private::init() - - // then we need to extract all seats from ConsoleKit - QDBusMessage msg = QDBusMessage::createMethodCall(consoleKitService, consoleKitManagerPath, consoleKitManagerInterface, "GetSeats"); --msg =
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Friday, February 9, 2018 @ 12:56:19 Author: arojas Revision: 316516 Update to latest commit, really remove automoc4 optdepend Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |8 1 file changed, 4 insertions(+), 4 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-02-09 12:05:17 UTC (rev 316515) +++ PKGBUILD2018-02-09 12:56:19 UTC (rev 316516) @@ -4,15 +4,15 @@ pkgbase=polkit-qt pkgname=(polkit-qt4 polkit-qt5) -pkgver=0.112.0+git20160226 -pkgrel=2 +pkgver=0.112.0+git20180107 +pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=(x86_64) url='https://www.kde.org/' license=(LGPL) -makedepends=(cmake automoc4 polkit qt4 qt5-base git) +makedepends=(cmake polkit qt4 qt5-base git) #source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2;) -source=("git+https://anongit.kde.org/polkit-qt-1.git#commit=15c7867e88c5278f61896b5531ac2b544add8220;) +source=("git+https://anongit.kde.org/polkit-qt-1.git#commit=cbecf60ac7b5c17cf37503d6675bf5542efbab29;) sha256sums=('SKIP') prepare() {
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Friday, February 9, 2018 @ 11:25:07 Author: arojas Revision: 316512 Rebuild, fix source, remove unused makedep Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-02-09 11:20:05 UTC (rev 316511) +++ PKGBUILD2018-02-09 11:25:07 UTC (rev 316512) @@ -3,17 +3,17 @@ # Contributor: Pierre Schmitzpkgbase=polkit-qt -pkgname=('polkit-qt4' 'polkit-qt5') +pkgname=(polkit-qt4 polkit-qt5) pkgver=0.112.0+git20160226 -pkgrel=1 +pkgrel=2 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' -arch=('x86_64') +arch=(x86_64) url='https://www.kde.org/' -license=('LGPL') -makedepends=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base') +license=(LGPL) +makedepends=(cmake automoc4 polkit qt4 qt5-base git) #source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2;) -source=("http://quickgit.kde.org/?p=polkit-qt-1.git=snapshot=15c7867e88c5278f61896b5531ac2b544add8220=tgz;) -md5sums=('e74c39223328edf89cdce4e037ef3c38') +source=("git+https://anongit.kde.org/polkit-qt-1.git#commit=15c7867e88c5278f61896b5531ac2b544add8220;) +sha256sums=('SKIP') prepare() { mkdir build{,-qt5} @@ -37,18 +37,15 @@ } package_polkit-qt4() { - depends=('polkit' 'qt4') - replaces=('polkit-qt') - provides=('polkit-qt') - conflicts=('polkit-qt') + depends=(polkit qt4) cd build - make DESTDIR="${pkgdir}" install + make DESTDIR="$pkgdir" install } package_polkit-qt5() { - depends=('polkit' 'qt5-base') + depends=(polkit qt5-base) cd build-qt5 - make DESTDIR="${pkgdir}" install + make DESTDIR="$pkgdir" install }
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Thursday, February 16, 2017 @ 21:35:54 Author: arojas Revision: 289076 projects.kde.org is dead Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2017-02-16 21:35:14 UTC (rev 289075) +++ PKGBUILD2017-02-16 21:35:54 UTC (rev 289076) @@ -8,7 +8,7 @@ pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') -url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' +url='https://www.kde.org/' license=('LGPL') makedepends=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base') #source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2;)
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Thursday, March 3, 2016 @ 09:13:54 Author: arojas Revision: 260572 New git snapshot, fixes crashes with Qt 5.6 Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) Modified: PKGBUILD === --- PKGBUILD2016-03-03 08:04:38 UTC (rev 260571) +++ PKGBUILD2016-03-03 08:13:54 UTC (rev 260572) @@ -4,28 +4,24 @@ pkgbase=polkit-qt pkgname=('polkit-qt4' 'polkit-qt5') -pkgver=0.112.0 -pkgrel=3 +pkgver=0.112.0+git20160226 +pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') makedepends=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base') -source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2; -'systembus-usage.patch') -md5sums=('bee71b71c12797e6fc498540a06c829b' - '067355984adf2cd87e2fac715bd025f3') +#source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2;) +source=("http://quickgit.kde.org/?p=polkit-qt-1.git=snapshot=15c7867e88c5278f61896b5531ac2b544add8220=tgz;) +md5sums=('e74c39223328edf89cdce4e037ef3c38') prepare() { mkdir build{,-qt5} - - cd ${pkgbase}-1-${pkgver} - patch -p1 -i "${srcdir}"/systembus-usage.patch } build() { cd build - cmake ../${pkgbase}-1-${pkgver} \ + cmake ../${pkgbase}-1 \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_DESTINATION=/usr/lib \ @@ -33,7 +29,7 @@ make cd ../build-qt5 - cmake ../${pkgbase}-1-${pkgver} \ + cmake ../${pkgbase}-1 \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_DESTINATION=/usr/lib
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Sunday, December 6, 2015 @ 13:51:15 Author: foutrelis Revision: 252814 C++11 ABI rebuild Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2015-12-06 12:49:06 UTC (rev 252813) +++ PKGBUILD2015-12-06 12:51:15 UTC (rev 252814) @@ -5,7 +5,7 @@ pkgbase=polkit-qt pkgname=('polkit-qt4' 'polkit-qt5') pkgver=0.112.0 -pkgrel=2 +pkgrel=3 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1'
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Sunday, December 6, 2015 @ 07:18:02 Author: allan Revision: 252624 C++11 ABI rebuild Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2015-12-06 06:14:24 UTC (rev 252623) +++ PKGBUILD2015-12-06 06:18:02 UTC (rev 252624) @@ -5,7 +5,7 @@ pkgbase=polkit-qt pkgname=('polkit-qt4' 'polkit-qt5') pkgver=0.112.0 -pkgrel=1 +pkgrel=2 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1'
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Monday, June 8, 2015 @ 10:34:46 Author: foutrelis Revision: 240421 upgpkg: polkit-qt 0.112.0-1 Switch to release tarball because the git snapshot failed md5 checksum. Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-06-07 20:01:56 UTC (rev 240420) +++ PKGBUILD2015-06-08 08:34:46 UTC (rev 240421) @@ -4,28 +4,28 @@ pkgbase=polkit-qt pkgname=('polkit-qt4' 'polkit-qt5') -pkgver=0.112 -pkgrel=2 +pkgver=0.112.0 +pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') makedepends=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base') -source=(${pkgbase}-${pkgver}.tar.bz2::http://quickgit.kde.org/?p=${pkgbase}-1.gita=snapshoth=40afa675bfa4cacd95487ce8b0544654c5f34e21fmt=tbz2; +source=(http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2; 'systembus-usage.patch') -md5sums=('d27343d2918330f4159d851e256c5c6d' +md5sums=('bee71b71c12797e6fc498540a06c829b' '067355984adf2cd87e2fac715bd025f3') prepare() { mkdir build{,-qt5} - cd ${pkgbase}-1 + cd ${pkgbase}-1-${pkgver} patch -p1 -i ${srcdir}/systembus-usage.patch } build() { cd build - cmake ../${pkgbase}-1 \ + cmake ../${pkgbase}-1-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_DESTINATION=/usr/lib \ @@ -33,7 +33,7 @@ make cd ../build-qt5 - cmake ../${pkgbase}-1 \ + cmake ../${pkgbase}-1-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_DESTINATION=/usr/lib
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD systembus-usage.patch)
Date: Friday, October 3, 2014 @ 09:24:43 Author: andrea Revision: 223802 upgpkg: polkit-qt 0.112-2 Fix crashes in backlighthelper (FS#42155) Added: polkit-qt/trunk/systembus-usage.patch Modified: polkit-qt/trunk/PKGBUILD ---+ PKGBUILD | 11 -- systembus-usage.patch | 79 2 files changed, 87 insertions(+), 3 deletions(-) Modified: PKGBUILD === --- PKGBUILD2014-10-03 07:16:02 UTC (rev 223801) +++ PKGBUILD2014-10-03 07:24:43 UTC (rev 223802) @@ -5,17 +5,22 @@ pkgbase=polkit-qt pkgname=('polkit-qt4' 'polkit-qt5') pkgver=0.112 -pkgrel=1 +pkgrel=2 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') makedepends=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base') -source=(${pkgbase}-${pkgver}.tar.bz2::http://quickgit.kde.org/?p=${pkgbase}-1.gita=snapshoth=40afa675bfa4cacd95487ce8b0544654c5f34e21fmt=tbz2;) -md5sums=('c46401dbb55e2276616849e22b096768') +source=(${pkgbase}-${pkgver}.tar.bz2::http://quickgit.kde.org/?p=${pkgbase}-1.gita=snapshoth=40afa675bfa4cacd95487ce8b0544654c5f34e21fmt=tbz2; +'systembus-usage.patch') +md5sums=('d27343d2918330f4159d851e256c5c6d' + '067355984adf2cd87e2fac715bd025f3') prepare() { mkdir build{,-qt5} + + cd ${pkgbase}-1 + patch -p1 -i ${srcdir}/systembus-usage.patch } build() { Added: systembus-usage.patch === --- systembus-usage.patch (rev 0) +++ systembus-usage.patch 2014-10-03 07:24:43 UTC (rev 223802) @@ -0,0 +1,79 @@ +commit 88c6e9334c8440721189ef7d020fa94d47f30f8b +Author: Harald Sitter sit...@kde.org +Date: Fri Aug 1 16:34:03 2014 +0200 + +do not use global static systembus instance + +global static destruction order cannot be controlled and we need our bus +to disconnect from the consolekit signals, so use our own bus instance +to connect to systembus signals + +REVIEW: 119545 + +diff --git a/core/polkitqt1-authority.cpp b/core/polkitqt1-authority.cpp +index dd014cf..f25354d 100644 +--- a/core/polkitqt1-authority.cpp b/core/polkitqt1-authority.cpp +@@ -83,7 +83,10 @@ public: + // Polkit will return NULL on failures, hence we use it instead of 0 + Private(Authority *qq) : q(qq) + , pkAuthority(NULL) +-, m_hasError(false) {} ++, m_hasError(false) ++, m_systemBus(0) ++{ ++} + + ~Private(); + +@@ -103,6 +106,13 @@ public: + bool m_hasError; + Authority::ErrorCode m_lastError; + QString m_errorDetails; ++// Local system bus. QDBusConnection::systemBus() may only be savely used ++// inside a QCoreApplication scope as for example destruction of connected ++// objects need to happen before the bus disappears. Since this class however ++// is a global static and systemBus() internally is a global static we ++// cannot assure destruction order. Instead we create a local copy of the ++// global systemBus instance so we can make life time to our needs. ++// This prevents crashes when cleaning up the global statics. + QDBusConnection *m_systemBus; + GCancellable *m_checkAuthorizationCancellable, + *m_enumerateActionsCancellable, +@@ -127,6 +137,7 @@ public: + + Authority::Private::~Private() + { ++delete m_systemBus; + g_object_unref(m_checkAuthorizationCancellable); + g_object_unref(m_enumerateActionsCancellable); + g_object_unref(m_registerAuthenticationAgentCancellable); +@@ -170,6 +181,9 @@ void Authority::Private::init() + + g_type_init(); + ++m_systemBus = new QDBusConnection(QDBusConnection::connectToBus(QDBusConnection::SystemBus, ++ QString(polkit_qt_system_bus))); ++ + m_checkAuthorizationCancellable = g_cancellable_new(); + m_enumerateActionsCancellable = g_cancellable_new(); + m_registerAuthenticationAgentCancellable = g_cancellable_new(); +@@ -219,7 +233,7 @@ void Authority::Private::init() + + // then we need to extract all seats from ConsoleKit + QDBusMessage msg = QDBusMessage::createMethodCall(consoleKitService, consoleKitManagerPath, consoleKitManagerInterface, GetSeats); +-msg = QDBusConnection::systemBus().call(msg); ++msg = m_systemBus-call(msg); + if (!msg.arguments().isEmpty()) { + // this method returns a list with present seats + QListQString seats; +@@ -256,8 +270,7 @@ void Authority::Private::seatSignalsConnect(const QString seat) + void Authority::Private::dbusSignalAdd(const QString service, const QString path, const QString interface, const QString name) + { + // FIXME: This code seems to be nonfunctional - it
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Friday, July 11, 2014 @ 11:47:07 Author: andrea Revision: 216787 upgpkg: polkit-qt 0.112-1 Upstream release Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD | 43 --- 1 file changed, 32 insertions(+), 11 deletions(-) Modified: PKGBUILD === --- PKGBUILD2014-07-11 09:46:17 UTC (rev 216786) +++ PKGBUILD2014-07-11 09:47:07 UTC (rev 216787) @@ -2,31 +2,52 @@ # Maintainer: Andrea Scarpino and...@archlinux.org # Contributor: Pierre Schmitz pie...@archlinux.de -pkgname=polkit-qt -pkgver=0.103.0 -pkgrel=3 +pkgbase=polkit-qt +pkgname=('polkit-qt4' 'polkit-qt5') +pkgver=0.112 +pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') -depends=('polkit' 'qt4') -makedepends=('cmake' 'automoc4') -source=(http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2;) -md5sums=('a105e233e6733fb072c9080cd7ae1af2') +makedepends=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base') +source=(${pkgbase}-${pkgver}.tar.bz2::http://quickgit.kde.org/?p=${pkgbase}-1.gita=snapshoth=40afa675bfa4cacd95487ce8b0544654c5f34e21fmt=tbz2;) +md5sums=('c46401dbb55e2276616849e22b096768') prepare() { - mkdir build + mkdir build{,-qt5} } build() { cd build - cmake ../${pkgname}-1-${pkgver} \ + cmake ../${pkgbase}-1 \ -DCMAKE_BUILD_TYPE=Release \ --DCMAKE_INSTALL_PREFIX=/usr +-DCMAKE_INSTALL_PREFIX=/usr \ +-DLIB_DESTINATION=/usr/lib \ +-DUSE_QT4=ON make + + cd ../build-qt5 + cmake ../${pkgbase}-1 \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DLIB_DESTINATION=/usr/lib + make } -package() { +package_polkit-qt4() { + depends=('polkit' 'qt4') + replaces=('polkit-qt') + provides=('polkit-qt') + conflicts=('polkit-qt') + cd build make DESTDIR=${pkgdir} install } + +package_polkit-qt5() { + depends=('polkit' 'qt5-base') + + cd build-qt5 + make DESTDIR=${pkgdir} install +}
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Monday, June 30, 2014 @ 18:59:52 Author: andrea Revision: 215841 upgpkg: polkit-qt 0.103.0-3 MTREE rebuild Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2014-06-30 16:58:41 UTC (rev 215840) +++ PKGBUILD2014-06-30 16:59:52 UTC (rev 215841) @@ -4,7 +4,7 @@ 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=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1'
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Tuesday, February 26, 2013 @ 07:08:46 Author: andrea Revision: 178648 upgpkg: polkit-qt 0.103.0-2 qt4 rebuild Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |9 + 1 file changed, 5 insertions(+), 4 deletions(-) Modified: PKGBUILD === --- PKGBUILD2013-02-26 06:06:38 UTC (rev 178647) +++ PKGBUILD2013-02-26 06:08:46 UTC (rev 178648) @@ -4,18 +4,19 @@ pkgname=polkit-qt pkgver=0.103.0 -pkgrel=1 +pkgrel=2 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') -depends=('polkit' 'qt') +depends=('polkit' 'qt4') makedepends=('cmake' 'automoc4') source=(http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2;) md5sums=('a105e233e6733fb072c9080cd7ae1af2') build() { - cd ${srcdir} + . /etc/profile.d/qt4.sh + mkdir build cd build cmake ../${pkgname}-1-${pkgver} \ @@ -25,6 +26,6 @@ } package() { - cd ${srcdir}/build + cd build make DESTDIR=${pkgdir} install }
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Monday, February 25, 2013 @ 18:02:14 Author: andrea Revision: 178577 Undo the qt/qt4 replacement Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |9 - 1 file changed, 4 insertions(+), 5 deletions(-) Modified: PKGBUILD === --- PKGBUILD2013-02-25 17:01:06 UTC (rev 178576) +++ PKGBUILD2013-02-25 17:02:14 UTC (rev 178577) @@ -4,19 +4,18 @@ pkgname=polkit-qt pkgver=0.103.0 -pkgrel=2 +pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') -depends=('polkit' 'qt4') +depends=('polkit' 'qt') makedepends=('cmake' 'automoc4') source=(http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2;) md5sums=('a105e233e6733fb072c9080cd7ae1af2') build() { - . /etc/profile.d/qt4.sh - + cd ${srcdir} mkdir build cd build cmake ../${pkgname}-1-${pkgver} \ @@ -26,6 +25,6 @@ } package() { - cd build + cd ${srcdir}/build make DESTDIR=${pkgdir} install }
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Tuesday, February 19, 2013 @ 01:16:51 Author: andrea Revision: 178276 upgpkg: polkit-qt 0.103.0-2 qt4 rebuild Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |9 + 1 file changed, 5 insertions(+), 4 deletions(-) Modified: PKGBUILD === --- PKGBUILD2013-02-19 00:16:08 UTC (rev 178275) +++ PKGBUILD2013-02-19 00:16:51 UTC (rev 178276) @@ -4,18 +4,19 @@ pkgname=polkit-qt pkgver=0.103.0 -pkgrel=1 +pkgrel=2 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') -depends=('polkit' 'qt') +depends=('polkit' 'qt4') makedepends=('cmake' 'automoc4') source=(http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2;) md5sums=('a105e233e6733fb072c9080cd7ae1af2') build() { - cd ${srcdir} + . /etc/profile.d/qt4.sh + mkdir build cd build cmake ../${pkgname}-1-${pkgver} \ @@ -25,6 +26,6 @@ } package() { - cd ${srcdir}/build + cd build make DESTDIR=${pkgdir} install }
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Thursday, December 15, 2011 @ 16:05:26 Author: andrea Revision: 145037 upgpkg: polkit-qt 0.103.0-1 Upstream release Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD | 24 1 file changed, 12 insertions(+), 12 deletions(-) Modified: PKGBUILD === --- PKGBUILD2011-12-15 21:02:22 UTC (rev 145036) +++ PKGBUILD2011-12-15 21:05:26 UTC (rev 145037) @@ -3,28 +3,28 @@ # Contributor: Pierre Schmitz pie...@archlinux.de pkgname=polkit-qt -pkgver=0.99.0 +pkgver=0.103.0 pkgrel=1 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') -url='http://www.kde.org' +url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' license=('LGPL') depends=('polkit' 'qt') makedepends=('cmake' 'automoc4') source=(ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2;) -md5sums=('1c5b4113a2a167624b5f716b4f03a219') +md5sums=('a105e233e6733fb072c9080cd7ae1af2') build() { - cd ${srcdir} - mkdir build - cd build - cmake ../${pkgname}-1-${pkgver} \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr - make + cd ${srcdir} + mkdir build + cd build + cmake ../${pkgname}-1-${pkgver} \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr + make } package() { - cd ${srcdir}/build - make DESTDIR=$pkgdir install + cd ${srcdir}/build + make DESTDIR=${pkgdir} install }
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Thursday, December 15, 2011 @ 16:07:49 Author: andrea Revision: 145039 Do not use a specific KDE mirror Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2011-12-15 21:05:53 UTC (rev 145038) +++ PKGBUILD2011-12-15 21:07:49 UTC (rev 145039) @@ -11,7 +11,7 @@ license=('LGPL') depends=('polkit' 'qt') makedepends=('cmake' 'automoc4') -source=(ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2;) +source=(http://download.kde.org/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2;) md5sums=('a105e233e6733fb072c9080cd7ae1af2') build() {
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD fix-deprecated-warnings.patch)
Date: Tuesday, October 12, 2010 @ 11:15:02 Author: andrea Revision: 94933 upgpkg: polkit-qt 0.96.1-2 remove deprecated-warning.patch which seems to broke GUI (FS#21211) Modified: polkit-qt/trunk/PKGBUILD Deleted: polkit-qt/trunk/fix-deprecated-warnings.patch ---+ PKGBUILD |5 fix-deprecated-warnings.patch | 41 2 files changed, 1 insertion(+), 45 deletions(-) Modified: PKGBUILD === --- PKGBUILD2010-10-12 14:55:09 UTC (rev 94932) +++ PKGBUILD2010-10-12 15:15:02 UTC (rev 94933) @@ -4,7 +4,7 @@ pkgname=polkit-qt pkgver=0.96.1 -pkgrel=1 +pkgrel=2 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='http://www.kde.org' @@ -12,15 +12,12 @@ depends=('polkit' 'qt') makedepends=('cmake' 'automoc4') source=(ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2; - 'fix-deprecated-warnings.patch' 'null-checking.patch') md5sums=('7d122aa67c6786ea7d0bb023701693a1' - '2ff7e14cfa198eaca9189c15158adf37' 'a34dfa8408cf7add41dd2c9c522a61ce') build() { cd ${srcdir}/${pkgname}-1-${pkgver} - patch -Np0 -i ${srcdir}/fix-deprecated-warnings.patch patch -Np0 -i ${srcdir}/null-checking.patch cd ${srcdir} Deleted: fix-deprecated-warnings.patch === --- fix-deprecated-warnings.patch 2010-10-12 14:55:09 UTC (rev 94932) +++ fix-deprecated-warnings.patch 2010-10-12 15:15:02 UTC (rev 94933) @@ -1,41 +0,0 @@ -Index: core/polkitqt1-authority.cpp -=== core/polkitqt1-authority.cpp (revision 1183413) -+++ core/polkitqt1-authority.cpp (working copy) -@@ -177,12 +177,17 @@ - m_revokeTemporaryAuthorizationsCancellable = g_cancellable_new(); - m_revokeTemporaryAuthorizationCancellable = g_cancellable_new(); - -+GError *gerror = NULL; - if (pkAuthority == NULL) { --pkAuthority = polkit_authority_get(); -+pkAuthority = polkit_authority_get_sync(NULL, gerror); -+if (gerror != NULL) { -+setError(E_GetAuthority, gerror-message); -+g_error_free(gerror); -+return; -+} - } - - if (pkAuthority == NULL) { --(E_GetAuthority); - return; - } - -Index: agent/polkitqt1-agent-listener.cpp -=== agent/polkitqt1-agent-listener.cpp (revision 1183413) -+++ agent/polkitqt1-agent-listener.cpp (working copy) -@@ -73,9 +73,11 @@ - { - GError *error = NULL; - --bool r = polkit_agent_register_listener(d-listener, -+bool r = polkit_agent_listener_register(d-listener, -+ POLKIT_AGENT_REGISTER_FLAGS_RUN_IN_THREAD, - subject-subject(), - objectPath.toAscii().data(), -+NULL, - error); - if (error != NULL) { - qWarning() QString(Cannot register authentication agent: %1).arg(error-message);
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD fix-deprecated-warnings.patch)
Date: Tuesday, October 12, 2010 @ 15:57:39 Author: andrea Revision: 94949 upgpkg: polkit-qt 0.96.1-3 re-added a modified version of deprecated-warnings patch which fix crash on logout/shutdown (FS#21223) Added: polkit-qt/trunk/fix-deprecated-warnings.patch Modified: polkit-qt/trunk/PKGBUILD ---+ PKGBUILD |6 - fix-deprecated-warnings.patch | 41 2 files changed, 46 insertions(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2010-10-12 19:49:08 UTC (rev 94948) +++ PKGBUILD2010-10-12 19:57:39 UTC (rev 94949) @@ -4,7 +4,7 @@ pkgname=polkit-qt pkgver=0.96.1 -pkgrel=2 +pkgrel=3 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' arch=('i686' 'x86_64') url='http://www.kde.org' @@ -12,12 +12,16 @@ depends=('polkit' 'qt') makedepends=('cmake' 'automoc4') source=(ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2; + 'fix-deprecated-warnings.patch' 'null-checking.patch') md5sums=('7d122aa67c6786ea7d0bb023701693a1' + '374d07ff3fb9984f71681bb719813bc4' 'a34dfa8408cf7add41dd2c9c522a61ce') build() { cd ${srcdir}/${pkgname}-1-${pkgver} + + patch -Np0 -i ${srcdir}/fix-deprecated-warnings.patch patch -Np0 -i ${srcdir}/null-checking.patch cd ${srcdir} Added: fix-deprecated-warnings.patch === --- fix-deprecated-warnings.patch (rev 0) +++ fix-deprecated-warnings.patch 2010-10-12 19:57:39 UTC (rev 94949) @@ -0,0 +1,41 @@ +Index: core/polkitqt1-authority.cpp +=== +--- core/polkitqt1-authority.cpp (revision 1183413) core/polkitqt1-authority.cpp (working copy) +@@ -177,12 +177,17 @@ + m_revokeTemporaryAuthorizationsCancellable = g_cancellable_new(); + m_revokeTemporaryAuthorizationCancellable = g_cancellable_new(); + ++GError *gerror = NULL; + if (pkAuthority == NULL) { +-pkAuthority = polkit_authority_get(); ++pkAuthority = polkit_authority_get_sync(NULL, gerror); ++if (gerror != NULL) { ++setError(E_GetAuthority, gerror-message); ++g_error_free(gerror); ++return; ++} + } + + if (pkAuthority == NULL) { +-(E_GetAuthority); + return; + } + +Index: agent/polkitqt1-agent-listener.cpp +=== +--- agent/polkitqt1-agent-listener.cpp (revision 1183413) agent/polkitqt1-agent-listener.cpp (working copy) +@@ -73,9 +73,11 @@ + { + GError *error = NULL; + +-bool r = polkit_agent_register_listener(d-listener, ++bool r = polkit_agent_listener_register(d-listener, ++POLKIT_AGENT_REGISTER_FLAGS_NONE, + subject-subject(), + objectPath.toAscii().data(), ++NULL, + error); + if (error != NULL) { + qWarning() QString(Cannot register authentication agent: %1).arg(error-message);
[arch-commits] Commit in polkit-qt/trunk (PKGBUILD)
Date: Sunday, January 17, 2010 @ 13:40:13 Author: andrea Revision: 63520 cleanup build Modified: polkit-qt/trunk/PKGBUILD --+ PKGBUILD |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) Modified: PKGBUILD === --- PKGBUILD2010-01-17 18:38:39 UTC (rev 63519) +++ PKGBUILD2010-01-17 18:40:13 UTC (rev 63520) @@ -18,14 +18,13 @@ build() { cd $srcdir/${pkgname}-${pkgver} patch -p1 -i $srcdir/link.patch || return 1 - cd .. + cd ${srcdir} mkdir build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_SKIP_RPATH=ON \ - -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' - make + -DCMAKE_SKIP_RPATH=ON + make || return 1 make DESTDIR=$pkgdir install }