SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Devel-Hide rpm build for : OpenSuSE. For other distributions click perl-Devel-Hide.

Name : perl-Devel-Hide
Version : 0.0009 Vendor : obs://build_opensuse_org/home:sbahling
Release : 2.2 Date : 2018-06-20 04:03:46
Group : Development/Libraries/Perl Source RPM : perl-Devel-Hide-0.0009-2.2.src.rpm
Size : 0.01 MB
Packager : (none)
Summary : Forces the unavailability of specified Perl modules (for testing)
Description :
Given a list of Perl modules/filenames, this module makes \'require\' and
\'use\' statements fail (no matter the specified files/modules are installed
or not).

They _die_ with a message like:

Can\'t locate Module/ToHide.pm (hidden)

The original intent of this module is to allow Perl developers to test for
alternative behavior when some modules are not available. In a Perl
installation, where many modules are already installed, there is a chance
to screw things up because you take for granted things that may not be
there in other machines.

For example, to test if your distribution does the right thing when a
module is missing, you can do

perl -MDevel::Hide=Test::Pod Makefile.PL

forcing \'Test::Pod\' to not be found (whether it is installed or not).

Another use case is to force a module which can choose between two
requisites to use the one which is not the default. For example,
\'XML::Simple\' needs a parser module and may use \'XML::Parser\' or \'XML::SAX\'
(preferring the latter). If you have both of them installed, it will always
try \'XML::SAX\'. But you can say:

perl -MDevel::Hide=XML::SAX script_which_uses_xml_simple.pl

NOTE. This module does not use the Carp manpage. As said before, denial
_dies_.

This module is pretty trivial. It uses a code reference in AATTINC to get rid
of specific modules during require - denying they can be successfully
loaded and stopping the search before they have a chance to be found.

There are three alternative ways to include modules in the hidden list:

* *

setting AATTDevel::Hide::HIDDEN

* *

environment variable DEVEL_HIDE_PM

* *

import()

Optionally, you can propagate the list of hidden modules to your process\'
child processes, by passing \'-from:children\' as the first option when you
use() this module. This works by populating \'PERL5OPT\', and is incompatible
with Taint mode, as explained in the perlrun manpage.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/sbahling:/Backports:/SLE-15/SLE_15/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(Devel::Hide)
perl-Devel-Hide

Requires :
perl(:MODULE_COMPAT_5.26.1)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Devel
/usr/lib/perl5/vendor_perl/5.26.1/Devel/Hide.pm
/usr/lib/perl5/vendor_perl/5.26.1/ppc64le-linux-thread-multi
/usr/share/doc/packages/perl-Devel-Hide
/usr/share/doc/packages/perl-Devel-Hide/Changes
/usr/share/doc/packages/perl-Devel-Hide/README
/usr/share/man/man3/Devel::Hide.3pm.gz

 
ICM