diff --git a/0008-create-last_occurrence-at-the-time-of-the-first-cras.patch b/0008-create-last_occurrence-at-the-time-of-the-first-cras.patch new file mode 100644 index 0000000..07b81f0 --- /dev/null +++ b/0008-create-last_occurrence-at-the-time-of-the-first-cras.patch @@ -0,0 +1,32 @@ +From d975b074727f42e67a2c27a72a87d623da926c15 Mon Sep 17 00:00:00 2001 +From: Jiri Moskovcak +Date: Mon, 6 May 2013 14:55:24 +0200 +Subject: [LIBREPORT PATCH 8/8] create last_occurrence at the time of the first + crash + +- closes #161 + +Signed-off-by: Jiri Moskovcak +Signed-off-by: Richard Marko +--- + src/lib/dump_dir.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c +index a8e9a77..360536f 100644 +--- a/src/lib/dump_dir.c ++++ b/src/lib/dump_dir.c +@@ -612,7 +612,10 @@ void dd_create_basic_files(struct dump_dir *dd, uid_t uid, const char *chroot_di + { + time_t t = time(NULL); + sprintf(long_str, "%lu", (long)t); ++ /* first occurrence */ + dd_save_text(dd, FILENAME_TIME, long_str); ++ /* last occurrence */ ++ dd_save_text(dd, FILENAME_LAST_OCCURRENCE, long_str); + } + free(time_str); + +-- +1.8.1.4 + diff --git a/libreport.spec b/libreport.spec index d6b473a..131f780 100644 --- a/libreport.spec +++ b/libreport.spec @@ -5,7 +5,7 @@ Summary: Generic library for reporting various problems Name: libreport Version: 2.1.4 -Release: 2%{?dist} +Release: 4%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: https://fedorahosted.org/abrt/ @@ -17,6 +17,7 @@ Patch2: 0002-reporter-bugzilla-remove-recently-added-aux.-files-f.patch Patch3: 0003-do-not-build-or-install-any-piece-of-BZ-when-without.patch Patch4: 0004-do-not-build-or-install-BZ-dependencies-when-without.patch Patch6: 0006-updated-translation.patch +Patch8: 0008-create-last_occurrence-at-the-time-of-the-first-cras.patch BuildRequires: dbus-devel BuildRequires: gtk3-devel @@ -280,6 +281,7 @@ infrastructure or uploading the gathered data over ftp/scp... %patch3 -p1 %patch4 -p1 %patch6 -p1 +%patch8 -p1 %build autoconf @@ -490,6 +492,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon May 06 2013 Jakub Filak 2.1.4-4 +- create last_occurrence at the time of the first crash + * Fri May 03 2013 Jakub Filak 2.1.4-2 - update translation - reporter-bugzilla: provide version of libreport