1ExtUtils::MM_VMS(3)   User Contributed Perl Documentation  ExtUtils::MM_VMS(3)
2
3
4

NAME

6       ExtUtils::MM_VMS - methods to override UN*X behaviour in
7       ExtUtils::MakeMaker
8

SYNOPSIS

10         Do not use this directly.
11         Instead, use ExtUtils::MM and it will figure out which MM_*
12         class to use for you.
13

DESCRIPTION

15       See ExtUtils::MM_Unix for a documentation of the methods provided
16       there. This package overrides the implementation of these methods, not
17       the semantics.
18
19   Methods always loaded
20       wraplist
21           Converts a list into a string wrapped at approximately 80 columns.
22
23   Methods
24       Those methods which override default MM_Unix methods are marked
25       "(override)", while methods unique to MM_VMS are marked "(specific)".
26       For overridden methods, documentation is limited to an explanation of
27       why this method overrides the MM_Unix method; see the ExtUtils::MM_Unix
28       documentation for more details.
29
30       guess_name (override)
31           Try to determine name of extension being built.  We begin with the
32           name of the current directory.  Since VMS filenames are case-
33           insensitive, however, we look for a .pm file whose name matches
34           that of the current directory (presumably the 'main' .pm file for
35           this extension), and try to find a "package" statement from which
36           to obtain the Mixed::Case package name.
37
38       find_perl (override)
39           Use VMS file specification syntax and CLI commands to find and
40           invoke Perl images.
41
42       _fixin_replace_shebang (override)
43           Helper routine for MM->fixin(), overridden because there's no such
44           thing as an actual shebang line that will be interpreted by the
45           shell, so we just prepend $Config{startperl} and preserve the
46           shebang line argument for any switches it may contain.
47
48       maybe_command (override)
49           Follows VMS naming conventions for executable files.  If the name
50           passed in doesn't exactly match an executable file, appends .Exe
51           (or equivalent) to check for executable image, and .Com to check
52           for DCL procedure.  If this fails, checks directories in DCL$PATH
53           and finally Sys$System: for an executable file having the name
54           specified, with or without the .Exe-equivalent suffix.
55
56       pasthru (override)
57           The list of macro definitions to be passed through must be
58           specified using the /MACRO qualifier and must not add another
59           /DEFINE qualifier.  We prepend our own comma here to the contents
60           of $(PASTHRU_DEFINE) because it is often empty and a comma always
61           present in CCFLAGS would generate a missing qualifier value error.
62
63       pm_to_blib (override)
64           VMS wants a dot in every file so we can't have one called
65           'pm_to_blib', it becomes 'pm_to_blib.' and MMS/K isn't smart enough
66           to know that when you have a target called 'pm_to_blib' it should
67           look for 'pm_to_blib.'.
68
69           So in VMS its pm_to_blib.ts.
70
71       perl_script (override)
72           If name passed in doesn't specify a readable file, appends .com or
73           .pl and tries again, since it's customary to have file types on all
74           files under VMS.
75
76       replace_manpage_separator
77           Use as separator a character which is legal in a VMS-syntax file
78           name.
79
80       init_DEST
81           (override) Because of the difficulty concatenating VMS filepaths we
82           must pre-expand the DEST* variables.
83
84       init_DIRFILESEP
85           No separator between a directory path and a filename on VMS.
86
87       init_main (override)
88       init_tools (override)
89           Provide VMS-specific forms of various utility commands.
90
91           Sets DEV_NULL to nothing because I don't know how to do it on VMS.
92
93           Changes EQUALIZE_TIMESTAMP to set revision date of target file to
94           one second later than source file, since MMK interprets precisely
95           equal revision dates for a source and target file as a sign that
96           the target needs to be updated.
97
98       init_platform (override)
99           Add PERL_VMS, MM_VMS_REVISION and MM_VMS_VERSION.
100
101           MM_VMS_REVISION is for backwards compatibility before MM_VMS had a
102           $VERSION.
103
104       platform_constants
105       init_VERSION (override)
106           Override the *DEFINE_VERSION macros with VMS semantics.  Translate
107           the MAKEMAKER filepath to VMS style.
108
109       constants (override)
110           Fixes up numerous file and directory macros to insure VMS syntax
111           regardless of input syntax.  Also makes lists of files comma-
112           separated.
113
114       special_targets
115           Clear the default .SUFFIXES and put in our own list.
116
117       cflags (override)
118           Bypass shell script and produce qualifiers for CC directly (but
119           warn user if a shell script for this extension exists).  Fold
120           multiple /Defines into one, since some C compilers pay attention to
121           only one instance of this qualifier on the command line.
122
123       const_cccmd (override)
124           Adds directives to point C preprocessor to the right place when
125           handling #include <sys/foo.h> directives.  Also constructs CC
126           command line a bit differently than MM_Unix method.
127
128       tools_other (override)
129           Throw in some dubious extra macros for Makefile args.
130
131           Also keep around the old $(SAY) macro in case somebody's using it.
132
133       init_dist (override)
134           VMSish defaults for some values.
135
136             macro         description                     default
137
138             ZIPFLAGS      flags to pass to ZIP            -Vu
139
140             COMPRESS      compression command to          gzip
141                           use for tarfiles
142             SUFFIX        suffix to put on                -gz
143                           compressed files
144
145             SHAR          shar command to use             vms_share
146
147             DIST_DEFAULT  default target to use to        tardist
148                           create a distribution
149
150             DISTVNAME     Use VERSION_SYM instead of      $(DISTNAME)-$(VERSION_SYM)
151                           VERSION for the name
152
153       c_o (override)
154           Use VMS syntax on command line.  In particular, $(DEFINE) and
155           $(PERL_INC) have been pulled into $(CCCMD).  Also use MM[SK]
156           macros.
157
158       xs_c (override)
159           Use MM[SK] macros.
160
161       xs_o (override)
162           Use MM[SK] macros, and VMS command line for C compiler.
163
164       _xsbuild_replace_macro (override)
165           There is no simple replacement possible since a qualifier and all
166           its subqualifiers must be considered together, so we use our own
167           utility routine for the replacement.
168
169       _xsbuild_value (override)
170           Convert the extension spec to Unix format, as that's what will
171           match what's in the XSBUILD data structure.
172
173       dlsyms (override)
174           Create VMS linker options files specifying universal symbols for
175           this extension's shareable image(s), and listing other shareable
176           images or libraries to which it should be linked.
177
178       xs_obj_opt
179           Override to fixup -o flags.
180
181       dynamic_lib (override)
182           Use VMS Link command.
183
184       xs_make_static_lib (override)
185           Use VMS commands to manipulate object library.
186
187       static_lib_pure_cmd (override)
188           Use VMS commands to manipulate object library.
189
190       xs_static_lib_is_xs
191       extra_clean_files
192           Clean up some OS specific files.  Plus the temp file used to
193           shorten a lot of commands.  And the name mangler database.
194
195       zipfile_target
196       tarfile_target
197       shdist_target
198           Syntax for invoking shar, tar and zip differs from that for Unix.
199
200       install (override)
201           Work around DCL's 255 character limit several times,and use VMS-
202           style command line quoting in a few cases.
203
204       perldepend (override)
205           Use VMS-style syntax for files; it's cheaper to just do it directly
206           here than to have the MM_Unix method call "catfile" repeatedly.
207           Also, if we have to rebuild Config.pm, use MM[SK] to do it.
208
209       makeaperl (override)
210           Undertake to build a new set of Perl images using VMS commands.
211           Since VMS does dynamic loading, it's not necessary to statically
212           link each extension into the Perl image, so this isn't the normal
213           build path.  Consequently, it hasn't really been tested, and may
214           well be incomplete.
215
216       maketext_filter (override)
217           Ensure that colons marking targets are preceded by space, in order
218           to distinguish the target delimiter from a colon appearing as part
219           of a filespec.
220
221       prefixify (override)
222           prefixifying on VMS is simple.  Each should simply be:
223
224               perl_root:[some.dir]
225
226           which can just be converted to:
227
228               volume:[your.prefix.some.dir]
229
230           otherwise you get the default layout.
231
232           In effect, your search prefix is ignored and $Config{vms_prefix} is
233           used instead.
234
235       cd
236       oneliner
237       echo
238           perl trips up on "<foo>" thinking it's an input redirect.  So we
239           use the native Write command instead.  Besides, it's faster.
240
241       quote_literal
242       escape_dollarsigns
243           Quote, don't escape.
244
245       escape_all_dollarsigns
246           Quote, don't escape.
247
248       escape_newlines
249       max_exec_len
250           256 characters.
251
252       init_linker
253       catdir (override)
254       catfile (override)
255           Eliminate the macros in the output to the MMS/MMK file.
256
257           (File::Spec::VMS used to do this for us, but it's being removed)
258
259       eliminate_macros
260           Expands MM[KS]/Make macros in a text string, using the contents of
261           identically named elements of %$self, and returns the result as a
262           file specification in Unix syntax.
263
264           NOTE:  This is the canonical version of the method.  The version in
265           File::Spec::VMS is deprecated.
266
267       fixpath
268              my $path = $mm->fixpath($path);
269              my $path = $mm->fixpath($path, $is_dir);
270
271           Catchall routine to clean up problem MM[SK]/Make macros.  Expands
272           macros in any directory specification, in order to avoid
273           juxtaposing two VMS-syntax directories when MM[SK] is run.  Also
274           expands expressions which are all macro, so that we can tell how
275           long the expansion is, and avoid overrunning DCL's command buffer
276           when MM[KS] is running.
277
278           fixpath() checks to see whether the result matches the name of a
279           directory in the current default directory and returns a directory
280           or file specification accordingly.  $is_dir can be set to true to
281           force fixpath() to consider the path to be a directory or false to
282           force it to be a file.
283
284           NOTE:  This is the canonical version of the method.  The version in
285           File::Spec::VMS is deprecated.
286
287       os_flavor
288           VMS is VMS.
289
290       is_make_type (override)
291           None of the make types being checked for is viable on VMS, plus our
292           $self->{MAKE} is an unexpanded (and unexpandable) macro whose value
293           is known only to the make utility itself.
294
295       make_type (override)
296           Returns a suitable string describing the type of makefile being
297           written.
298

AUTHOR

300       Original author Charles Bailey bailey@newman.upenn.edu
301
302       Maintained by Michael G Schwern schwern@pobox.com
303
304       See ExtUtils::MakeMaker for patching and contact information.
305
306
307
308perl v5.38.0                      2023-07-20               ExtUtils::MM_VMS(3)
Impressum