rakudo / star

Rakudo Star (Raku distribution)
https://rakudo.org/
Artistic License 2.0
266 stars 41 forks source link

Mac DMG doesn't build on newer versions of OS X than 10.11 #123

Closed stmuk closed 5 years ago

stmuk commented 5 years ago

Log of successful build on 10.11


> diskutil eject /Volumes/Rakudo
Disk /Volumes/Rakudo ejected
> hdiutil create  'temp' -ov -size 92308k -fs HFS+ -volname 'Rakudo' -attach
...................................................................................
/dev/disk2              GUID_partition_scheme           
/dev/disk2s1            Apple_HFS                       /Volumes/Rakudo
created: /Users/steve/temp/rakudo-star-2018.10/ports/darwin_dmg/Temp_build/temp.dmg
Copying Rakudo files
> CpMac -r '/Applications/Rakudo'    '/Volumes/Rakudo'
> cp ../HOW_TO_INSTALL.txt  '/Volumes/Rakudo/README.txt'
> cp -pr ../../../docs  '/Volumes/Rakudo/Docs'
' touch                        '/Volumes/Rakudo/Rakudo/Icon
> cp ../2000px-Camelia.svg.icns /Volumes/Rakudo/.VolumeIcon.icns
> sips -i                       /Volumes/Rakudo/.VolumeIcon.icns
/Volumes/Rakudo/.VolumeIcon.icns
  /Volumes/Rakudo/.VolumeIcon.icns
> DeRez -only icns              /Volumes/Rakudo/.VolumeIcon.icns > tempicns.rsrc
> Rez -append tempicns.rsrc -o '/Volumes/Rakudo/Rakudo/bin/perl6'
> mkdir                        /Volumes/Rakudo/.background
> cp ../installerbg.png        /Volumes/Rakudo/.background
> SetFile -c icnC              '/Volumes/Rakudo/.VolumeIcon.icns'
> SetFile -a C                 '/Volumes/Rakudo'
> SetFile -a C                 '/Volumes/Rakudo/Rakudo'
> SetFile -a C                 '/Volumes/Rakudo/Rakudo/bin/perl6'
' SetFile -a V                 '/Volumes/Rakudo/Rakudo/Icon
> rm tempicns.rsrc
>>> Adjusting sizes and positions in installation window
> osascript ../adjust_installation_window.scpt
>>> Waiting on .DS_STORE to be written
>>> Compressing
> diskutil eject /Volumes/Rakudo
Disk /Volumes/Rakudo ejected
> hdiutil convert 'temp.dmg' -format UDBZ -o 'rakudo-star-2018.10'
Preparing imaging engine…
Reading Protective Master Boot Record (MBR : 0)…
   (CRC32 $16D6C881: Protective Master Boot Record (MBR : 0))
Reading GPT Header (Primary GPT Header : 1)…
   (CRC32 $C9F83DFC: GPT Header (Primary GPT Header : 1))
Reading GPT Partition Data (Primary GPT Table : 2)…
   (CRC32 $42957983: GPT Partition Data (Primary GPT Table : 2))
Reading  (Apple_Free : 3)…
   (CRC32 $00000000:  (Apple_Free : 3))
Reading disk image (Apple_HFS : 4)…
..................................................................................
   (CRC32 $84A37AD7: disk image (Apple_HFS : 4))
Reading  (Apple_Free : 5)…
..................................................................................
   (CRC32 $00000000:  (Apple_Free : 5))
Reading GPT Partition Data (Backup GPT Table : 6)…
..................................................................................
   (CRC32 $42957983: GPT Partition Data (Backup GPT Table : 6))
Reading GPT Header (Backup GPT Header : 7)…
...................................................................................
   (CRC32 $BA1AE2A2: GPT Header (Backup GPT Header : 7))
Adding resources…
...................................................................................
Elapsed Time:  5.803s
File size: 21269933 bytes, Checksum: CRC32 $D2CE1C44
Sectors processed: 184616, 167396 compressed
Speed: 14.1Mbytes/sec
Savings: 77.5%
created: /Users/steve/temp/rakudo-star-2018.10/ports/darwin_dmg/Temp_build/rakudo-star-2018.10.dmg
>>> Adding click-thru license and auto-open
> hdiutil unflatten                 'rakudo-star-2018.10.dmg'
hdiutil: unflatten: unflattening "rakudo-star-2018.10.dmg"...
> hdiutil flatten                   'rakudo-star-2018.10.dmg'
hdiutil: flatten: flattening "rakudo-star-2018.10.dmg"...
steve@tau:~/temp/rakudo-star-2018.10/ports/darwin_dmg 
$ 
lizmat commented 5 years ago

Do we have an error log for 10.11+ ?

virtualsue commented 5 years ago

This issue can be assigned to me if desired.

lizmat commented 5 years ago

That would be very nice, thank you.

virtualsue commented 5 years ago

The procedure used in ports/darwin_dmg/package_darwin_dmg.pl to make a dmg file has succumbed to changes in Apple APIs over time. I think most of it works, despite widespread deprecation of the utilities involved. Having a look at how this can be ameliorated/fixed.

In case anyone wonders, Rakudo Star dmg files are being built using a macbook of mine that has been left on OS X 10.11 for this purpose.

buildlog.txt

lizmat commented 5 years ago

Cool. FWIW, I've tried to assign this issue to you, but for some reason you're not in the list of people to assign to, even though you have committed to this repo in the past. Go figure.

clarkema commented 5 years ago

I've got DMG building working on macOS 10.14 (see PR #126) but since I haven't committed anything before I'd appreciate a quick sanity check from someone more experienced!

clarkema commented 5 years ago

Merged PR #126 which adds a Swift helper to set the appropriate images in the DMG. With this in place I can now build DMGs using my MBP running 10.14.1, so I think that means @virtualsue's Macbook can now be released from duty!