Date: Saturday, January 30, 2016 @ 13:20:35 Author: arodseth Revision: 159528
archrelease: copy trunk to community-i686 Added: tint2/repos/community-i686/PKGBUILD (from rev 159527, tint2/trunk/PKGBUILD) tint2/repos/community-i686/zombie-fix.patch (from rev 159527, tint2/trunk/zombie-fix.patch) Deleted: tint2/repos/community-i686/PKGBUILD tint2/repos/community-i686/zombie-fix.patch ------------------+ PKGBUILD | 79 ++++++++++++++++++++++++----------------------------- zombie-fix.patch | 66 ++++++++++++++++++++++---------------------- 2 files changed, 69 insertions(+), 76 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-01-30 12:20:28 UTC (rev 159527) +++ PKGBUILD 2016-01-30 12:20:35 UTC (rev 159528) @@ -1,43 +0,0 @@ -# $Id$ -# Maintainer: Alexander Rødseth <rods...@gmail.com> -# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> -# Contributor: Blue Peppers <bluepepp...@archlinux.us> -# Contributor: Stefan Husmann< stefan-husm...@t-online.de> - -pkgname=tint2 -pkgver=0.12.4 -pkgrel=1 -pkgdesc='Basic, good-looking task manager for WMs' -arch=('x86_64' 'i686') -url='https://gitlab.com/o9000/tint2' -license=('GPL2') -conflicts=('ttm-svn') -depends=('gtk2' 'imlib2' 'startup-notification') -makedepends=('cmake' 'startup-notification' 'git' 'ninja') -source=("$pkgname-$pkgver.tgz::https://gitlab.com/o9000/tint2/repository/archive.tar.gz?ref=$pkgver" - 'zombie-fix.patch') -sha256sums=('68065a85eec6f4186c52adb48d9fdab2b1008df92e34380038739c146bb59f06' - 'a1e942ca3bef05885989f899c0eaaf63f538f7b84cb43d1517d5d39aa64a4ef9') - -prepare() { - mv "$pkgname-$pkgver-"* "$pkgname" - cd "$pkgname" - patch -Np1 -i ../zombie-fix.patch \ - && echo "${f##*/} OK!" \ - || echo "${f##*/} FAILED!" -} - -build() { - cd "$pkgname" - - mkdir -p build - cd build - cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_TINT2CONF=1 -G Ninja - ninja -} - -package() { - DESTDIR="$pkgdir" ninja -C "$pkgname/build" install -} - -# vim:set ts=2 sw=2 et: Copied: tint2/repos/community-i686/PKGBUILD (from rev 159527, tint2/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-01-30 12:20:35 UTC (rev 159528) @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Alexander Rødseth <rods...@gmail.com> +# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Contributor: Blue Peppers <bluepepp...@archlinux.us> +# Contributor: Stefan Husmann< stefan-husm...@t-online.de> + +pkgname=tint2 +pkgver=0.12.4 +pkgrel=2 +pkgdesc='Basic, good-looking task manager for WMs' +arch=('x86_64' 'i686') +url='https://gitlab.com/o9000/tint2' +license=('GPL2') +conflicts=('ttm-svn') +depends=('gtk2' 'imlib2' 'startup-notification') +makedepends=('cmake' 'startup-notification' 'git' 'ninja') +source=("$pkgname-$pkgver.tgz::https://gitlab.com/o9000/tint2/repository/archive.tar.gz?ref=$pkgver") +sha256sums=('68065a85eec6f4186c52adb48d9fdab2b1008df92e34380038739c146bb59f06') + +prepare() { + mv "$pkgname-$pkgver-"* "$pkgname" +} + +build() { + cd "$pkgname" + mkdir -p build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_TINT2CONF=1 -G Ninja + ninja +} + +package() { + DESTDIR="$pkgdir" ninja -C "$pkgname/build" install +} + +# vim:set ts=2 sw=2 et: Deleted: zombie-fix.patch =================================================================== --- zombie-fix.patch 2016-01-30 12:20:28 UTC (rev 159527) +++ zombie-fix.patch 2016-01-30 12:20:35 UTC (rev 159528) @@ -1,33 +0,0 @@ -http://code.google.com/p/tint2/issues/detail?id=430 -Submitted By: David B. Cortarello (Nomius) <dcortarello at gmail dot com> -Date: 18-05-2013 -Initial Package Version: subversion trunk (revision 652) -Description: Fix zombie (defunct) processes created in clock_action. -This patch provides the following bugfixes: - * This patch uses waitpid with WNOHANG to eliminate all zombie processes created by -tint2 (in particular by the clock -right or left- click). This is done by a small hack -in the update_clocks_min, called to "redraw" that area. - ---- trunk/src/clock/clock.c (revision 652) -+++ trunk/src/clock/clock.c (working copy) -@@ -23,6 +23,8 @@ - #include <cairo-xlib.h> - #include <pango/pangocairo.h> - #include <stdlib.h> -+#include <sys/types.h> -+#include <sys/wait.h> - - #include "window.h" - #include "server.h" -@@ -98,6 +103,10 @@ - // remember old_sec because after suspend/hibernate the clock should be updated directly, and not - // on next minute change - time_t old_sec = time_clock.tv_sec; -+ -+ // Little hack to wait executed commands in clock_action avoiding zombies -+ waitpid(-1, NULL, WNOHANG); -+ - gettimeofday(&time_clock, 0); - if (time_clock.tv_sec % 60 == 0 || time_clock.tv_sec - old_sec > 60) { - int i; - Copied: tint2/repos/community-i686/zombie-fix.patch (from rev 159527, tint2/trunk/zombie-fix.patch) =================================================================== --- zombie-fix.patch (rev 0) +++ zombie-fix.patch 2016-01-30 12:20:35 UTC (rev 159528) @@ -0,0 +1,33 @@ +http://code.google.com/p/tint2/issues/detail?id=430 +Submitted By: David B. Cortarello (Nomius) <dcortarello at gmail dot com> +Date: 18-05-2013 +Initial Package Version: subversion trunk (revision 652) +Description: Fix zombie (defunct) processes created in clock_action. +This patch provides the following bugfixes: + * This patch uses waitpid with WNOHANG to eliminate all zombie processes created by +tint2 (in particular by the clock -right or left- click). This is done by a small hack +in the update_clocks_min, called to "redraw" that area. + +--- trunk/src/clock/clock.c (revision 652) ++++ trunk/src/clock/clock.c (working copy) +@@ -23,6 +23,8 @@ + #include <cairo-xlib.h> + #include <pango/pangocairo.h> + #include <stdlib.h> ++#include <sys/types.h> ++#include <sys/wait.h> + + #include "window.h" + #include "server.h" +@@ -98,6 +103,10 @@ + // remember old_sec because after suspend/hibernate the clock should be updated directly, and not + // on next minute change + time_t old_sec = time_clock.tv_sec; ++ ++ // Little hack to wait executed commands in clock_action avoiding zombies ++ waitpid(-1, NULL, WNOHANG); ++ + gettimeofday(&time_clock, 0); + if (time_clock.tv_sec % 60 == 0 || time_clock.tv_sec - old_sec > 60) { + int i; +