November 23, 2004
CPAN Style Packaging - Building of S4PM using the CPAN style of packaging is now
different in version 5.4.0. The new method for installing requires
a separate installation for each automounted platform (IRIX,
Solaris, and Linux).
The new procedure is to log onto a box for each platform and
perform the installation as follows:
perl Makefile.PL PREFIX=/tools/gdaac/ CC=gcc LD=gcc
The above steps are automated by running a script named: inst
The machines for each platform are g0spp12 for Linux, g0ais01 for
Solaris, and g0spg01 for IRIX.
- New Installed Code Location - The location of installed code has also changed to more closely
follow community standards:
Perl scripts are now found in /tools/gdaac//bin
Configuration file (templates) are now found in
S4P modules are now found in /tools/gdaac//lib/site_perl/5.8.5/
S4PM modules are now found in
Modifications to .mycshrc - The .mycshrc file in the home directory of s4pmops, s4pmts1, and
s4pmts2 have been modified to capture environment changes such as
- S4PM and Perl 5.8.5 - S4PM 5.4.0 has been tested with Perl 5.8.5 and depends on that
version of Perl on all platforms.
Detailed File Changes
Several significant changes have been made to the underlying code
that should be invisible to the user at runtime. Most of these
have been driven by the Public Release of S4PM code.
All scripts using either S4P.pm or S4PM.pm modules were modified
fr the CPAN style of building. As part of this, references to
packages needed to be modified. For example, 'use' statements were
modified throughout as:
were changed to:
my $pdr = PDR->new();
were changed to:
my $pdr = S4P::PDR->new();
Not affecting the code per se, but the baseline for S4PM and S4P
were moved from daacdev2 to B0 automounted under
/tools/share/DEV/SSDEsource/s4pm. All baselined configuration
files were moved to /tools/share/DEV/SSDEsource/s4pm_config. The
processes for maintaining the baseline, building, and installation
were modified accordingly.
User Environment Changes
Several of the code changes require changes to the user
environment for S4PM to continue working. These are:
Changed PATH to include /tools/gdaac//bin, where the new
Perl scripts are located Removed /tools/gdaac//bin/ (the old
location) from PATH.
Changed PERLLIB to include /tools/gdaac//site_perl/5.8.5/ and one of (depending on machine):
Added DB_USER and DB_PWD environment variable settings for
anonymous database login.
Removed from the baseline as it is no longer used.
Fix so that the PH data type gets added to the
s4pm_export.cfg file if $export_ph is set in the
string-specific configuration file.
Modified command line for running s4pm_allocate_disk.pl to
include the -d argument specifying the database file name.
Added in a section that builds the ACQParmfile.
Added handling of PGEs that use the s4pm_run_easy.pl script.
Got rid of code that creates a link to show_uses.pl in the
Register Data and Register Local Data stations since this
script is no longer used.
Got rid of some code that partially built the ACQParmfile
and moved it over to s4pm_derived.cfg instead.
Got rid of the setting of PERLLIB and PERL_LIB in the Run
Algorithm station.cfg file. In the new environment, PERLLIB
is already set.
In previous releases, a bug on Sun machines caused an error
message to be displayed when executing failure handler and
manual override buttons, even when the action has been
successful. This was due to handling of the SIG_CHLD
signals, and has now been fixed by undefining the SIG_CHLD
signal handler in S4P::exec_system() before executing system
A second change to tkstat.pl changes back to the directory
where tkstat.cfg is found before executing system calls
(though this turned out not to have the desired effect).
Since the commands in tkstat.cfg do a cd first anyways, this
should have little effect in S4PM installations on the B.0