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_Unix behaviour are marked (override)
  • methods that are unique to MM_VMS are 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 .pm file whose name matches the current directory (presumably the 'main' .pm file for this extension) and tries to find a package statement so it can get the Mixed::Case package 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 for MM->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 .Com to check for a DCL procedure. If that flops, it checks directories in DCL$PATH and finally Sys$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 /MACRO qualifier and must not add another /DEFINE qualifier. We prepend our own comma to the contents of $(PASTHRU_DEFINE) here, because it's often empty and a comma that's always present in CCFLAGS would generate a missing qualifier value error.
  • pm_to_blib (override) β€” VMS wants a dot in every file, so we can't have one called pm_to_blib β€” it becomes pm_to_blib. and MMS/K isn't smart enough to know that when you have a target called pm_to_blib it should look for pm_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 .com or .pl and 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 the DEST* 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_NULL to nothing because I don't know how to do it on VMS.
    • Changes EQUALIZE_TIMESTAMP to 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. πŸ‘‘
  • init_platform (override) β€” adds PERL_VMS, MM_VMS_REVISION and MM_VMS_VERSION.
    • MM_VMS_REVISION is for backwards compatibility, from before MM_VMS had a $VERSION.
  • platform_constants (no extra deets on this one in the original β€” it just exists)
  • init_VERSION (override) β€” overrides the *DEFINE_VERSION macros with VMS semantics, and translates the MAKEMAKER filepath 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 .SUFFIXES and puts in our own list.
  • cflags (override) β€” bypasses the shell script and produces qualifiers for CC directly (but warns the user if a shell script for this extension exists). Folds multiple /Defines into 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 the CC command line a bit differently than the MM_Unix method 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 to ZIP, default: -Vu
    • COMPRESS β€” compression command to use for tarfiles, default: gzip
    • SUFFIX β€” suffix to put on compressed files, default: -gz
    • SHAR β€” shar command to use, default: vms_share
    • DIST_DEFAULT β€” default target to use to create a distribution, default: tardist
    • DISTVNAME β€” use VERSION_SYM instead of VERSION for 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 the XSBUILD data 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 -o flags.
  • dynamic_lib (override) β€” uses the VMS Link command.
  • 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_target
  • tarfile_target
  • shdist_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 the MM_Unix method call catfile repeatedly. Also, if we have to rebuild Config.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.

  • cd
  • oneliner
  • echo β€” perl trips up on <foo> thinking it's an input redirect. So we use the native Write command instead. Besides, it's faster. ✨
  • quote_literal
  • escape_dollarsigns β€” quote, don't escape.
  • escape_all_dollarsigns β€” quote, don't escape.
  • escape_newlines
  • max_exec_len β€” 256 characters.
  • init_linker
  • catdir (override)
  • catfile (override) β€” eliminate the macros in the output to the MMS/MMK file.
    • (File::Spec::VMS used 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