Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) by www.NetBSD.org (Postfix) with ESMTP id 64CA463B85F for ; Thu, 9 Aug 2012 18:07:39 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 3ECA314A356; Thu, 9 Aug 2012 18:07:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BAC3014A354 for ; Thu, 9 Aug 2012 18:07:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Ivv_r61INQNc for ; Thu, 9 Aug 2012 18:07:36 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 0178D14A350 for ; Thu, 9 Aug 2012 18:07:35 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id C9FC3175DD; Thu, 9 Aug 2012 18:07:35 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Thu, 9 Aug 2012 18:07:35 +0000 From: "Matthias Scheler" Subject: CVS commit: [pkgsrc-2012Q2] pkgsrc/sysutils/mtools To: pkgsrc-changes@NetBSD.org Reply-To: tron@netbsd.org X-Mailer: log_accum Message-Id: <20120809180735.C9FC3175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: tron Date: Thu Aug 9 18:07:35 UTC 2012 Modified Files: pkgsrc/sysutils/mtools [pkgsrc-2012Q2]: Makefile distinfo Log Message: Pullup ticket #3891 - requested by is sysutils/mtools: bug fix patch Revisions pulled up: - sysutils/mtools/Makefile 1.50 - sysutils/mtools/distinfo 1.18 --- Module Name: pkgsrc Committed By: is Date: Wed Aug 8 08:46:27 UTC 2012 Modified Files: pkgsrc/sysutils/mtools: Makefile distinfo Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.49.4.1 pkgsrc/sysutils/mtools/Makefile cvs rdiff -u -r1.17 -r1.17.4.1 pkgsrc/sysutils/mtools/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.