From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.devel Subject: Re: Emacs OSX : package disk image too small Date: Mon, 28 Apr 2003 10:24:45 -0600 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20030423151047.81764.qmail@web13907.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1051548233 27637 80.91.224.249 (28 Apr 2003 16:43:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2003 16:43:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 28 18:43:49 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ABjJ-0007BK-00 for ; Mon, 28 Apr 2003 18:43:49 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19ABrY-00064D-00 for ; Mon, 28 Apr 2003 18:52:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ABfK-0003gY-01 for emacs-devel@quimby.gnus.org; Mon, 28 Apr 2003 12:39:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ABe2-00039k-00 for emacs-devel@gnu.org; Mon, 28 Apr 2003 12:38:22 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ABd1-0002fx-00 for emacs-devel@gnu.org; Mon, 28 Apr 2003 12:37:20 -0400 Original-Received: from shawidc-mo1.cg.shawcable.net ([24.71.223.10] helo=pd5mo1so.prod.shaw.ca) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ABVN-0000pC-00 for emacs-devel@gnu.org; Mon, 28 Apr 2003 12:29:26 -0400 Original-Received: from pd6mr2so.prod.shaw.ca (pd6mr2so-qfe3.prod.shaw.ca [10.0.141.217]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HE2004HTAXLBZ@l-daemon> for emacs-devel@gnu.org; Mon, 28 Apr 2003 10:24:57 -0600 (MDT) Original-Received: from pn2ml9so.prod.shaw.ca (pn2ml9so-qfe0.prod.shaw.ca [10.0.121.7]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0HE20029CAXL9R@l-daemon> for emacs-devel@gnu.org; Mon, 28 Apr 2003 10:24:57 -0600 (MDT) Original-Received: from owlbear.local.shawmail (h68-144-207-94.cg.shawcable.net [68.144.207.94]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0HE2009Y9AXK32@l-daemon> for emacs-devel@gnu.org; Mon, 28 Apr 2003 10:24:57 -0600 (MDT) In-reply-to: <20030423151047.81764.qmail@web13907.mail.yahoo.com> Original-To: Sebastien Kirche User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 38 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13515 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13515 Sebastien Kirche writes: > Here is the end of a "make-package --self-contained" > compilation on my 10.2.5 system, > it seems that the make-package script builds a too > small disk image file... > the line 390 of the script is concerned : > sectorsAlloced=`echo 2*${compressedSize}+20|bc` > i tried to replace the 2 times multiplier by a 3 with > success, but that value should be fine tuned, as we > get a 37 MB file instead of 25 MB... [...] Multiplying by 3 is too much and unwarranted. The following patch multiplies by 2.1, to provide an extra 5% for use by directories and partition tables on the disk image, and removes the additional `20' sectors. It has been checked it. Index: make-package =================================================================== RCS file: /cvs/emacs/mac/make-package,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- make-package 5 Apr 2003 03:11:36 -0000 1.18 +++ make-package 28 Apr 2003 16:15:35 -0000 1.19 @@ -385,9 +385,9 @@ cat ${sizesfile} echo "Creating Disc Image" -## Allocate an extra 5000 sectors (about 2.5 mg) -## Note a sector appears to be 512k -sectorsAlloced=`echo 2*${compressedSize}+20|bc` +## From hdiutil man page, a sector is 512k. Allocate an extra 5% for +## directories and partition tables. +sectorsAlloced=`echo 2.1*${compressedSize}|bc` hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced} ## Need to format the disc image before mounting mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1`