File: 1-4.html

package info (click to toggle)
fcm 2021.05.01-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,788 kB
  • sloc: perl: 26,014; sh: 10,510; javascript: 4,043; f90: 774; python: 294; ansic: 29; makefile: 14; cpp: 5
file content (399 lines) | stat: -rw-r--r-- 14,731 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<!DOCTYPE html>
<html>
<head>
  <title>FCM 1.4 Release Notes</title>
  <meta name="author" content="FCM team" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="icon" href="../etc/fcm-icon.png" type="image/png" />
  <link rel="shortcut icon" href="../etc/fcm-icon.png" type="image/png" />
  <link href="../etc/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
  <link href="../etc/fcm.css" rel="stylesheet" media="screen" />
</head>
<body>
  <div class="navbar navbar-inverse">
    <div class="container-fluid">
      <div class="navbar-header">
        <a class="navbar-brand" href=".."><span class="fcm-version">FCM</span></a>
      </div>
      <div class="collapse navbar-collapse">
        <ul class="nav navbar-nav">
          <li><a href="../installation/">Installation</a></li>

          <li><a href="../user_guide/">User Guide</a></li>
        </ul>
      </div>
    </div>
  </div>

  <div class="page-header">
    <div class="fcm-page-content pull-right well well-sm"></div>
    <h1>FCM 1.4 Release Notes <small>12 February 2009</small></h1>
  </div>

  <div class="container">
  <div class="row">
  <div class="col-md-12">

  <p>These are the release notes for FCM release 1.4. You can use this release
  of FCM freely under the terms of the FCM LICENSE, which you should receive
  with the distribution of this release.</p>

  <p>Note that FCM 1.4 requires Subversion 1.4.x (but it has not been tested on
  Subversion 1.5.x or above).</p>

  <p>FCM is maintained by the FCM team at the Met Office. Please feedback any
  bug reports or feature requests to us by <a href=
  "mailto:fcm-team@metoffice.gov.uk">e-mail</a>.</p>

  <h2 id="fix">Minor enhancements &amp; Bug Fixes</h2>

  <p>Build:</p>

  <ul>
    <li>Fixed: ensure consistent behaviour for specifying <code>-D</code>,
    <code>-I</code>, etc options for a preprocessor/compiler.</li>
  </ul>

  <p>Code management commands:</p>

  <ul>
    <li>Fixed: <code>fcm mkpatch</code>: Fix how property changes are
    handled.</li>

    <li>Fixed: <code>fcm mkpatch</code>: Fix how copied files and directories
    are handled.</li>

    <li>Fixed: <code>fcm mkpatch</code>: Prevent failures caused by the use of
    Subversion keywords.</li>

    <li>Fixed: <code>fcm mkpatch</code>: Prevent failures when used with
    branches which do not follow the FCM naming convention.</li>
  </ul>

  <p>Extract:</p>

  <ul>
    <li>Allow extract config to define an alternate remote shell for
    <code>rsync</code>.</li>
  </ul>

  <p>General:</p>

  <ul>
    <li>Some of the example scripts in the <samp>templates/</samp> directory
    have been rewritten.</li>

    <li>Various other very minor enhancements and bug fixes.</li>
  </ul>

  <h2 id="issues">Known Issues</h2>

  <p>The following are known issues with this release of FCM which we plan to
  address in later releases:</p>

  <ul>
    <li>FCM build does not handle changes in an include file correctly in an
    inherited build if the include file resides in the same directory as the
    source file including it, and the source file remains unchanged. This is
    due to the fact that most pre-processor/compiler commands search the
    directory containing the source file for include files first before they
    search elsewhere.</li>
  </ul>

  <h2 id="req">System Requirements</h2>

  <h3 id="req_perl">Perl</h3>

  <p>The core part of FCM is a set of Perl scripts and modules. For the build
  system to work, you need the following modules installed:</p>

  <ul>
    <li>Carp</li>

    <li>Cwd</li>

    <li>File::Basename</li>

    <li>File::Compare</li>

    <li>File::Find</li>

    <li>File::Path</li>

    <li>File::Spec::Functions</li>

    <li>File::Spec</li>

    <li>FindBin</li>

    <li>Getopt::Long</li>

    <li>POSIX</li>
  </ul>

  <p>The code management commands and extract system need the following
  additional modules installed:</p>

  <ul>
    <li>File::Temp</li>

    <li>Getopt::Long</li>

    <li>HTTP::Date</li>

    <li>XML::DOM</li>
  </ul>

  <p>To use the simple GUI for some of the code management commands, you also
  need the following modules:</p>

  <ul>
    <li>Tk::ROText</li>

    <li>Tk</li>
  </ul>

  <p>At the Met Office we are currently using the complete FCM system with Perl
  5.8.x. In addition the build system is being used with Perl 5.6.x.</p>

  <h3 id="req_svn">Subversion</h3>

  <p>To use the code management commands (and relevant parts of the extract
  system) you need to have <a href=
  "http://subversion.tigris.org/">Subversion</a> installed.</p>

  <ul>
    <li>FCM makes extensive use of peg revisions in both the code management
    and extract systems. This requires Subversion 1.4.0.</li>

    <li>At the Met Office we are currently using Subversion 1.4.3.</li>
  </ul>

  <p>Note that the extract system can mirror extracted code to a remote
  platform for building. Therefore it is only necessary to have Subversion
  installed on the platform where you do your code development. If you use
  other platforms purely for building and running then you do not need to have
  Subversion installed on these platforms.</p>

  <h3 id="req_trac">Trac</h3>

  <p>The use of <a href="http://trac.edgewall.org/">Trac</a> is entirely
  optional (although highly recommended if you are using Subversion).</p>

  <ul>
    <li>The <code>--trac</code> and <code>--wiki</code> options to the
    <code>fcm diff --branch</code> command allow you to view branch differences
    using Trac. This requires Trac 0.10.</li>

    <li>Some of the example scripts in the <samp>templates/</samp> directory
    require Trac 0.11.</li>

    <li>At the Met Office we are currently using Trac 0.11.2.1.</li>
  </ul>

  <h3 id="req_other">Other Requirements</h3>

  <p>The <code>fcm conflicts</code> command requires <a href=
  "http://furius.ca/xxdiff/">xxdiff</a>. At the Met Office we are currently
  using version 3.1. The <code>fcm diff --graphical</code> command also uses
  xxdiff by default although other graphical diff tools can also be used.</p>

  <p>The extract system can use diff3, which is part of <a href=
  "http://www.gnu.org/software/diffutils/">GNU diffutils</a>, to merge together
  changes where the same file is modified by two different branches (compared
  with the base branch). At the Met Office we are currently using version
  2.8.1.</p>

  <p>The build system requires <a href=
  "http://www.gnu.org/software/make/make.html">GNU make</a>. At the Met Office
  we are currently using version 3.79.x and 3.80.</p>

  <p>Optionally, the build system can use <a href=
  "http://www.ifremer.fr/ditigo/molagnon/fortran90/">f90aib</a> to generate
  interface files. However, there is also a built in Perl based interface file
  generator which is quicker and better in most cases so you are unlikely to
  need f90aib unless you hit a problem with some particular code.</p>

  <p>FCM is intended to run on a Unix/Linux system. It is currently used at the
  Met Office on Linux (Red Hat Enterprise 2.1 and 4.6) and HP-UX 11.00.</p>

  <h2 id="ins">Installation</h2>

  <p>FCM is distributed in the form of a compressed tar file. Un-pack the tar
  file into an appropriate location on your system. Then add the
  <samp>bin/</samp> directory into your <var>PATH</var>. Once you have done
  this you should now have full access to the FCM system, assuming that you
  have met the requirements described in the previous section.</p>

  <p>If you wish to define keywords for your systems you will need to create a
  file <samp>etc/fcm.cfg</samp>. An example file, <samp>fcm.cfg.eg</samp>, is
  provided which is a copy of the file currently used at the Met Office. For
  further details please refer to the section <a href=
  "../user_guide/system_admin.html#fcm-keywords">FCM keywords</a> in the System
  Admin chapter of the User Guide.</p>

  <p>The <samp>doc/</samp> directory contains all the system documentation.</p>

  <ul>
    <li><samp>doc/release_notes/</samp> contains these release notes. It also
    contains the release notes for all previous versions which may be useful if
    you have skipped any versions.</li>

    <li><samp>doc/user_guide/</samp> contains the <a href="../user_guide/">FCM
    User Guide</a>.</li>

    <li><samp>doc/design/</samp> contains the <a href="../design/">FCM Detailed
    Design</a> document (currently in draft form).</li>

    <li><samp>doc/standards/</samp> contains the FCM <a href=
    "../standards/perl_standard.html">Perl</a> and <a href=
    "../standards/fortran_standard.html">Fortran</a> coding standards. The Perl
    standard describes the standards followed by the FCM code. The Fortran
    standard contains some <a href=
    "../standards/fortran_standard.html#fcm">specific advice</a> on the best
    way of writing Fortran code for use with FCM as well as more general advice
    on good practise.</li>

    <li><samp>doc/collaboration/</samp> contains the <a href=
    "../collaboration/index.html">External Distribution &amp; Collaboration for
    FCM Projects</a> document which discusses how projects configured under FCM
    can be distributed externally.</li>
  </ul>

  <p>The <samp>tutorial/</samp> directory contains the files necessary to set
  up a tutorial repository. This will allow you to follow the <a href=
  "../user_guide/getting_started.html#tutorial">tutorial section</a> in the
  User Guide.</p>

  <ul>
    <li>The file <samp>tutorial/svn.dump</samp> should be loaded into an empty
    repository using the <code>svnadmin load</code> command.</li>

    <li>The hook scripts in <samp>tutorial/hooks/</samp> should then be
    installed in this repository in order to prevent any commits to the trunk.
    Note that the configuration file <code>svnperms.conf</code> assumes that
    the tutorial repository is called <samp>tutorial_svn</samp>. Please edit
    this file if you use a different name.</li>

    <li>The repository should be configured to allow users write access. You
    may find it easiest to simply allow anonymous access.</li>

    <li>A Trac system should be configured associated with the Tutorial
    repository. You then need to allow users write access. You may find it
    easiest to set up a number of guest accounts for this purpose.</li>
  </ul>

  <p>The <samp>templates/</samp> directory contains various example scripts
  which you may find useful. Note that these scripts are all specific to the
  Met Office and may contain hard coded paths and email addresses. They are
  provided in the hope that you may find them useful as templates for setting
  up similar scripts of your own. However, they should only be used after
  careful review to adapt them to your environment. The contents are as
  follows:</p>

  <dl>
    <dt>templates/hooks/pre-commit</dt>

    <dd>
      This script restricts write-access to the repository by checking the
      following:

      <ul>
        <li>It executes the Subversion utility <code>svnperms.py</code> if it,
        and the associated <samp>svnperms.conf</samp> file, exist. This utility
        checks whether the author of the current transaction has enough
        permission to write to particular paths in the repository.</li>

        <li>It checks the disk space required by the current transaction. It
        fails the commit if it requires more than 5Mb of disk space.</li>
      </ul>
    </dd>

    <dt>templates/hooks/post-commit</dt>

    <dd>A simple post-commit hook script which runs the script
    <code>post-commit-background</code> in the background.</dd>

    <dt>templates/hooks/post-commit-background</dt>

    <dd>
      This script runs in the background after each commit

      <ul>
        <li>It updates a <samp>&lt;repos&gt;.latest</samp> file with the latest
        revision number.</li>

        <li>It creates a dump of the new revision.</li>

        <li>It calls the script <code>background_updates.pl</code> if it
        exists.</li>
      </ul>This script is installed as standard in all our repositories.
    </dd>

    <dt>templates/hooks/background_updates.pl</dt>

    <dd>An example of how you may want to set up a
    <code>background_updates.pl</code> script to perform post-commit tasks for
    a specific repository. This script uses a lock file to prevent multiple
    commits in quick succession from causing problems.</dd>

    <dt>templates/hooks/pre-revprop-change</dt>

    <dd>A simple pre-revprop-change hook script which runs the script
    <code>pre-revprop-change.pl</code>.</dd>

    <dt>templates/hooks/pre-revprop-change.pl</dt>

    <dd>If a user attempts to modify the log message of a changeset and he/she
    is not the original author of the changeset, this script will e-mail the
    original author. You can also set up a watch facility to monitor changes of
    log messages that affect particular paths in the repository. For further
    details please refer to the section <a href=
    "../user_guide/system_admin.html#svn_watch">Watching changes in log
    messages</a> in the System Admin chapter of the User Guide.</dd>

    <dt>templates/hooks/post-revprop-change</dt>

    <dd>A simple post-revprop-change hook script which invokes the
    <code>trac-admin</code> command to <code>resync</code> the revision
    property cache stored in the corresponding Trac environment.</dd>

    <dt>templates/utils/cron_template.sh</dt>

    <dd>An example of how you might set up a cron job to make use of the
    <samp>&lt;repos&gt;.latest</samp> file.</dd>

    <dt>templates/utils/FCM/Admin/</dt>

    <dd>A Perl library in the <code>FCM::Admin::*</code> name space, which
    implements the functionalities of the FCM admin utility commands.</dd>

    <dt>templates/utils/fcm-*</dt>

    <dd>A selection of useful FCM admin utility commands.</dd>
  </dl>

  </div>
  </div>
  </div>

  <hr/>
  <div class="container-fluid text-center">
    <div class="row"><div class="col-md-12">
    <address><small>
      Copyright &copy; 2006-2021 British Crown (Met Office) &amp; Contributors.
      <a href="http://www.metoffice.gov.uk">Met Office</a>.
      See <a href="../etc/fcm-terms-of-use.html">Terms of Use</a>.<br />
      This document is released under the British <a href=
      "http://www.nationalarchives.gov.uk/doc/open-government-licence/" rel=
      "license">Open Government Licence</a>.<br />
    </small></address>
    </div></div>
  </div>

  <script type="text/javascript" src="../etc/jquery.min.js"></script>
  <script type="text/javascript" src="../etc/bootstrap/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="../etc/fcm.js"></script>
  <script type="text/javascript" src="../etc/fcm-version.js"></script>
</body>
</html>