Open karenetheridge opened 10 years ago
Keep in mind that "NA: platform not supported" has a very loose definition of "platform". And meta needs to be careful not to require a turing complete language to do all the OS logic. :-)
Indeed! I was thinking of a syntax that could say "only things in this list will work" or "things in this list are disallowed", where "thing" is something like what is in $Config{osname}
.
See also: https://metacpan.org/pod/Devel::AssertOS
Yeah, I've had requirements like "linux or FreeBSD or darwin 9+". I suspect this will only help in a limited set of circumstances.
That said, 90%+ of cases will be "Unix" vs "Not Unix".
That said, 90%+ of cases will be "Unix" vs "Not Unix".
More like "Unix" vs "Windows", with VMS being ignored and anything else no longer existing in a meaningful sense.
More like "Unix" vs "Windows", with VMS being ignored and anything else no longer existing in a meaningful sense.
Well, yeah. I originally wrote that, but thought that usually the restriction of "won't work on Windows" also means "won't work on VMS either".
Well, yeah. I originally wrote that, but thought that usually the restriction of "won't work on Windows" also means "won't work on VMS either".
True, but Win32::* won't work on VMS either. Actually, I suspect quite a bit of CPAN doesn't.
I don't think anyone is running a smoke tester for VMS, so it's an impossible target for most people unless they run the box themselves. A long time ago I wanted to put VMS on a Multia so I signed up for the compaq user's group to get a "free educational edition." They sent me a CD and no license and signed me up for permanent mailing lists.
That said, I was looking for this feature because I've had to blacklist Win32 before in some of my modules. I realized that having smoke testers download and attempt to build them is a waste of I/O.
Yes, that's optimizing somebody elses problem, or a tragedy of the commons, but it seems like it might be nice to be able to pull the META first and ignore it if the OS is wrong.
Quite frankly, the only way forward is for someone to add some x_os_hints
field to their meta and add support to smokers. It only takes two patches…
It would be useful to have a standard way in metadata to specify positive or negative OS requirements.
re #toolchain 2013-07-10/11: