diff options
author | Paul Green <Paul.Green@stratus.com> | 2002-02-15 12:41:00 -0500 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2002-02-16 01:51:27 +0000 |
commit | 050dfae09d60a26290397d38efa5f4e336bef7e0 (patch) | |
tree | 236d70b45d3f39c656a2bf24d2b92a0860e77034 /vos | |
parent | aee8fd8dd9487e694a24f4f25d958fa95aa5c3d0 (diff) | |
download | perl-050dfae09d60a26290397d38efa5f4e336bef7e0.tar.gz |
VOS patches for perl 5.8
Message-Id: <200202152243.RAA01195@mailhub1.stratus.com>
p4raw-id: //depot/perl@14713
Diffstat (limited to 'vos')
-rw-r--r-- | vos/Changes | 9 | ||||
-rw-r--r-- | vos/build.cm | 33 | ||||
-rw-r--r-- | vos/config.alpha.def | 20 | ||||
-rw-r--r-- | vos/config.alpha.h | 30 | ||||
-rw-r--r-- | vos/config.ga.def | 21 | ||||
-rw-r--r-- | vos/config.ga.h | 30 | ||||
-rw-r--r-- | vos/install_perl.cm | 66 |
7 files changed, 113 insertions, 96 deletions
diff --git a/vos/Changes b/vos/Changes index 640db49d81..407b258992 100644 --- a/vos/Changes +++ b/vos/Changes @@ -1,6 +1,15 @@ This file documents the changes made to port Perl to the Stratus VOS operating system. +For 5.8.0: + Updated "config.alpha.def", "config.ga.def", "build.cm", and + "install_perl.cm" to use directory naming conventions that + are closer to the perl standard directory names. + + For the first time, full perl can now be built on VOS using + its native Configure script and makefiles. See README.vos + for details. + For 5.7.1: Updated "build.cm" and "compile_perl.cm" to build perl using either cc or gcc. diff --git a/vos/build.cm b/vos/build.cm index 20592ad75b..5eb56a2959 100644 --- a/vos/build.cm +++ b/vos/build.cm @@ -50,8 +50,8 @@ &then &set_string obj .8000 & &if &cpu& = mc68020 -&then &set_string obj2 .68k -&else &set_string obj2 &obj& +&then &set_string obj2 68k +&else &set_string obj2 (substr &obj& 2) & &if &cpu& = mc68020 &then &set_string bindsize -size large @@ -154,10 +154,11 @@ & &if (command_status) ^= 0 &then &return & !&compiler& <<perl.c &diag& &cpu& &cflags& -o perl&s& &+ - -DARCHLIB="/system/ported/perl/lib/5.7&obj2&" &+ - -DARCHLIB_EXP="/system/ported/perl/lib/5.7&obj2&" &+ - -DSITEARCH="/system/ported/perl/lib/site/5.7&obj2&" &+ - -DSITEARCH_EXP="/system/ported/perl/lib/site/5.7&obj2&" + -DARCHLIB="/system/ported/lib/perl5/5.8.0/&obj2&" &+ + -DARCHLIB_EXP="/system/ported/lib/perl5/5.8.0/&obj2&" &+ + -DSITEARCH="/system/ported/lib/perl5/site_perl/5.8.0/&obj2&" &+ + -DSITEARCH_EXP="/system/ported/lib/perl5/site_perl/5.8.0/&obj2&" &+ + -DARCHNAME="&obj2&" &if (command_status) ^= 0 &then &return !&compiler& <<perlapi.c &diag& &cpu& &cflags& -o perlapi&s& &if (command_status) ^= 0 &then &return @@ -229,24 +230,24 @@ &if &rebind& = 0 &then &return & -&if (exists -directory (master_disk)>system>tcp_os>object_library&obj2&) -&then &set_string tcp_objlib (master_disk)>system>tcp_os>object_library&obj2& +&if (exists -directory (master_disk)>system>tcp_os>object_library.&obj2&) +&then &set_string tcp_objlib (master_disk)>system>tcp_os>object_library.&obj2& &else &set_string tcp_objlib (master_disk)>system>tcp_os>object_library & -&if (exists -directory (master_disk)>system>stcp>object_library&obj2&) -&then &set_string stcp_objlib (master_disk)>system>stcp>object_library&obj2& +&if (exists -directory (master_disk)>system>stcp>object_library.&obj2&) +&then &set_string stcp_objlib (master_disk)>system>stcp>object_library.&obj2& &else &set_string stcp_objlib (master_disk)>system>stcp>object_library & -&if (exists -directory (master_disk)>system>object_library&obj2&) -&then &set_string objlib (master_disk)>system>object_library&obj2& +&if (exists -directory (master_disk)>system>object_library.&obj2&) +&then &set_string objlib (master_disk)>system>object_library.&obj2& &else &set_string objlib (master_disk)>system>object_library & -&if (exists -directory (master_disk)>system>c_object_library&obj2&) -&then &set_string c_objlib (master_disk)>system>c_object_library&obj2& +&if (exists -directory (master_disk)>system>c_object_library.&obj2&) +&then &set_string c_objlib (master_disk)>system>c_object_library.&obj2& &else &set_string c_objlib (master_disk)>system>c_object_library & -&if (exists -directory (master_disk)>system>posix_object_library&obj2&) -&then &set_string posix_objlib (master_disk)>system>posix_object_library&obj2& +&if (exists -directory (master_disk)>system>posix_object_library.&obj2&) +&then &set_string posix_objlib (master_disk)>system>posix_object_library.&obj2& &else &set_string posix_objlib (master_disk)>system>posix_object_library & &if &version& = alpha diff --git a/vos/config.alpha.def b/vos/config.alpha.def index 996a0c79a1..250c5e1b5a 100644 --- a/vos/config.alpha.def +++ b/vos/config.alpha.def @@ -2,13 +2,13 @@ $alignbytes='8' $aphostname='' $archlib='' $archlibexp='' -$archname='vos' +$archname='' $bin='/system/ported/command_library' $binexp='/system/ported/command_library' $byteorder='4321' $castflags='0' -$cf_by='Paul_Green@stratus.com' -$cf_time='2001-06-11 02:41 UCT' +$cf_by='Paul.Green@stratus.com' +$cf_time='2002-02-15 20:16 UCT' $CONFIG_SH='config.sh' $cpp_stuff='42' $cpplast='-' @@ -458,8 +458,8 @@ $otherlibdirs='' $package='perl5' $pidtype='pid_t' $pm_apiversion='5.005' -$privlib='/system/ported/perl/lib/5.7' -$privlibexp='/system/ported/perl/lib/5.7' +$privlib='/system/ported/lib/perl5/5.8.0' +$privlibexp='/system/ported/lib/perl5/5.8.0' $procselfexe='' $prototype='define' $ptrsize='4' @@ -479,11 +479,11 @@ $sig_name_init='"ZERO","ABRT","FPE","ILL","INT","SEGV","TERM","USR1","USR2","IO" $sig_num_init='0,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,0' $sig_size='31' $signal_t='void' -$sitearch='' -$sitearchexp='' -$sitelib='/system/ported/perl/lib/site/5.7' -$sitelibexp='/system/ported/perl/lib/site/5.7' -$sitelib_stem='/system/ported/perl/lib/site' +$sitearch='/system/ported/lib/perl5/site_perl/5.8.0/hppa1.1' +$sitearchexp='/system/ported/lib/perl5/site_perl/5.8.0/hppa1.1' +$sitelib='/system/ported/lib/perl5/site_perl/5.8.0' +$sitelibexp='/system/ported/lib/perl5/site_perl/5.8.0' +$sitelib_stem='/system/ported/lib/perl5/site_perl' $sizesize='4' $sizetype='size_t' $socksizetype='int' diff --git a/vos/config.alpha.h b/vos/config.alpha.h index bce8eb5e9e..7d5145e45a 100644 --- a/vos/config.alpha.h +++ b/vos/config.alpha.h @@ -13,8 +13,8 @@ /* * Package name : perl5 * Source directory : /vos_ftp_site/pub/vos/posix/(alpha|ga)/perl - * Configuration time: 2001-06-11 02:41 UCT - * Configured by : Paul_Green@stratus.com + * Configuration time: 2002-02-15 20:16 UCT + * Configured by : Paul.Green@stratus.com * Target system : VOS */ @@ -989,7 +989,7 @@ * where library files may be held under a private library, for * instance. */ -#define ARCHNAME "vos" /**/ +#define ARCHNAME "" /**/ /* HAS_ATOLF: * This symbol, if defined, indicates that the atolf routine is @@ -2959,8 +2959,8 @@ * This symbol contains the ~name expanded version of PRIVLIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define PRIVLIB "/system/ported/perl/lib/5.7" /**/ -#define PRIVLIB_EXP "/system/ported/perl/lib/5.7" /**/ +#define PRIVLIB "/system/ported/lib/perl5/5.8.0" /**/ +#define PRIVLIB_EXP "/system/ported/lib/perl5/5.8.0" /**/ /* PTRSIZE: * This symbol contains the size of a pointer, so that the C preprocessor @@ -3063,8 +3063,8 @@ * This symbol contains the ~name expanded version of SITEARCH, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -/*#define SITEARCH "" /**/ -/*#define SITEARCH_EXP "" /**/ +/*#define SITEARCH "/system/ported/lib/perl5/site_perl/5.8.0/hppa1.1" /**/ +/*#define SITEARCH_EXP "/system/ported/lib/perl5/site_perl/5.8.0/hppa1.1" /**/ /* SITELIB: * This symbol contains the name of the private library for this package. @@ -3086,9 +3086,9 @@ * removed. The elements in inc_version_list (inc_version_list.U) can * be tacked onto this variable to generate a list of directories to search. */ -#define SITELIB "/system/ported/perl/lib/site/5.7" /**/ -#define SITELIB_EXP "/system/ported/perl/lib/site/5.7" /**/ -#define SITELIB_STEM "/system/ported/perl/lib/site" /**/ +#define SITELIB "/system/ported/lib/perl5/site_perl/5.8.0" /**/ +#define SITELIB_EXP "/system/ported/lib/perl5/site_perl/5.8.0" /**/ +#define SITELIB_STEM "/system/ported/lib/perl5/site_perl" /**/ /* Size_t_size: * This symbol holds the size of a Size_t in bytes. @@ -3324,7 +3324,7 @@ /* PERL_XS_APIVERSION: * This variable contains the version of the oldest perl binary * compatible with the present perl. perl.c:incpush() and - * lib/lib.pm will automatically search in for older + * lib/lib.pm will automatically search in /system/ported/lib/perl5/site_perl/5.8.0/hppa1.1 for older * directories across major versions back to xs_apiversion. * This is only useful if you have a perl library directory tree * structured like the default one. @@ -3343,7 +3343,7 @@ * compatible with the present perl. (That is, pure perl modules * written for pm_apiversion will still work for the current * version). perl.c:incpush() and lib/lib.pm will automatically - * search in /system/ported/perl/lib/site/5.7 for older directories across major versions + * search in /system/ported/lib/perl5/site_perl/5.8.0 for older directories across major versions * back to pm_apiversion. This is only useful if you have a perl * library directory tree structured like the default one. The * versioned site_perl library was introduced in 5.005, so that's @@ -3417,16 +3417,18 @@ * If defined, this macro indicates that the C compiler can handle * function prototypes. */ -/* PERL_PROTO_: +/* _: * This macro is used to declare function parameters for folks who want * to make declarations with prototypes using a different style than * the above macros. Use double parentheses. For example: * - * int main PERL_PROTO_((int argc, char *argv[])); + * int main _((int argc, char *argv[])); */ #define CAN_PROTOTYPE /**/ #ifdef CAN_PROTOTYPE +#define _(args) args #else +#define _(args) () #endif /* SH_PATH: diff --git a/vos/config.ga.def b/vos/config.ga.def index ec18320514..7bef8fb8ad 100644 --- a/vos/config.ga.def +++ b/vos/config.ga.def @@ -2,13 +2,13 @@ $alignbytes='8' $aphostname='' $archlib='' $archlibexp='' -$archname='vos' +$archname='' $bin='/system/gnu_library/bin' $binexp='/system/gnu_library/bin' $byteorder='4321' $castflags='0' -$cf_by='Paul_Green@stratus.com' -$cf_time='2001-06-11 02:46 UCT' +$cf_by='Paul.Green@stratus.com' +$cf_time='2002-02-15 20:16 UCT' $CONFIG_SH='config.sh' $cpp_stuff='42' $cpplast='-' @@ -192,7 +192,6 @@ $d_perl_otherlibdirs='undef' $d_phostname='undef' $d_pipe='define' $d_poll='define' -$d_poll='define' $d_procselfexe='undef' $d_pthread_atfork='undef' $d_pthread_yield='undef' @@ -459,8 +458,8 @@ $otherlibdirs='' $package='perl5' $pidtype='pid_t' $pm_apiversion='5.005' -$privlib='/system/ported/perl/lib/5.7' -$privlibexp='/system/ported/perl/lib/5.7' +$privlib='/system/ported/lib/perl5/5.8.0' +$privlibexp='/system/ported/lib/perl5/5.8.0' $procselfexe='' $prototype='define' $ptrsize='4' @@ -480,11 +479,11 @@ $sig_name_init='"ZERO","ABRT","FPE","ILL","INT","SEGV","TERM","USR1","USR2","IO" $sig_num_init='0,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,0' $sig_size='32' $signal_t='void' -$sitearch='' -$sitearchexp='' -$sitelib='/system/ported/perl/lib/site/5.7' -$sitelibexp='/system/ported/perl/lib/site/5.7' -$sitelib_stem='/system/ported/perl/lib/site' +$sitearch='/system/ported/lib/perl5/site_perl/5.8.0/hppa1.1' +$sitearchexp='/system/ported/lib/perl5/site_perl/5.8.0/hppa1.1' +$sitelib='/system/ported/lib/perl5/site_perl/5.8.0' +$sitelibexp='/system/ported/lib/perl5/site_perl/5.8.0' +$sitelib_stem='/system/ported/lib/perl5/site_perl' $sizesize='4' $sizetype='size_t' $socksizetype='int' diff --git a/vos/config.ga.h b/vos/config.ga.h index ef9cc07fe3..876d5eb7df 100644 --- a/vos/config.ga.h +++ b/vos/config.ga.h @@ -13,8 +13,8 @@ /* * Package name : perl5 * Source directory : /vos_ftp_site/pub/vos/posix/(alpha|ga)/perl - * Configuration time: 2001-06-11 02:46 UCT - * Configured by : Paul_Green@stratus.com + * Configuration time: 2002-02-15 20:16 UCT + * Configured by : Paul.Green@stratus.com * Target system : VOS */ @@ -989,7 +989,7 @@ * where library files may be held under a private library, for * instance. */ -#define ARCHNAME "vos" /**/ +#define ARCHNAME "" /**/ /* HAS_ATOLF: * This symbol, if defined, indicates that the atolf routine is @@ -2959,8 +2959,8 @@ * This symbol contains the ~name expanded version of PRIVLIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define PRIVLIB "/system/ported/perl/lib/5.7" /**/ -#define PRIVLIB_EXP "/system/ported/perl/lib/5.7" /**/ +#define PRIVLIB "/system/ported/lib/perl5/5.8.0" /**/ +#define PRIVLIB_EXP "/system/ported/lib/perl5/5.8.0" /**/ /* PTRSIZE: * This symbol contains the size of a pointer, so that the C preprocessor @@ -3063,8 +3063,8 @@ * This symbol contains the ~name expanded version of SITEARCH, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -/*#define SITEARCH "" /**/ -/*#define SITEARCH_EXP "" /**/ +/*#define SITEARCH "/system/ported/lib/perl5/site_perl/5.8.0/hppa1.1" /**/ +/*#define SITEARCH_EXP "/system/ported/lib/perl5/site_perl/5.8.0/hppa1.1" /**/ /* SITELIB: * This symbol contains the name of the private library for this package. @@ -3086,9 +3086,9 @@ * removed. The elements in inc_version_list (inc_version_list.U) can * be tacked onto this variable to generate a list of directories to search. */ -#define SITELIB "/system/ported/perl/lib/site/5.7" /**/ -#define SITELIB_EXP "/system/ported/perl/lib/site/5.7" /**/ -#define SITELIB_STEM "/system/ported/perl/lib/site" /**/ +#define SITELIB "/system/ported/lib/perl5/site_perl/5.8.0" /**/ +#define SITELIB_EXP "/system/ported/lib/perl5/site_perl/5.8.0" /**/ +#define SITELIB_STEM "/system/ported/lib/perl5/site_perl" /**/ /* Size_t_size: * This symbol holds the size of a Size_t in bytes. @@ -3324,7 +3324,7 @@ /* PERL_XS_APIVERSION: * This variable contains the version of the oldest perl binary * compatible with the present perl. perl.c:incpush() and - * lib/lib.pm will automatically search in for older + * lib/lib.pm will automatically search in /system/ported/lib/perl5/site_perl/5.8.0/hppa1.1 for older * directories across major versions back to xs_apiversion. * This is only useful if you have a perl library directory tree * structured like the default one. @@ -3343,7 +3343,7 @@ * compatible with the present perl. (That is, pure perl modules * written for pm_apiversion will still work for the current * version). perl.c:incpush() and lib/lib.pm will automatically - * search in /system/ported/perl/lib/site/5.7 for older directories across major versions + * search in /system/ported/lib/perl5/site_perl/5.8.0 for older directories across major versions * back to pm_apiversion. This is only useful if you have a perl * library directory tree structured like the default one. The * versioned site_perl library was introduced in 5.005, so that's @@ -3417,16 +3417,18 @@ * If defined, this macro indicates that the C compiler can handle * function prototypes. */ -/* PERL_PROTO_: +/* _: * This macro is used to declare function parameters for folks who want * to make declarations with prototypes using a different style than * the above macros. Use double parentheses. For example: * - * int main PERL_PROTO_((int argc, char *argv[])); + * int main _((int argc, char *argv[])); */ #define CAN_PROTOTYPE /**/ #ifdef CAN_PROTOTYPE +#define _(args) args #else +#define _(args) () #endif /* SH_PATH: diff --git a/vos/install_perl.cm b/vos/install_perl.cm index 95fe064ea6..a54f68bd6f 100644 --- a/vos/install_perl.cm +++ b/vos/install_perl.cm @@ -1,8 +1,10 @@ & Macro to install the perl components into the right directories -& Written 00-10-24 by Paul Green (Paul_Green@stratus.com) +& Written 00-10-24 by Paul Green (Paul.Green@stratus.com) +& Updated 02-02-15 by Paul Green & &begin_parameters cpu option(-processor)name,allow(mc68020,i80860,pa7100,pa8000),=mc68020 + name option(-name)name,allow(perl,perl5),=perl5 &end_parameters priv &echo command_lines & @@ -23,47 +25,49 @@ &if ^ (exists -directory &MDS&>ported>command_library) &then !create_dir &MDS&>ported>command_library & -&if ^ (exists -directory &MDS&>ported>perl) -&then !create_dir &MDS&>ported>perl +&if ^ (exists -directory &MDS&>ported>lib) +&then !create_dir &MDS&>ported>lib & -&if ^ (exists -directory &MDS&>ported>perl>lib) -&then !create_dir &MDS&>ported>perl>lib +&if ^ (exists -directory &MDS&>ported>lib>perl5) +&then !create_dir &MDS&>ported>lib>perl5 & -&if ^ (exists -directory &MDS&>ported>perl>lib>5.7) -&then !create_dir &MDS&>ported>perl>lib>5.7 +&if ^ (exists -directory &MDS&>ported>lib>perl5>5.8.0) +&then !create_dir &MDS&>ported>lib>perl5>5.8.0 & -&if ^ (exists -directory &MDS&>ported>perl>lib>5.7.68k) -&then !create_dir &MDS&>ported>perl>lib>5.7.68k +!copy_file <lib>*.pm &MDS&>ported>lib>perl5>5.8.0>*.pm -delete +!copy_file <lib>*.pl &MDS&>ported>lib>perl5>5.8.0>*.pl -delete +!copy_file <lib>*.pod &MDS&>ported>lib>perl5>5.8.0>*.pod -delete & -&if ^ (exists -directory &MDS&>ported>perl>lib>5.7.860) -&then !create_dir &MDS&>ported>perl>lib>5.7.860 +&if ^ (exists -directory &MDS&>ported>lib>perl5>5.8.0>68k) +&then !create_dir &MDS&>ported>lib>perl5>5.8.0>68k & -&if ^ (exists -directory &MDS&>ported>perl>lib>5.7.7100) -&then !create_dir &MDS&>ported>perl>lib>5.7.7100 +&if ^ (exists -directory &MDS&>ported>lib>perl5>5.8.0>860) +&then !create_dir &MDS&>ported>lib>perl5>5.8.0>860 & -&if ^ (exists -directory &MDS&>ported>perl>lib>5.7.8000) -&then !create_dir &MDS&>ported>perl>lib>5.7.8000 +&if ^ (exists -directory &MDS&>ported>lib>perl5>5.8.0>7100) +&then !create_dir &MDS&>ported>lib>perl5>5.8.0>7100 & -&if ^ (exists -directory &MDS&>ported>perl>lib>site) -&then !create_dir &MDS&>ported>perl>lib>site +&if ^ (exists -directory &MDS&>ported>lib>perl5>5.8.0>8000) +&then !create_dir &MDS&>ported>lib>perl5>5.8.0>8000 & -&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7) -&then !create_dir &MDS&>ported>perl>lib>site>5.7 +&if ^ (exists -directory &MDS&>ported>lib>perl5>site_perl) +&then !create_dir &MDS&>ported>lib>perl5>site_perl & -&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7.68k) -&then !create_dir &MDS&>ported>perl>lib>site>5.7.68k +&if ^ (exists -directory &MDS&>ported>lib>perl5>site_perl>5.8.0) +&then !create_dir &MDS&>ported>lib>perl5>site_perl>5.8.0 & -&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7.860) -&then !create_dir &MDS&>ported>perl>lib>site>5.7.860 +&if ^ (exists -directory &MDS&>ported>lib>perl5>site_perl>5.8.0>68k) +&then !create_dir &MDS&>ported>lib>perl5>site_perl>5.8.0>68k & -&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7.7100) -&then !create_dir &MDS&>ported>perl>lib>site>5.7.7100 +&if ^ (exists -directory &MDS&>ported>lib>perl5>site_perl>5.8.0>860) +&then !create_dir &MDS&>ported>lib>perl5>site_perl>5.8.0>860 & -&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7.8000) -&then !create_dir &MDS&>ported>perl>lib>site>5.7.8000 +&if ^ (exists -directory &MDS&>ported>lib>perl5>site_perl>5.8.0>7100) +&then !create_dir &MDS&>ported>lib>perl5>site_perl>5.8.0>7100 & -!copy_dir <lib &MDS&>ported>perl>lib>5.7 -delete +&if ^ (exists -directory &MDS&>ported>lib>perl5>site_perl>5.8.0>8000) +&then !create_dir &MDS&>ported>lib>perl5>site_perl>5.8.0>8000 & -!copy_file obj&obj&>perl.pm &MDS&>ported>command_library>perl.pm.new -delete -!rename &MDS&>ported>command_library>perl.pm *.(date).(time) -delete -!rename &MDS&>ported>command_library>perl.pm.new perl.pm -delete +!copy_file obj&obj&>perl.pm &MDS&>ported>command_library>&name&.pm.new -delete +!rename &MDS&>ported>command_library>&name&.pm *.(date).(time) -delete +!rename &MDS&>ported>command_library>&name&.pm.new &name&.pm -delete |