Home

Awesome

Pharo Bootstrap

This repository contains the code required to bootstrap a new Pharo environment. This bootstrap takes as input a Pharo source code repository and outputs:

Dependencies

This bootstrap runs on top of Pharo 10.0. It can however produce images for older formats (a feature that is however not so exploited). All other dependencies (Espell, Hermes) are loaded by the baseline automatically.

Installation

Just download this repository and load the baseline in a new image. The easiest way to do it is as follows

$ wget -O - get.pharo.org/100+vm | bash
$ ./pharo Pharo.image eval "
Metacello new 
	baseline: 'BootstrapProcess';
	repository: 'tonel://.';
	load.

Smalltalk snapshot: true andQuit: true."

Running the bootstrap

Run the bootstrap by calling the specialized Spur bootstrap class. This will generate a Spur image for the corresponding 32 or 64 bit architecture.

versionInfo := (PBVersionInfo fromLongGitDescribe: 'Pharo10.0-aaaddb-aaaa-vbb')
		buildNumber: 42;
		yourself.
		 
		
(PBBootstrap for64Bits
		versionInfo: versionInfo;
		repositoryLocation: '../pharo-local/iceberg/pharo-project/pharo' asFileReference;
		imageName: 'bootstrap.image';
		yourself) bootstrap