[Top][All Lists]

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

Re: Emacs OSX : package disk image too small

From: Andrew Choi
Subject: Re: Emacs OSX : package disk image too small
Date: Mon, 28 Apr 2003 10:24:45 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Sebastien Kirche <address@hidden> 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`

reply via email to

[Prev in Thread] Current Thread [Next in Thread]