author | Norm Jacobs <Norm.Jacobs@Sun.COM> |
Wed, 21 Jul 2010 12:42:04 -0500 | |
changeset 28 | b1e1ec9707cd |
parent 26 | 8a9f4e791832 |
child 38 | cd00ea74156e |
permissions | -rw-r--r-- |
2 | 1 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
2 |
Getting started with the Userland Consolidation |
2 | 3 |
|
4 |
||
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
5 |
Building the bits |
2 | 6 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
7 |
The Userland consolidation maintains a Mercurial gate at |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
8 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
9 |
ssh://[email protected]//hg/userland/gate |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
10 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
11 |
This gate contains build recipies, patches, IPS manifests, etc. necessary |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
12 |
to download, prep, build, test, package and publish open source software. |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
13 |
In order to build the contents of the Userland gate, you need to clone it. |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
14 |
Since you are reading this, you probably already have, but in any event |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
15 |
you can do so with the following command |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
16 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
17 |
$ hg clone ssh://[email protected]//hg/userland/gate /scratch/clone |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
18 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
19 |
In order to build the bits either individually or collectively, you must |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
20 |
set the WS_TOP environment variable to point to the top of your workspace. |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
21 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
22 |
$ export WS_TOP=/scratch/clone |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
23 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
24 |
To build and publish the entire contents of the gate, you can use |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
25 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
26 |
$ cd /scratch/clone |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
27 |
$ gmake publish |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
28 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
29 |
To build and publish a specific component you need to initialize the |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
30 |
workspace by building the tools and creating a repository to publish |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
31 |
your results in. The easiest way to do this is to |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
32 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
33 |
$ cd /scratch/clone |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
34 |
$ gmake setup |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
35 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
36 |
Once you have initialize the the workspace, you can build individual |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
37 |
components by |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
38 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
39 |
$ cd /scratch/clone/components/(component) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
40 |
$ gmake publish |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
41 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
42 |
All of the bits are are built will be published to the repository created |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
43 |
by the setup step (file:///scratch/clone/repo/) If you build the entire |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
44 |
contents of the gate, individual build logs for each component will be |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
45 |
located at /scratch/clone/logs/(target):(component).log |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
46 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
47 |