[Pkg-utopia-maintainers] Bug#765643: gnome-disk-utility: gnome-disks fail at benchmarking on 32bit architectures

Marius Mikucionis mmikucionis at gmail.com
Thu Oct 16 21:27:28 UTC 2014


Package: gnome-disk-utility
Version: 3.12.1-1+b1
Severity: normal
Tags: patch

the problem is that gdubenchmarkdialog.c uses signed 32bit lseek(3)
prototype to seek the disk position and fails on offsets further than
2^31.

the fix is to switch to 64bit prototype lseek64(3) or just ensure that
off_t is of 64bit type.

here is a (trivial) patch:

diff --git a/src/disks/gdubenchmarkdialog.c
b/src/disks/gdubenchmarkdialog.c
index 6f751da..e47d7b6 100644
--- a/src/disks/gdubenchmarkdialog.c
+++ b/src/disks/gdubenchmarkdialog.c
@@ -9,6 +9,7 @@
 
 #include "config.h"
 
+#define _FILE_OFFSET_BITS 64
 #include <glib/gi18n.h>
 #include <gio/gunixfdlist.h>
 #include <gio/gunixinputstream.h>




-- System Information:
Debian Release: jessie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.16-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=lt_LT.utf8, LC_CTYPE=lt_LT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnome-disk-utility depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.22.0-1
ii  libatk1.0-0                                  2.14.0-1
ii  libc6                                        2.19-11
ii  libcairo-gobject2                            1.12.16-5
ii  libcairo2                                    1.12.16-5
ii  libcanberra-gtk3-0                           0.30-2.1
ii  libcanberra0                                 0.30-2.1
ii  libdvdread4                                  5.0.0-1
ii  libgdk-pixbuf2.0-0                           2.30.8-1+b1
ii  libglib2.0-0                                 2.42.0-2
ii  libgtk-3-0                                   3.14.1-1
ii  liblzma5                                     5.1.1alpha+20120614-2
ii  libnotify4                                   0.7.6-2
ii  libpango-1.0-0                               1.36.8-2
ii  libpangocairo-1.0-0                          1.36.8-2
ii  libpwquality1                                1.2.3-1
ii  libsecret-1-0                                0.18-1+b1
ii  libsystemd0                                  215-5+b1
ii  libudisks2-0                                 2.1.3-5
ii  libx11-6                                     2:1.6.2-3
ii  udisks2                                      2.1.3-5

gnome-disk-utility recommends no packages.

gnome-disk-utility suggests no packages.

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list