From: Paul Green Date: Sun, 5 May 2002 17:15:00 +0000 (-0400) Subject: Update README.vos and release vos build macros X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c71882ca62bae8258b04c568faa83361dbc72d39;p=p5sagit%2Fp5-mst-13.2.git Update README.vos and release vos build macros Message-Id: <200205052114.RAA26329@mailhub2.stratus.com> To: perl5-porters@perl.org p4raw-id: //depot/perl@16419 --- diff --git a/MANIFEST b/MANIFEST index e89acce..65dc335 100644 --- a/MANIFEST +++ b/MANIFEST @@ -2674,17 +2674,20 @@ vms/vmsish.h VMS-specific C header for Perl core vms/vmspipe.com VMS-specific piped command helper script vms/vms_yfix.pl convert Unix perly.[ch] to VMS perly_[ch].vms vms/writemain.pl Generate perlmain.c from miniperlmain.c+extensions -vos/build.cm VOS command macro to build Perl +vos/build.cm VOS command macro to build "mini" Perl vos/Changes Changes made to port Perl to the VOS operating system -vos/compile_perl.cm VOS command macro to build multiple version of Perl +vos/compile_full_perl.cm VOS command macro to build "full" Perl +vos/compile_perl.cm VOS command macro to build "mini" Perl vos/config.alpha.def definitions used by config.pl vos/config.alpha.h config.h for use with alpha VOS POSIX.1 support vos/config.ga.def definitions used by config.pl vos/config.ga.h config.h for use with generally-available VOS POSIX.1 support vos/config.pl script to convert a config_h.SH to a config.h -vos/configure_perl.cm VOS command macro to configure perl before building -vos/install_perl.cm VOS command macro to install perl after building +vos/configure_full_perl.sh VOS shell script to configure "full" perl before building +vos/configure_perl.cm VOS command macro to configure "mini" perl before building +vos/install_perl.cm VOS command macro to install "mini" perl after building vos/Makefile A helper for maintaining the config.*.* in UNIX +vos/make_full_perl.sh VOS shell script to build and test "full" perl vos/perl.bind VOS bind control file vos/test_vos_dummies.c Test program for "vos_dummies.c" vos/vos.c VOS emulations for missing POSIX functions diff --git a/README.vos b/README.vos index 8807908..624e77e 100644 --- a/README.vos +++ b/README.vos @@ -44,7 +44,7 @@ using the VOS Standard C Cross-compiler. You must build perl on VOS Release 14.1.0 (or later) on an XA/R or Continuum platform. This version of perl is properly called "miniperl" because it -does not contain the full perl functionality. +does not contain the complete perl functionality. You must build perl with the compile_perl.cm command macro found in the vos subdirectory. @@ -58,7 +58,7 @@ perl on VOS Release 14.1.0 (or later) on an XA/R or Continuum platform. This version of perl is properly called "miniperl" because it -does not contain the full perl functionality. +does not contain the complete perl functionality. You must build perl with the compile_perl.cm command macro found in the vos subdirectory. @@ -73,7 +73,7 @@ on VOS Release 14.1.0 (or later) on an XA/R or Continuum platform. This version of perl is properly called "miniperl" because it -does not contain the full perl functionality. +does not contain the complete perl functionality. You must build perl with the compile_perl.cm command macro found in the vos subdirectory. @@ -81,14 +81,14 @@ in the vos subdirectory. =item 4 If you have a Stratus Continuum (PARISC-based) platform that is -running VOS Release 14.3.0 through VOS Release 14.4.0, you must +running VOS Release 14.3.0 through VOS Release 14.4.1, you must build perl using the generally-available version of VOS POSIX support, and using either the VOS Standard C compiler or the VOS GNU C compiler. You must build perl on VOS Release 14.3.0 (or later) on a Continuum platform. This version of perl is properly called "miniperl" because it -does not contain the full perl functionality. +does not contain the complete perl functionality. You must build perl with the compile_perl.cm command macro found in the vos subdirectory. @@ -96,17 +96,17 @@ in the vos subdirectory. =item 5 If you have a Stratus Continuum (PA-RISC-based) platform that is -running VOS Release 14.4.1 or later, you must build perl using -the generally-available version of VOS POSIX support. You must -use the VOS GNU C compiler and the VOS GNU Tools product. You -must build perl on VOS Release 14.4.1 (or later) on a Continuum -platform. - -This version of perl is properly called "full perl" because it -contains the full perl functionality. - -You must use the supplied Configure script and makefiles to build -perl. +running VOS Release 14.5.0 or later, you can either use the +previous method to build "miniperl" or you can build "full +perl", which contains the complete functionality of perl. I +strongly recommend that you build full perl. To build full +perl, you must use the generally-available version of VOS POSIX +support. You must use the VOS GNU C compiler and the VOS GNU +C/C++ and GNU Tools Release 2.0.1 product. You must build full +perl on VOS Release 14.5.0 (or later) on a Continuum platform. + +You must build full perl with the compile_full_perl.cm command +macro found in the vos subdirectory. =back @@ -223,20 +223,11 @@ execute on the PA7100, PA8000, PA8500 and PA8600 processors, and that code compiled for the pa8000 processor type can execute on the PA8000, PA8500 and PA8600 processors. -To build perl using the supplied Configure script and makefiles, -execute the following commands. - - !add_library_path command >system>gnu_library>bin -after '(current_dir)' - !bash - gzip -d perl-5.8.0.tar.gz - tar -xvf perl-5.8.0.tar - cd perl-5.8.0 - Configure -d - gmake - -If you wish to run the test cases, type: - - gmake test +To build full perl using the supplied Configure script and +makefiles, change to the "vos" subdirectory and type the command +"compile_full_perl" or "start_process compile_full_perl". This +will configure, build, and test perl. All of the test cases +that are executed should pass. =head2 Installing Perl 5 on VOS @@ -343,6 +334,6 @@ Paul Green (Paul.Green@stratus.com) =head1 LAST UPDATE -February 15, 2001 +May 5, 2002 =cut diff --git a/vos/Changes b/vos/Changes index 407b258..98bab9d 100644 --- a/vos/Changes +++ b/vos/Changes @@ -6,6 +6,9 @@ For 5.8.0: "install_perl.cm" to use directory naming conventions that are closer to the perl standard directory names. + Added "compile_full_perl.cm", "configure_full_perl.sh" and + "make_full_perl.sh" for building full perl. + For the first time, full perl can now be built on VOS using its native Configure script and makefiles. See README.vos for details. diff --git a/vos/compile_full_perl.cm b/vos/compile_full_perl.cm new file mode 100644 index 0000000..9af1a87 --- /dev/null +++ b/vos/compile_full_perl.cm @@ -0,0 +1,38 @@ +& This command macro builds and tests full perl using +& the native perl build scripts. The prerequsites for +& using this macro are a VOS Continuum system running +& VOS Release 14.5.0 and VOS GNU C/C++ and GNU Tools 2.0.1. +& +& Written 02-05-05 by Paul Green (Paul.Green@stratus.com) +& +&begin_parameters + debug_sw switch(-debug) +&end_parameters +&echo command_lines +& +!add_library_path command (master_disk)>system>gnu_library>bin &+ + -after '(current_dir)' +& +&if (process_type) = interactive +&then !set_terminal_parameters -pause_lines 0 +& +&set_string release (before (after (module_info system_release) 'VOS Release ') ' ') +&if &release& < '14.5' +&then &do + &display_line You must be running VOS Release 14.5.0 or later to use this macro. + &return e$wrong_version +&end +& +&if ^ (exists -directory (master_disk)>system>gnu_library>lib>perl5) +&then &do + &display_line You must have S877 - GNU C/C++ and GNU Tools Release 2.0.1 to use this macro. + &return e$wrong_version +&end +& +!change_current_dir < +& +&if &debug_sw& +&then !bash vos/configure_full_perl.sh -DDEBUGGING -Doptimize=-g +&else !bash vos/configure_full_perl.sh +& +!bash vos/make_full_perl.sh diff --git a/vos/configure_full_perl.sh b/vos/configure_full_perl.sh new file mode 100644 index 0000000..28eab52 --- /dev/null +++ b/vos/configure_full_perl.sh @@ -0,0 +1,21 @@ +# Configure environment variables for perl build. +declare -x AWK="/system/gnu_library/bin/gawk.pm" +export AWK +declare -x CC="/system/gnu_library/bin/gcc.pm" +export CC +declare -x CPP="$CC $CPPFLAGS -E" +export CPP +declare -x CPPFLAGS="-D_POSIX_SOURCE=199506L -D_SYSV" +export CPPFLAGS +declare -x CONFIG_SHELL="bash" +export CONFIG_SHELL +declare -x LD="/system/gnu_library/bin/gcc.pm" +export LD +declare -x MAKE="/system/gnu_library/bin/gmake.pm" +export MAKE +declare -x RANLIB=":" +export RANLIB +declare -x SHELL="/system/gnu_library/bin/bash.pm" +export SHELL +# +bash Configure -Dusedevel -des diff --git a/vos/make_full_perl.sh b/vos/make_full_perl.sh new file mode 100644 index 0000000..8abdafc --- /dev/null +++ b/vos/make_full_perl.sh @@ -0,0 +1,3 @@ +# This macro makes full perl and runs its test scripts +gmake +gmake test