ExtUtils::MM_VMS(3)
β¨ NAME β¨
bestie, welcome to the ExtUtils::MM_VMS(3) page π β this is the user-contributed Perl manual for ExtUtils::MM_VMS, aka methods to override UN*X behaviour in ExtUtils::MakeMaker. It's giving "VMS said not today" energy, and honestly? Iconic.
πΈ SYNOPSIS πΈ
okay so the synopsis is literally this, no cap:
Do not use this directly.
Instead, use ExtUtils::MM and it will figure out which MM_*
class to use for you.
so yeah, bestie: do not use this directly. Use ExtUtils::MM and it will figure out which MM_* class to use for you β¨
π DESCRIPTION π
see ExtUtils::MM_Unix for a documentation of the methods provided there. This package overrides the implementation of these methods, not the semantics. lowkey important distinction, fr fr.
π§ Methods always loaded π§
wraplistβ Converts a list into a string wrapped at approximately 80 columns. cute, tidy, wrapped like a lil gift π
π Methods π
okay so quick legend, bestie: those methods which override default MM_Unix methods are marked (override), while methods unique to MM_VMS are marked (specific). For overridden methods, documentation is limited to an explanation of why this method overrides the MM_Unix method; see the ExtUtils::MM_Unix documentation for more details. iykyk π
guess_name(override) β Try to determine name of extension being built. We begin with the name of the current directory. Since VMS filenames are case-insensitive, however, we look for a.pmfile whose name matches that of the current directory (presumably the 'main'.pmfile for this extension), and try to find a"package"statement from which to obtain theMixed::Casepackage name. detective mode: activated π΅οΈββοΈfind_perl(override) β Use VMS file specification syntax and CLI commands to find and invoke Perl images. slay that path syntax β¨_fixin_replace_shebang(override) β Helper routine forMM->fixin(), overridden because there's no such thing as an actual shebang line that will be interpreted by the shell, so we just prepend$Config{startperl}and preserve the shebang line argument for any switches it may contain. no shebang drama, just vibes π«Άmaybe_command(override) β Follows VMS naming conventions for executable files. If the name passed in doesn't exactly match an executable file, appends.Exe(or equivalent) to check for executable image, and.Comto check for DCL procedure. If this fails, checks directories inDCL$PATHand finallySys$System:for an executable file having the name specified, with or without the.Exe-equivalent suffix. it's giving "we will find you" energy πpasthru(override) β The list of macro definitions to be passed through must be specified using the/MACROqualifier and must not add another/DEFINEqualifier. We prepend our own comma here to the contents of$(PASTHRU_DEFINE)because it is often empty and a comma always present inCCFLAGSwould generate a missing qualifier value error. commas are main characters here, apparently π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 in VMS it's pm_to_blib.ts. periodt.
perl_script(override) β If name passed in doesn't specify a readable file, appends.comor.pland tries again, since it's customary to have file types on all files under VMS. file type check, bestie πreplace_manpage_separatorβ Use as separator a character which is legal in a VMS-syntax file name. legal and cute, as it should be β¨init_DEST(override) β Because of the difficulty concatenating VMS filepaths we must pre-expand theDEST*variables. path concat said "not today" πinit_DIRFILESEPβ No separator between a directory path and a filename on VMS. no separator, no problem π«Άinit_main(override),init_tools(override) β Provide VMS-specific forms of various utility commands.
Sets DEV_NULL to nothing because I don't know how to do it on VMS. ngl, relatable π
Changes EQUALIZE_TIMESTAMP to set revision date of target file to one second later than 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. one second later, literally doing the most π
init_platform(override) β AddPERL_VMS,MM_VMS_REVISIONandMM_VMS_VERSION.
MM_VMS_REVISION is for backwards compatibility before MM_VMS had a $VERSION. nostalgic era fr fr π¦
platform_constantsinit_VERSION(override) β Override the*DEFINE_VERSIONmacros with VMS semantics. Translate theMAKEMAKERfilepath to VMS style. translation era β¨constants(override) β Fixes up numerous file and directory macros to insure VMS syntax regardless of input syntax. Also makes lists of files comma-separated. comma-separated and cute about it πspecial_targetsβ Clear the default.SUFFIXESand put in our own list. out with the old, in with the VMS πcflags(override) β Bypass shell script and produce qualifiers forCCdirectly (but warn user if a shell script for this extension exists). Fold multiple/Definesinto one, since some C compilers pay attention to only one instance of this qualifier on the command line. fold it like laundry, bestie π§Ίconst_cccmd(override) β Adds directives to point C preprocessor to the right place when handling#include <sys/foo.h>directives. Also constructsCCcommand line a bit differently thanMM_Unixmethod. preprocessor said "point me to the right place" and we did β¨tools_other(override) β Throw in some dubious extra macros for Makefile args.
Also keep around the old $(SAY) macro in case somebody's using it. respect for the old guard π«Ά
init_dist(override) β VMSish defaults for some values. here's the tea:ZIPFLAGSβ flags to pass to ZIP β 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) β Use VMS syntax on command line. In particular,$(DEFINE)and$(PERL_INC)have been pulled into$(CCCMD). Also useMM[SK]macros. VMS syntax ate πxs_c(override) β UseMM[SK]macros. short, sweet, slayed β¨xs_o(override) β UseMM[SK]macros, and VMS command line for C compiler. compiler but make it VMS π«Ά_xsbuild_replace_macro(override) β There is no simple replacement possible since a qualifier and all its subqualifiers must be considered together, so we use our own utility routine for the replacement. no simple swap, bestie π_xsbuild_value(override) β Convert the extension spec to Unix format, as that's what will match what's in theXSBUILDdata structure. format conversion, iconic behavior πdlsyms(override) β Create 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. linker options files but make it VMS β¨xs_obj_optβ Override to fixup-oflags. fixup era π₯dynamic_lib(override) β Use VMSLinkcommand. link it, bestie πxs_make_static_lib(override) β Use VMS commands to manipulate object library. object library said "handle me with VMS commands" π«Άstatic_lib_pure_cmd(override) β Use VMS commands to manipulate object library. same energy, same slay β¨xs_static_lib_is_xsextra_clean_filesβ Clean up some OS specific files. Plus the temp file used to shorten a lot of commands. And the name mangler database. clean-up crew, assemble π§Ήzipfile_target,tarfile_target,shdist_targetβ Syntax for invoking shar, tar and zip differs from that for Unix. different syntax, same destiny πinstall(override) β Work around DCL's 255 character limit several times, and use VMS-style command line quoting in a few cases. 255 characters said "that's enough" and we worked around it πperldepend(override) β Use 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, useMM[SK]to do it. efficiency era fr fr β¨makeaperl(override) β Undertake 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.
warning bestie: this is not the normal build path, it hasn't really been tested, and it may well be incomplete π handle with care π«Ά
maketext_filter(override) β Ensure that colons marking targets are preceded by space, in order to distinguish the target delimiter from a colon appearing as part of a filespec. colon clarity, periodt π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. plot twist: your prefix is ignored, $Config{vms_prefix} is the main character now π
cd,oneliner,echoβ perl trips up on<foo>thinking it's an input redirect. So we use the nativeWritecommand instead. Besides, it's faster. speed and avoiding confusion? we love to see it π₯quote_literal,escape_dollarsignsβ Quote, don't escape. simple as that, bestie πescape_all_dollarsignsβ Quote, don't escape. same rule, all the dollarsigns π«Άescape_newlinesmax_exec_lenβ 256 characters. that's the number, no cap β¨init_linkercatdir(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 to that era π¦
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. canonical means main character, and deprecated means bye-bye π
fixpathβ signature vibes:my $path = $mm->fixpath($path);andmy $path = $mm->fixpath($path, $is_dir);
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.
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. again: canonical stays, deprecated goes π
os_flavorβ VMS is VMS. periodt. π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. mystery macro energy πmake_type(override) β Returns a suitable string describing the type of makefile being written. string, but make it descriptive β¨
π«Ά AUTHOR π«Ά
- Original author Charles Bailey
bailey@newman.upenn.edu - Maintained by Michael G Schwern
schwern@pobox.com - See
ExtUtils::MakeMakerfor patching and contact information.
okay bestie, that's the whole page π β source/version: perl v5.42.0, dated 2023-04-04. byeee π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-ExtUtils-MakeMaker 7.70-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms