Package: release.debian.org Severity: normal Tags: jessie User: release.debian....@packages.debian.org Usertags: pu
Hello, I would like to update Osmo in Jessie because the internal data backup function on i386 is broken and it produces only a 50 bytes empty file. This will lead to invalid data when user's try to restore the backup. This is Debian bug https://bugs.debian.org/813414 The debdiff is attached. Regards, Markus
diff -Nru osmo-0.2.12/debian/changelog osmo-0.2.12/debian/changelog --- osmo-0.2.12/debian/changelog 2014-10-15 14:20:21.000000000 +0200 +++ osmo-0.2.12/debian/changelog 2016-02-21 19:36:29.000000000 +0100 @@ -1,3 +1,12 @@ +osmo (0.2.12-1+deb8u1) jessie; urgency=medium + + * Add libarchive-i386.patch. + Fix corrupt data backup on i386. + Thanks to Christian Buchmüller for the report and Maxim Gordienko for the + patch. (Closes: #813414) + + -- Markus Koschany <a...@debian.org> Sun, 21 Feb 2016 19:35:43 +0100 + osmo (0.2.12-1) unstable; urgency=medium * Imported Upstream version 0.2.12. diff -Nru osmo-0.2.12/debian/patches/libarchive-i386.patch osmo-0.2.12/debian/patches/libarchive-i386.patch --- osmo-0.2.12/debian/patches/libarchive-i386.patch 1970-01-01 01:00:00.000000000 +0100 +++ osmo-0.2.12/debian/patches/libarchive-i386.patch 2016-02-21 19:36:29.000000000 +0100 @@ -0,0 +1,25 @@ +From: Maxim Gordienko +Date: Thu, 4 Feb 2016 22:38:37 +0100 +Subject: libarchive i386 + +On i386 platforms libarchive does not write the file content if +the archived file content is set only with archive_entry_copy_stat(). + +Forwarded: http://sourceforge.net/p/osmo-pim/code/1051/ +Debian-Bug: https://bugs.debian.org/813414 +--- + src/backup.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/backup.c b/src/backup.c +index 3ece5f5..ee99236 100644 +--- a/src/backup.c ++++ b/src/backup.c +@@ -68,6 +68,7 @@ tar_archive (const gchar *outname, GUI *appGUI) + stat (filename, &st); + entry = archive_entry_new (); + archive_entry_copy_stat (entry, &st); ++ archive_entry_set_size(entry, st.st_size); + archive_entry_set_pathname (entry, filename); + archive_write_header (archive, entry); + fd = open (filename, O_RDONLY); diff -Nru osmo-0.2.12/debian/patches/series osmo-0.2.12/debian/patches/series --- osmo-0.2.12/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ osmo-0.2.12/debian/patches/series 2016-02-21 19:36:29.000000000 +0100 @@ -0,0 +1 @@ +libarchive-i386.patch