pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/mtools mtools-(at least)4.0.17 tries hard to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/614e1c9bdf80
branches:  trunk
changeset: 607300:614e1c9bdf80
user:      is <is%pkgsrc.org@localhost>
date:      Wed Aug 08 08:46:27 2012 +0000

description:
mtools-(at least)4.0.17 tries hard to configure and conditionally set types
to use 64bit file offsets where available for seek()ing etc. However, the
easy case (sizeof(off_t)>4) is handled incorrectly: mt_size_t is set to
size_t - maybe a copy and paste from the fall-back-to-32bit case.

This type is used at least in init.c, when detecting media size and comparing
to the FAT geometry, consequently failing and erroring out with the message
"Big disks not supported on this architecture."

The patch does handle the (e.g. NetBSD) case of 64bit off_t the same as
the case where a off64_t is available (and the other 64bit off_t-equivalent
cases); namely using off_t as mt_size_t.

Thanks to riastradh@ for pointing out where the bug in llong.h was.

diffstat:

 sysutils/mtools/Makefile |  3 ++-
 sysutils/mtools/distinfo |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 983c5985dc13 -r 614e1c9bdf80 sysutils/mtools/Makefile
--- a/sysutils/mtools/Makefile  Wed Aug 08 07:17:00 2012 +0000
+++ b/sysutils/mtools/Makefile  Wed Aug 08 08:46:27 2012 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.49 2012/03/18 12:41:53 shattered Exp $
+# $NetBSD: Makefile,v 1.50 2012/08/08 08:46:27 is Exp $
 
 DISTNAME=      mtools-4.0.17
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  http://www.mtools.linux.lu/
 EXTRACT_SUFX=  .tar.bz2
diff -r 983c5985dc13 -r 614e1c9bdf80 sysutils/mtools/distinfo
--- a/sysutils/mtools/distinfo  Wed Aug 08 07:17:00 2012 +0000
+++ b/sysutils/mtools/distinfo  Wed Aug 08 08:46:27 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2012/03/18 12:41:53 shattered Exp $
+$NetBSD: distinfo,v 1.18 2012/08/08 08:46:27 is Exp $
 
 SHA1 (mtools-4.0.17.tar.bz2) = ab16d292c5098ae94d83a48094c137c2a5c3b101
 RMD160 (mtools-4.0.17.tar.bz2) = 2e55692fa31d02e86bcab0d1e55ed1755b2bab64
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 493b06455ee3169e6db916a9d535dad5a124edbc
 SHA1 (patch-ae) = 5281829c8c79f95ff4672fabb53acd22685c17bb
 SHA1 (patch-af) = fcf66c887f9513d812c01ff314669959f94ed7b3
+SHA1 (patch-llong.h) = 350158693991dc3fca440f5fee4bcda8398c80e9



Home | Main Index | Thread Index | Old Index