From: Andrew Choi <akochoi@shaw.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs OSX : package disk image too small
Date: Mon, 28 Apr 2003 10:24:45 -0600 [thread overview]
Message-ID: <m24r4iy4he.fsf@owlbear.local> (raw)
In-Reply-To: <20030423151047.81764.qmail@web13907.mail.yahoo.com>
Sebastien Kirche <sekki@yahoo.com> 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`
prev parent reply other threads:[~2003-04-28 16:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-23 15:10 Emacs OSX : package disk image too small Sebastien Kirche
2003-04-28 16:24 ` Andrew Choi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m24r4iy4he.fsf@owlbear.local \
--to=akochoi@shaw.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).