How to Install and Uninstall perl-Task-Weaken Package on openSUSE Leap

Last updated: December 28,2024

1. Install "perl-Task-Weaken" package

In this section, we are going to explain the necessary steps to install perl-Task-Weaken on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install perl-Task-Weaken

2. Uninstall "perl-Task-Weaken" package

Please follow the guidance below to uninstall perl-Task-Weaken on openSUSE Leap:

$ sudo zypper remove perl-Task-Weaken

3. Information about the perl-Task-Weaken package on openSUSE Leap

Information for package perl-Task-Weaken:
-----------------------------------------
Repository : Main Repository
Name : perl-Task-Weaken
Version : 1.06-2.13
Arch : noarch
Vendor : SUSE LLC
Installed Size : 33.3 KiB
Installed : No
Status : not installed
Source package : perl-Task-Weaken-1.06-2.13.src
Upstream URL : https://metacpan.org/release/Task-Weaken
Summary : Ensure that a platform has weaken support
Description :
One recurring problem in modules that use Scalar::Util'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 Scalar::Util
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.