more backup messages
[tridge/comp8440.git] / lab2.php
1 <?php
2 include "8440head.php";
3 ?>
4
5
6
7 <center>
8 <h1>
9 <font color="#931515" size="+3">COMP8440: Lab2 - choice of 5</font>
10 </h1>
11 </center>
12
13 The aim of this lab is similar to the previous 'a2ps' lab, but you
14 will have a choice of 5 projects to investigate. The idea is to expose
15 you to a wider range of common FOSS project ideas.
16
17 <p>In this lab you will also need to create a patch against your
18 chosen project, and submit that patch to the <a
19 href="mailto:comp8440@dubhe.anu.edu.au">comp8440@dubhe.anu.edu.au</a>
20 mailing list. Then you should look for another students patch
21 submission for the same project apply their patch, and send back a
22 reply to them commenting on their patch.
23
24 <p>The 5 projects are:
25
26 <ul>
27 <li>FreeCIV
28 <li>gedit
29 <li>Battle for Wesnoth
30 <li>Stellarium
31 <li>OpenOffice.org
32 </ul>
33
34 The level of difficulty in building these projects varies quite a
35 lot. As a rough guide, the above list is approximately in order of
36 difficulty, with FreeCIV being the easiest and OpenOffice.org the
37 hardest. In order to maximize exposure of each students to as many
38 projects as possible, when a student runs into difficulties we will
39 often display their screen on the projector so we can discuss the
40 problem as a class, and try to come to a solution together.<p>
41
42 The level of difficulty is also heavily dependent on what method you
43 use to fetch the source code. If you are very inexperienced with
44 building FOSS packages, then the easiest approach will be to use the
45 package manager to download the sources. If you are more experienced,
46 then you should try to build the project using the latest development
47 version (downloaded using a source code management system).<p>
48
49 <h3>Helping other students</h3>
50
51 Cooperation between developers is one of the cornerstones of FOSS
52 development. So please help out your fellow students if they are stuck
53 and you know what the problem is. If you think the problem is of wider
54 interest, then ask Bob or Andrew to display the students screen on the
55 projector.
56
57 <h3>Faster download</h3>
58
59 Some of the above project are very large, and downloading the source
60 code using a SCMS may take too long for this lab. For that reason we
61 have put a snapshot of some of the project trees in
62 /comp8440/sources. See the <a href="building.php">build tips</a> page
63 for more information.
64
65 <h3>Things to think about</h3>
66
67 Here are some things to work out about the project you are building
68
69 <ul>
70 <li>How active is development? How many people have contributed
71 changes in the last year?
72 <li>What method does the project use to customise itself to your
73 system?
74 <li>How is the documentation for the project written?
75 <li>How does the project handle releases? Does it use branches?
76 <li>How does the project fit in with other projects? What does it
77 depend on?
78 <li>How do the developers for the project communicate?
79 <li>How do you submit changes to the project?
80 </ul>
81
82 <h3>Patch submission</h3>
83
84 Once you have successfully built the project, you should generate a
85 patch against it, and submit that patch to the comp8440 mailing list.
86
87 <p>To generate a patch, first make a code change of some sort. It is
88 not necessary for this to be a serious or substantial code change -
89 any small change will do for the purposes of this lab.
90
91 <p>Once you have made the change, you will need to generate the
92 patch. You can either use the 'diff' tool, or you can use the builtin
93 patch generation in a source code management tool if you used one to
94 download the package. 
95
96 <p>Your patch submission should meet the following criterion:
97
98 <ul>
99 <li>You must have tested that your change works
100 <li>It should be in diff -up format
101 <li>The patch should be inline in the email, not sent as an attachment
102 <li>It should contain the diffstat output at the front
103 <li>It should contain an explanation of your changes
104 <li>It should have a clear subject, prefixed with "[PATCH]"
105 <li>It should say "Signed-off-by: YOUR EMAIL"
106 </ul>
107
108 If you want to see some examples of patches, you might like to look at
109 the <a href="http://marc.info/?l=linux-kernel">Linux kernel mailing
110 list</a>, for messages starting with "[PATCH]"
111
112 <h3>Patch acceptance</h3>
113
114 After submitting a patch, wait for someone else in the lab to submit a
115 different patch for the same project. You should then examine their
116 patch, and try to apply it to your copy of the project. You will need
117 to use the 'patch' tool to do that. 
118
119 <p>A typical patch command would be:
120 <pre><b>
121   patch -p1 < somepatch.patch 
122 </b></pre>
123
124 <p>After examining and testing their patch, you should either accept
125 it or reject it by sending a reply to the person submitting the
126 patch. You should make sure your reply is CCd to the mailing list. In
127 your reply you should explain your acceptance or rejection of the
128 patch. If you reject their patch, then you should watch for a further
129 email from them fixing whatever problems you identified in their
130 patch. If the patch is now acceptable, you can reply saying that you
131 accept their patch.
132
133 <h3>Lab continuation</h3>
134
135 Don't worry if you don't complete the work for this lab in the time
136 alotted. You can continue with this lab during the next lab session if
137 need be.
138
139 <h3>SCM Tips</h3>
140
141 You may find some of the tips on the <a href="scm-tips.php">SCM
142 Tips</a> page useful for this lab.
143
144 <h1>MAKE SURE YOU BACKUP</h1>
145
146 Make sure you do a backup at the end of the lab, or you may lose all
147 your work.
148
149 <p><div align="center">
150   <?php
151     print " Last modified: ";
152     $last_modified = getlastmod();
153     print(date("j/m/Y, H:i", $last_modified));
154   ?>
155 </div><p>
156
157 <?php
158 include "8440tail.php";
159 ?>
160
161
162