all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs OSX : package disk image too small
@ 2003-04-23 15:10 Sebastien Kirche
  2003-04-28 16:24 ` Andrew Choi
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Kirche @ 2003-04-23 15:10 UTC (permalink / raw)


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...

-begin
log-----------------------------------------------------------
chmod -R a+r
/Users/seki/Projets/cvsemacs/mac/make-package.tmp.8035//Applications/Emacs.app/Contents/Resources/share/emacs/21.3.50/leim
cd lib-src; make maybe-blessmail  \
  MAKE='make'
archlibdir='/Users/seki/Projets/cvsemacs/mac/make-package.tmp.8035//Applications/Emacs.app/Contents/Resources/libexec/emacs/21.3.50/powerpc-apple-darwin6.5'
make[1]: Nothing to be done for `maybe-blessmail'.
Creating Emacs.app application
Creating Package Info file
Creating pax file
Compressing pax file
Creating bom file
Generating sizes file
NumFiles     2383 
InstalledSize 93928
CompressedSize 25480
Creating Disc Image
...................................................................................................................................
created: EmacsRW.dmg
Initialized /dev/rdisk1s2 as a 25 MB HFS Plus volume
hdiutil: detach: "disk1s1" detached successfully.
hdiutil: detach: "disk1s2" detached successfully.
hdiutil: detach: "disk1" detached successfully.
Copying Package to Disc Image
/dev/disk1              Apple_partition_scheme        

/dev/disk1s1            Apple_partition_map           

/dev/disk1s2            Apple_HFS                     
 /Volumes/Emacs
cp: writing
`/Volumes/Emacs/Emacs.pkg/Contents/Resources/Emacs.pax.gz':
No space left on device
cp: cannot create regular file
`/Volumes/Emacs/Emacs.pkg/Contents/Resources/Emacs.sizes':
No space left on device
cp: cannot create directory
`/Volumes/Emacs/Emacs.pkg/Contents/Resources/English.lproj':
No space left on device
cp: cannot create regular file
`/Volumes/Emacs/Emacs.pkg/Contents/Resources/License.txt':
No space left on device
cp: cannot create regular file
`/Volumes/Emacs/Emacs.pkg/Contents/Resources/ReadMe.txt':
No space left on device
Converting Disc Image to read-only
hdiutil: detach: "disk1s1" detached successfully.
hdiutil: detach: "disk1s2" detached successfully.
hdiutil: detach: "disk1" detached successfully.
Preparing imaging engine...
Reading DDM...
   (CRC32 $013B18D7: DDM)
Reading Apple_partition_map (0)...
   (CRC32 $F58C4DD2: Apple_partition_map (0))
Reading Apple_HFS (1)...
..................................................................................................................................
   (CRC32 $7EB14F9A: Apple_HFS (1))
Reading Apple_Free (2)...
...................................................................................................................................
   (CRC32 $00000000: Apple_Free (2))
Terminating imaging engine...
Adding resources...
...................................................................................................................................
Elapsed Time:  4.180s
 (1 task, weight 100)
File size: 26092032 bytes, Checksum: CRC32 $7BF870C2
Sectors processed: 50980, 50961 copied
Speed: 6.0Mbytes/sec
Savings: 0.0%
created: EmacsInstaller.dmg
Cleaning up the staging directory
-end
log-----------------------------------------------------------


Best regards,
Sebastien Kirche



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs OSX : package disk image too small
  2003-04-23 15:10 Emacs OSX : package disk image too small Sebastien Kirche
@ 2003-04-28 16:24 ` Andrew Choi
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Choi @ 2003-04-28 16:24 UTC (permalink / raw)
  Cc: emacs-devel

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`

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-28 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 15:10 Emacs OSX : package disk image too small Sebastien Kirche
2003-04-28 16:24 ` Andrew Choi

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.