Your message dated Sun, 07 Jul 2019 07:55:42 +0000 with message-id <[email protected]> and subject line Bug#826021: fixed in workrave 1.10.34-1 has caused the Debian Bug report #826021, regarding improvements to the data processing scripts to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 826021: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826021 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: workrave Version: 1.10.4-3 Severity: wishlist Tags: patch This is a followup for bug#825982. The scripts mentionned in that bug report don't actually work so well, so I have made the following patch so that the collection script actually runs properly and that it deals with corrupted data a little better. --- workrave-1.10.15.orig/contrib/plot/workrave-dump +++ workrave-1.10.15/contrib/plot/workrave-dump @@ -1,6 +1,8 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; +use warnings::register; use integer; use POSIX qw(strftime); use Time::Local; @@ -51,13 +53,18 @@ sub dumpdata($$$$$) { my ($tmdate, $break, $misc, $breakstats, $miscstats) = @_; - die "No timestamp at line $.\n" if !defined($tmdate); - die "No breaks at line $.\n" if !defined($break); + warnings::warn "No timestamp at line $.\n" if !defined($tmdate); + warnings::warn "No breaks at line $.\n" if !defined($break); foreach my $breaktype (0..2) { - die "No breaktype #$breaktype at line $.\n" - if !defined($break->{$breaktype}); + if (!defined($break->{$breaktype})) { + warnings::warn "No breaktype #$breaktype at line $.\n"; + return; + } } - die "No misc at line $.\n" if !defined($misc); + warnings::warn "No misc at line $.\n" if !defined($misc); + if (!defined($tmdate) || !defined($break) || !defined($misc)) { + return; + } my $ts = strftime("%Y%m%d%H%M", gmtime(timegm(0, @$tmdate{qw(min hour mday mon year)}))); @@ -85,7 +92,7 @@ my $step = 24 * 3600; # 24-hr steps my $heartbeat = 4 * $step; my (@DS); -my @breaktypes qw(micro rest daily); +my @breaktypes = qw(micro rest daily); foreach my $breaktype (@breaktypes) { foreach my $breakstat (@breakstats) { my $key = "$breaktype$breakstat"; @@ -106,6 +113,7 @@ my ($tmdate, $break, $misc) = (undef, un open(SOURCE, $source) or die "open $source: $!\n"; while (<SOURCE>) { chomp; + s/^\0*//; # remove corrupted data if (/^WorkRaveStats 4$/) { # Ignore header next; -- System Information: Debian Release: 8.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable'), (1, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.5.0-0.bpo.2-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages workrave depends on: ii gconf-service 3.2.6-3 ii libatk1.0-0 2.14.0-1 ii libatkmm-1.6-1 2.22.7-2.1 ii libc6 2.19-18+deb8u4 ii libcairo-gobject2 1.14.0-2.1+deb8u1 ii libcairo2 1.14.0-2.1+deb8u1 ii libcairomm-1.0-1 1.10.0-1.1 ii libdbusmenu-glib4 12.10.2-1 ii libdbusmenu-gtk3-4 12.10.2-1 ii libgcc1 1:4.9.2-10 ii libgconf-2-4 3.2.6-3 ii libgdk-pixbuf2.0-0 2.31.1-2+deb8u5 ii libgdome2-0 0.8.1+debian-6 ii libglib2.0-0 2.42.1-1+b1 ii libglibmm-2.4-1c2a 2.42.0-1 ii libgstreamer0.10-0 0.10.36-1.5 ii libgtk-3-0 3.14.5-1+deb8u1 ii libgtkmm-3.0-1 3.14.0-1 ii libice6 2:1.0.9-1+b1 ii libindicator3-7 0.5.0-2 ii libpanel-applet-4-0 3.8.1-7+b1 ii libpango-1.0-0 1.36.8-3 ii libpangocairo-1.0-0 1.36.8-3 ii libpangomm-1.4-1 2.34.0-1.1 ii libpulse-mainloop-glib0 5.0-13 ii libpulse0 5.0-13 ii libsigc++-2.0-0c2a 2.4.0-1 ii libsm6 2:1.2.2-1+b1 ii libstdc++6 4.9.2-10 ii libx11-6 2:1.6.2-3 ii libxml2 2.9.1+dfsg1-5+deb8u1 ii libxss1 1:1.2.2-1 ii libxtst6 2:1.2.2-1+b1 ii multiarch-support 2.19-18+deb8u4 ii workrave-data 1.10.4-3 workrave recommends no packages. Versions of packages workrave suggests: ii gnome-panel 3.8.1-7+b1 ii gnome-shell 3.14.4-1~deb8u1 -- Configuration Files: /etc/sound/events/workrave.soundlist 5948a761ed3cc48d661d99c7e230587f [Errno 2] Aucun fichier ou dossier de ce type: u'/etc/sound/events/workrave.soundlist 5948a761ed3cc48d661d99c7e230587f' -- no debconf information
--- End Message ---
--- Begin Message ---Source: workrave Source-Version: 1.10.34-1 We believe that the bug you reported is fixed in the latest version of workrave, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Francois Marier <[email protected]> (supplier of updated workrave package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sat, 06 Jul 2019 13:46:17 -0700 Source: workrave Binary: workrave workrave-data workrave-dbgsym Architecture: source all amd64 Version: 1.10.34-1 Distribution: unstable Urgency: medium Maintainer: Francois Marier <[email protected]> Changed-By: Francois Marier <[email protected]> Description: workrave - Repetitive Strain Injury prevention tool workrave-data - Repetitive Strain Injury prevention tool (data files) Closes: 826021 Changes: workrave (1.10.34-1) unstable; urgency=medium . * New upstream release * Fix workrave-dump script (closes: #826021) * Add metadata license to debian/copyright * Remove patches applied upstream - fix_appstream_xml.patch - fix_location_of_appdata.patch Checksums-Sha1: bd78e79ff0ca4168149e738b21c025cdfcbe0880 2761 workrave_1.10.34-1.dsc 0e8b5ce60a56850f86807c4ceaafcde7f4be3384 6389736 workrave_1.10.34.orig.tar.gz ff04a9a0ecc2d815f7c1aa62efdd20bb04261c09 17704 workrave_1.10.34-1.debian.tar.xz e7f06f7607a8981c1e205b37def946230ec41861 4043960 workrave-data_1.10.34-1_all.deb 6bc70ea9fab9a9b8aed4c3f9f217a7737aff0857 7603720 workrave-dbgsym_1.10.34-1_amd64.deb d68a5bbe79d490da3ad5caea8429bf193bb39c7b 20327 workrave_1.10.34-1_amd64.buildinfo 1f3271d3064b6e6104ef47a77f199d2e7c71c37a 516348 workrave_1.10.34-1_amd64.deb Checksums-Sha256: c1f99202487fc5bad0147af160aa01b89003cd9cd5d28d98e7a63f481c340001 2761 workrave_1.10.34-1.dsc 31a090b48c67c5a2ccb73fb56633f182fcc6d7aca5ec6376146671c72fda1444 6389736 workrave_1.10.34.orig.tar.gz 1a0c3e28c111f11ec1e1d21325e2add540986bacb8b2560bccac39b28f2199d6 17704 workrave_1.10.34-1.debian.tar.xz c3dc4f2e9d7606a540f14c6b1636cbb10e0167a93f01b4050365bc4cb29c70e8 4043960 workrave-data_1.10.34-1_all.deb dbfe0fe5edb193d9735936b0b96864fb3a8d414e562552843e0ce2f5d7c4380f 7603720 workrave-dbgsym_1.10.34-1_amd64.deb 82f76ceb6430f94442252eefde3a1bd6f9813805da69bfd12a83045edbe5fbd1 20327 workrave_1.10.34-1_amd64.buildinfo 6481053d4d591187e5b62e8b0c56103574e1f5b80ed7143af44e9760bc5be57f 516348 workrave_1.10.34-1_amd64.deb Files: 532bbb8d19886579f1aeeb26bc6834f7 2761 gnome optional workrave_1.10.34-1.dsc 87e136103002c744d6c8aa5ad3aaf77b 6389736 gnome optional workrave_1.10.34.orig.tar.gz 30e50ca149d7b0ec7fe5bc9df9c4cc5a 17704 gnome optional workrave_1.10.34-1.debian.tar.xz b02123cc70f9fce0c9829fa660c8056e 4043960 gnome optional workrave-data_1.10.34-1_all.deb 6cd4c91ea4860d6285ccb941b9df4a8e 7603720 debug optional workrave-dbgsym_1.10.34-1_amd64.deb 669393987d8438ac161463c692d0e281 20327 gnome optional workrave_1.10.34-1_amd64.buildinfo a438aa48f6340555ab9f440b514e62e6 516348 gnome optional workrave_1.10.34-1_amd64.deb -----BEGIN PGP SIGNATURE----- iQKoBAEBCgCSFiEEjEcLKgsxVo4RDUMlFigfLgB8mNEFAl0hD3lfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDhD NDcwQjJBMEIzMTU2OEUxMTBENDMyNTE2MjgxRjJFMDA3Qzk4RDEUHGZyYW5jb2lz QGRlYmlhbi5vcmcACgkQFigfLgB8mNGSJA/+PHfRlfvHxa2PyXpuTJyYLsvubinz /+98nNrUBaI2UaUxMTdG+kRtwp6sCsNMte5AYfevL/j5kIVueqRAbFuGj8xhsA4t cmxnFQYDkEXsCOG7xfuxhbpN0kv97rAh1QSHXiqgg3zOoe5j0Yr4UblChDwY2c4m 14KqVSCKrR97bnX0QKrmOSo+1LvInygnjJ7zXk4FBS1N3VdhCSn6D7kfa7dRJY80 N36PHauuqtLNJNT8t6Snw0rHg6fgRcEljcnP4OlEBqfLww2AgN/oTjWCjg+cdP1B vNPBNuDwYMDdJllPALY9l0IBrIIvowNSOKLSnHyoz/kUw83YauALUns3YbrwWR+d O5qXp58xnXWVNOF9rmJUmOXP9ZTn3e9mBlaycAZM5/hXnPqr7dnmuXEhInpcjxxP nd4j+O5rJzo9Tc2h1UF5aQIJopEhZM3Pof67qWkZn24xjeXEHo915XolvlvnfCGZ nZGof4CS+c2mx5FeV7Rs6EQ/INJa29pqSIzzxDACkc5nuM8V4F1q3qGvBNg0J/f8 gbFk6rPoZER+JEKmvRsAYwuV86mzEx9vzgxdgnPCTeluh/yROX9MaK5oHj2xTnE6 ilcXxtKdJNsbETZ/Gpj0e561EPy8IeX1Gi0JS0e/4jViPOq0XIe695l8rdbxjhQe azlu7burkE2h81g= =088s -----END PGP SIGNATURE-----
--- End Message ---

