EXTUTILS::MM_VMS(3perl)
π NAME π
ExtUtils::MM_VMS β the methods that override UN*X behaviour in ExtUtils::MakeMaker π¦
β¨ SYNOPSIS β¨
okay bestie, listen:
Do not use this directly.
Instead, use ExtUtils::MM and it will figure out which MM_*
class to use for you.
like, do not come for this module directly. ExtUtils::MM handles the matchmaking π
πΈ DESCRIPTION πΈ
The methods that live here are documented over in ExtUtils::MM_Unix β go look there for the full tour. What this package does is override the implementation of those methods, not the semantics. Same energy, different plumbing β¨
π Methods always loaded π
wraplistβ converts a list into a string, wrapped at approximately 80 columns. cute, tidy, no cap.
π Methods π
Two flavours here, and they're labelled:
- methods that override the default
MM_Unixbehaviour are marked (override) - methods that are unique to
MM_VMSare marked (specific)
For the overridden ones, the docs only tell you why this method overrides the MM_Unix one β for everything else, the ExtUtils::MM_Unix docs are your bestie π«Ά
guess_name(override) β tries to figure out the name of the extension being built. It starts with the name of the current directory. But since VMS filenames are case-insensitive, it goes looking for a.pmfile whose name matches the current directory (presumably the 'main'.pmfile for this extension) and tries to find apackagestatement so it can get theMixed::Casepackage name out of it. detective work fr πfind_perl(override) β uses VMS file specification syntax and CLI commands to find and invoke Perl images._fixin_replace_shebang(override) β helper routine forMM->fixin(). It's overridden because there's literally no such thing as an actual shebang line that a shell will interpret here, so we just prepend$Config{startperl}and preserve the shebang line argument for any switches it might contain.maybe_command(override) β follows VMS naming conventions for executable files. If the name passed in doesn't exactly match an executable file, it appends.Exe(or the equivalent) to check for an executable image, and.Comto check for a DCL procedure. If that flops, it checks directories inDCL$PATHand finallySys$System:for an executable file with the name specified, with or without the.Exe-equivalent suffix. it's giving persistence πpasthru(override) β the list of macro definitions to pass through has to be specified using the/MACROqualifier and must not add another/DEFINEqualifier. We prepend our own comma to the contents of$(PASTHRU_DEFINE)here, because it's often empty and a comma that's always present inCCFLAGSwould generate a missing qualifier value error.pm_to_blib(override) β VMS wants a dot in every file, so we can't have one calledpm_to_blibβ it becomespm_to_blib.and MMS/K isn't smart enough to know that when you have a target calledpm_to_blibit should look forpm_to_blib..
So on VMS it's pm_to_blib.ts. periodt.
perl_script(override) β if the name passed in doesn't specify a readable file, it appends.comor.pland tries again, since it's customary to have file types on all files under VMS.replace_manpage_separatorβ uses as separator a character which is legal in a VMS-syntax file name.init_DEST(override) β because concatenating VMS filepaths is such a struggle, we have to pre-expand theDEST*variables. πinit_DIRFILESEPβ no separator between a directory path and a filename on VMS. none. zero. iconic.init_main(override)init_tools(override) β provides VMS-specific forms of various utility commands.- Sets
DEV_NULLto nothing because I don't know how to do it on VMS. - Changes
EQUALIZE_TIMESTAMPto set the revision date of the target file to one second later than the source file, since MMK interprets precisely equal revision dates for a source and target file as a sign that the target needs to be updated. π
- Sets
init_platform(override) β addsPERL_VMS,MM_VMS_REVISIONandMM_VMS_VERSION.MM_VMS_REVISIONis for backwards compatibility, from beforeMM_VMShad a$VERSION.
platform_constants(no extra deets on this one in the original β it just exists)init_VERSION(override) β overrides the*DEFINE_VERSIONmacros with VMS semantics, and translates theMAKEMAKERfilepath to VMS style.constants(override) β fixes up numerous file and directory macros to insure VMS syntax regardless of the input syntax. Also makes lists of files comma-separated.special_targetsβ clears the default.SUFFIXESand puts in our own list.cflags(override) β bypasses the shell script and produces qualifiers forCCdirectly (but warns the user if a shell script for this extension exists). Folds multiple/Definesinto one, since some C compilers pay attention to only one instance of this qualifier on the command line. πconst_cccmd(override) β adds directives to point the C preprocessor to the right place when handling#include <sys/foo.h>directives. Also constructs theCCcommand line a bit differently than theMM_Unixmethod does.tools_other(override) β throws in some dubious extra macros for Makefile args. Also keeps the old$(SAY)macro around in case somebody's using it.init_dist(override) β VMSish defaults for some values:ZIPFLAGSβ flags to pass toZIP, default:-VuCOMPRESSβ compression command to use for tarfiles, default:gzipSUFFIXβ suffix to put on compressed files, default:-gzSHARβ shar command to use, default:vms_shareDIST_DEFAULTβ default target to use to create a distribution, default:tardistDISTVNAMEβ useVERSION_SYMinstead ofVERSIONfor the name, default:$(DISTNAME)-$(VERSION_SYM)
c_o(override) β uses VMS syntax on the command line. In particular,$(DEFINE)and$(PERL_INC)have been pulled into$(CCCMD). Also uses MM[SK] macros.xs_c(override) β uses MM[SK] macros.xs_o(override) β uses MM[SK] macros, and the VMS command line for the C compiler._xsbuild_replace_macro(override) β there is no simple replacement possible, since a qualifier and all its subqualifiers have to be considered together, so we use our own utility routine for the replacement._xsbuild_value(override) β converts the extension spec to Unix format, because that's what will match what's in theXSBUILDdata structure.dlsyms(override) β creates VMS linker options files specifying universal symbols for this extension's shareable image(s), and listing other shareable images or libraries to which it should be linked. πxs_obj_optβ override to fixup-oflags.dynamic_lib(override) β uses the VMSLinkcommand.xs_make_static_lib(override) β uses VMS commands to manipulate the object library.static_lib_pure_cmd(override) β uses VMS commands to manipulate the object library.xs_static_lib_is_xs(no extra deets in the original π )extra_clean_filesβ cleans up some OS specific files. Plus the temp file used to shorten a lot of commands. And the name mangler database.zipfile_targettarfile_targetshdist_targetβ the syntax for invoking shar, tar and zip differs from the Unix one.install(override) β works around DCL's 255 character limit several times, and uses VMS-style command line quoting in a few cases.perldepend(override) β uses VMS-style syntax for files; it's cheaper to just do it directly here than to have theMM_Unixmethod callcatfilerepeatedly. Also, if we have to rebuildConfig.pm, it uses MM[SK] to do it.makeaperl(override) β undertakes to build a new set of Perl images using VMS commands. Since VMS does dynamic loading, it's not necessary to statically link each extension into the Perl image, so this isn't the normal build path. Consequently, it hasn't really been tested, and may well be incomplete.
bestie. read that again. not really tested, possibly incomplete. proceed with the appropriate level of caution π
maketext_filter(override) β ensures that colons marking targets are preceded by a space, in order to distinguish the target delimiter from a colon appearing as part of a filespec.prefixify(override) β prefixifying on VMS is simple. Each should simply be:
perl_root:[some.dir]
which can just be converted to:
volume:[your.prefix.some.dir]
otherwise you get the default layout.
In effect, your search prefix is ignored and $Config{vms_prefix} is used instead.
cdonelinerechoβ perl trips up on<foo>thinking it's an input redirect. So we use the nativeWritecommand instead. Besides, it's faster. β¨quote_literalescape_dollarsignsβ quote, don't escape.escape_all_dollarsignsβ quote, don't escape.escape_newlinesmax_exec_lenβ 256 characters.init_linkercatdir(override)catfile(override) β eliminate the macros in the output to the MMS/MMK file.- (
File::Spec::VMSused to do this for us, but it's being removed. rip π)
- (
eliminate_macrosβ expands MM[KS]/Make macros in a text string, using the contents of identically named elements of%$self, and returns the result as a file specification in Unix syntax.
NOTE: this is the canonical version of the method. The version in File::Spec::VMS is deprecated.
fixpathβ catchall routine to clean up problem MM[SK]/Make macros. Expands macros in any directory specification, in order to avoid juxtaposing two VMS-syntax directories when MM[SK] is run. Also expands expressions which are all macro, so that we can tell how long the expansion is, and avoid overrunning DCL's command buffer when MM[KS] is running.
my $path = $mm->fixpath($path);
my $path = $mm->fixpath($path, $is_dir);
fixpath() checks to see whether the result matches the name of a directory in the current default directory and returns a directory or file specification accordingly. $is_dir can be set to true to force fixpath() to consider the path to be a directory, or false to force it to be a file.
NOTE: this is the canonical version of the method. The version in File::Spec::VMS is deprecated.
os_flavorβ VMS is VMS. πis_make_type(override) β none of the make types being checked for is viable on VMS, plus our$self->{MAKE}is an unexpanded (and unexpandable) macro whose value is known only to the make utility itself.make_type(override) β returns a suitable string describing the type of makefile being written.
π AUTHOR π
Original author: Charles Bailey bailey@newman.upenn.edu
Maintained by: Michael G Schwern schwern@pobox.com
See ExtUtils::MakeMaker for patching and contact information.
okay that's the whole lore bestie π«Ά this was perl v5.44.0, dated 2026-10-17, from the ExtUtils::MM_VMS(3perl) page β go forth and make your VMS Makefiles, you absolute icon πβ¨ππ¦πΈπ
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms