P5-task-weaken

Jul 20, 2023

Ensure that a platform has weaken support

One recurring problem in modules that use ScalarUtil’s weaken function is that it is not present in the pure-perl variant.

While this isn’t necessarily always a problem in a straight CPAN-based Perl environment, some operating system distributions only include the pure-Perl versions, don’t include the XS version, and so weaken is then “missing” from the platform, despite passing a dependency on ScalarUtil successfully.

Most notably this is RedHat Linux at time of writing, but other come and go and do the same thing, hence “recurring problem”.

The normal solution is to manually write tests in each distribution to ensure that weaken is available.

This restores the functionality testing to a dependency you do once in your Makefile.PL, rather than something you have to write extra tests for each time you write a module.

It should also help make the package auto-generators for the various operating systems play more nicely, because it introduces a dependency that they have to have a proper weaken in order to work.



Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler