| 1 |
From file: gawk_release_note_start.com |
| 2 |
|
| 3 |
This is GNU gawk packaged for VMS. |
| 4 |
|
| 5 |
The original readme files for GAWK for standalone building on VMS are |
| 6 |
supplied here along with a procedure for building GAWK for the making |
| 7 |
a PCSI kit. |
| 8 |
|
| 9 |
Note: I am a hobbyist and am not providing any support or any commitment |
| 10 |
to supply bug fixes or future releases. This code is as-is with no |
| 11 |
warrantees. |
| 12 |
|
| 13 |
The testing of this port of Gawk involved running some self tests that |
| 14 |
were provided with the source. |
| 15 |
|
| 16 |
This version of gawk supports dynamically loaded extensions on Alpha and |
| 17 |
Itanium versions of VMS. The pre-built dynamically loaded extensions |
| 18 |
are in gnv$gnu:[usr.lib.gawk]. |
| 19 |
|
| 20 |
The linker option file used to build a dynamically loaded extension is |
| 21 |
located in gnv$gnu:[usr.src.gawk.extension.vms], and the gawkapi.h file |
| 22 |
is in gnv$gnu:[usr.include]. |
| 23 |
|
| 24 |
Special installation notes: |
| 25 |
|
| 26 |
* Please see https://sourceforge.net/p/gnv/wiki/InstallingGNVPackages/ |
| 27 |
for the latest information on installing GNV related PCSI kits. |
| 28 |
|
| 29 |
* We are updating and replacing GNV one kit at a time and transitioning |
| 30 |
GNV to be a set of kits that the GNV package will install. During |
| 31 |
this transition some extra issues will need to be handled during |
| 32 |
installs and upgrades. |
| 33 |
|
| 34 |
* Due to the way that PCSI identifies packages, if you install a package |
| 35 |
from one producer and then want to upgrade it from another producer, |
| 36 |
you will probably need to uninstall the previous package first. |
| 37 |
|
| 38 |
Some of these packages were previously created with different producer |
| 39 |
prefixes. We are standardizing on VMSPORTS and GNV as the branding |
| 40 |
prefixes. GNV will be for packages that are part of the GNV product |
| 41 |
suite, and VMSPORTS will be for most other packages. |
| 42 |
|
| 43 |
This uninstall can cause warning messages about dependencies. If you |
| 44 |
are transitioning to an upwardly compatible package, you can ignore |
| 45 |
those warnings. |
| 46 |
|
| 47 |
* This package should be installed to the same volume as GNV is installed. |
| 48 |
|
| 49 |
If you uninstall or upgrade GNV or install a GNV from before the |
| 50 |
transition is complete, you will need to reinstall all other packages |
| 51 |
that install to the same GNV directory tree. |
| 52 |
|
| 53 |
This is because at least some of the existing GNV installation procedures |
| 54 |
have bugs in them were instead of just deleting the files that were |
| 55 |
installed, they delete all files in the GNV directory tree. |
| 56 |
|
| 57 |
* Because this is a transition, this package is replacing files from the |
| 58 |
old GNV packages. This is a necessary issue to allow incremental |
| 59 |
improvement as we can not replace the GNV package until we get all |
| 60 |
the component packages done. |
| 61 |
|
| 62 |
* The GNV 2.x through at least the 3.0.1 kits make an unusual change |
| 63 |
to the disk directory structure where they are installed where |
| 64 |
they use the [vms$common.gnv] as a mount point and mount the posix |
| 65 |
root on it. This is a bug because it causes many problems and does |
| 66 |
not offer any advantages. One of the problems is that it causes |
| 67 |
problems with other PCSI installs and uninstalls to that directory. |
| 68 |
|
| 69 |
This bug can be manually repaired such as has been done on |
| 70 |
on encompasserve.org as documented in PORTING_TO_VMS notes conference. |
| 71 |
|
| 72 |
At this time, we do not have a scripted repair to this bug, and it |
| 73 |
may not be possible to fully script a repair because this bug can |
| 74 |
cause the POSIX root and [vms$common.gnv] to have different contents |
| 75 |
when they should be the same directory, and it will take a manual |
| 76 |
inspection to select which files go where. |
| 77 |
|
| 78 |
* Because of the directory change bug, the gnv$startup.com in the GNV |
| 79 |
kit must be run when the system boots up or the [vms$common.gnv] |
| 80 |
directory will appear to be empty. |
| 81 |
|
| 82 |
If a PCSI kit like this one is installed when the GNV startup has not |
| 83 |
been run, it will create a new directory tree under [vms$common.gnv] |
| 84 |
that will not be visible to the posix root. If you uninstall this |
| 85 |
PCSI kit before running the gnv$startup.com procedure then you can |
| 86 |
install it after running the gnv$startup.com procedure. If you have |
| 87 |
run the gnv$startup.com procedure after the install, then you have |
| 88 |
a mess, and you will need to use the GNV umnt to un-mount the |
| 89 |
[vms$common.gnv] directory before the uninstall of this kit will |
| 90 |
work. |
| 91 |
|
| 92 |
An analyze/disk/repair step on the installation disk should be done after |
| 93 |
installation to collect files left over from incomplete deletions into the |
| 94 |
SYSLOST directory. This step should be done on a "quiet" system per HP |
| 95 |
recomendations. |
| 96 |
|
| 97 |
Bugs can be logged at the tracker with https://sourceforge.net/projects/gnv/. |
| 98 |
There is no guarantee that bugs will be fixed for a hobbyist build. |
| 99 |
|
| 100 |
VMS specific port information: |
| 101 |
|
| 102 |
The logical name GNV$GNU is used to find the simulated posix root and defines |
| 103 |
the logical name SYS$POSIX_ROOT in the process table in user mode for child |
| 104 |
processes if needed. This is to comply with VMS logical name conventions. |
| 105 |
The logical name BIN is also set in the process table in user mode to be |
| 106 |
GNV$GNU:[BIN] if it is not already set. |
| 107 |
|
| 108 |
The following DECC$Feature settings are in in effect for Gawk by default: |
| 109 |
|
| 110 |
DECC$ACL_ACCESS_CHECK enabled. |
| 111 |
DECC$ALLOW_REMOVE_OPEN_FILES enabled. |
| 112 |
DECC$ARGV_PARSE_STYLE enabled. |
| 113 |
DECC$EFS_CASE_PRESERVE enabled. |
| 114 |
DECC$EFS_CHARSET enabled. |
| 115 |
DECC$EFS_FILE_TIMESTAMPS enabled. |
| 116 |
DECC$ENABLE_GETENV_CACHE enabled. |
| 117 |
DECC$EXEC_FILEATTR_INHERITANCE set to 2. |
| 118 |
DECC$FILE_PERMISSION_UNIX enabled. |
| 119 |
DECC$FILE_SHARING enabled. |
| 120 |
DECC$FILE_OWNER_UNIX enabled. |
| 121 |
DECC$FILENAME_REPORT_UNIX enabled. |
| 122 |
DECC$FILENAME_UNIX_NO_VERSION enabled. |
| 123 |
DECC$GLOB_UNIX_STYLE enabled. |
| 124 |
DECC$POSIX_SEEK_STREAM_FILE enabled. |
| 125 |
DECC$READDIR_DROPDOTNOTYPE enabled. |
| 126 |
DECC$RENAME_NO_INHERIT enabled. |
| 127 |
DECC$STDIO_CTX_EOL enabled. |
| 128 |
DECC$STRTOL_ERANGE enabled. |
| 129 |
DECC$UNIX_PATH_BEFORE_LOGNAME enabled. |
| 130 |
|
| 131 |
While more strict UNIX compatibility feature settings can be applied by users |
| 132 |
by setting feature logical names, these settings are all the Bash and most |
| 133 |
ported programs need. |
| 134 |
|
| 135 |
This port of Gawk uses the VMS CRTL to handle the Unix format pathnames |
| 136 |
and as such is dependent on them. It is a known issue that directories with |
| 137 |
a Unix name "file.dir/" and some symbolic links are not handled correctly. |
| 138 |
This is a combination of problems with RMS and CRTL. The RMS portion is |
| 139 |
fixed with the VMS84?_RMS-V0300 ECO kit. I am not aware of a CRTL kit that |
| 140 |
fixes the issues. |
| 141 |
|
| 142 |
This kit is designed to be used with the GNV Bash 4.2.45 or later kit. |
| 143 |
|
| 144 |
|
| 145 |
Fixes and enhancements: |
| 146 |
|
| 147 |
Gawk 4.1.3 ECO 1 |
| 148 |
|
| 149 |
* The previous GAWK kits were placing the binaries in /bin instead of |
| 150 |
/usr/bin, and not cleaning up the older binaries from the /bin directory |
| 151 |
after an update. |
| 152 |
|
| 153 |
* The older kits could not properly detect the VSI releases of OpenVMS. |
| 154 |
|
| 155 |
Older kits: |
| 156 |
|
| 157 |
* No logical names required for proper Gawk operations other than GNV$GNU |
| 158 |
for locating the simulated "/". |
| 159 |
|
| 160 |
* GNV$GNU is used to find the posix root and locally sets SYS$POSIX_ROOT |
| 161 |
for child processes if needed. This is to comply with VMS logical |
| 162 |
name conventions. The logical name BIN is also set locally to be |
| 163 |
GNV$GNU:[BIN] if it is not already set. |
| 164 |
|
| 165 |
* config.h now generated at part of the build from a template. |
| 166 |
|
| 167 |
The supplied GNV$GAWK_STARTUP.COM procedure is provided in |
| 168 |
[VMS$COMMON.SYS$STARTUP] can be put in your VMS startup procedure to install |
| 169 |
selected images as known because they need privileges. It is recommended |
| 170 |
that the GNV$STARTUP.COM procedure be run first, followed by the |
| 171 |
GNV$BASH_STARTUP.COM procedure before the GNV$GAWK_STARTUP.COM is |
| 172 |
executed. |
| 173 |
|
| 174 |
The names of the gawk image have been prefixed with GNV$ to prevent |
| 175 |
possible naming conflicts with other programs that are on the system. The |
| 176 |
GNV$ prefix has been registered with HP for this purpose. |
| 177 |
|
| 178 |
OpenVMS specific building and kitting instructions are after the standard |
| 179 |
bash readme file below. |
| 180 |
|
| 181 |
The source kits contains files for building Gawk using MMK. |
| 182 |
MMK 4.0 was used for this build on Alpha and Itanium Itanium. |
| 183 |
|
| 184 |
Currently, the focus of the OpenVMS GNV porting team is to address bugs in |
| 185 |
the OpenVMS port of GNV components that pose immediate barriers to running |
| 186 |
configure and make scripts for Open Source Software packages targeting |
| 187 |
OpenVMS environments. |
| 188 |
|
| 189 |
The GNV development team is involved in an ongoing effort to identify and |
| 190 |
document the underlying technical causes for these current limitations and (if |
| 191 |
available) workarounds as well as developing code fixes to eliminate them. The |
| 192 |
VMS-Ports Source Forge project at https://sourceforge.net/p/vms-ports/tickets/ |
| 193 |
currently documents OpenVMS CRTL bugs and limitations with respect to porting |
| 194 |
Open Source Software using OpenVMS. The VMS-Ports Source Forge Project also |
| 195 |
contains examples of ported packages provided by volunteer contributors as well |
| 196 |
as documentation with recommendations on how to setup, modify and use the |
| 197 |
OpenVMS GNV environment for the purpose of porting Open Source software |
| 198 |
packages to OpenVMS. Browse to https://sourceforge.net/p/vms-ports/wiki/Home/ |
| 199 |
for more information. |
| 200 |
|