perl-Dist-CheckConflicts-0.09-2.1.noarch.rpm


Advertisement

Description

perl-Dist-CheckConflicts - declare version conflicts for your dist

Property Value
Distribution openSUSE Leap 42.2
Repository openSUSE Oss all
Package name perl-Dist-CheckConflicts
Package version 0.09
Package release 2.1
Package architecture noarch
Package type rpm
Installed size 32.41 KB
Download size 20.78 KB
Official Mirror ftp.gwdg.de
One shortcoming of the CPAN clients that currently exist is that they have
no way of specifying conflicting downstream dependencies of modules. This
module attempts to work around this issue by allowing you to specify
conflicting versions of modules separately, and deal with them after the
module is done installing.
For instance, say you have a module 'Foo', and some other module 'Bar' uses
'Foo'. If 'Foo' were to change its API in a non-backwards-compatible way,
this would cause 'Bar' to break until it is updated to use the new API.
'Foo' can't just depend on the fixed version of 'Bar', because this will
cause a circular dependency (because 'Bar' is already depending on 'Foo'),
and this doesn't express intent properly anyway - 'Foo' doesn't use 'Bar'
at all. The ideal solution would be for there to be a way to specify
conflicting versions of modules in a way that would let CPAN clients update
conflicting modules automatically after an existing module is upgraded, but
until that happens, this module will allow users to do this manually.
This module accepts a hash of options passed to its 'use' statement, with
these keys being valid:
* -conflicts
A hashref of conflict specifications, where keys are module names, and
values are the last broken version - any version greater than the
specified version should work.
* -also
Additional modules to get conflicts from (potentially recursively). This
should generally be a list of modules which use Dist::CheckConflicts,
which correspond to the dists that your dist depends on. (In an ideal
world, this would be intuited directly from your dependency list, but the
dependency list isn't available outside of build time).
* -dist
The name of the distribution, to make the error message from
check_conflicts more user-friendly.
The methods listed below are exported by this module into the module that
uses it, so you should call these methods on your module, not
Dist::CheckConflicts.
As an example, this command line can be used to update your modules, after
installing the 'Foo' dist (assuming that 'Foo::Conflicts' is the module in
the 'Foo' dist which uses Dist::CheckConflicts):
perl -MFoo::Conflicts -e'print "$_\n"
for map { $_->{package} } Foo::Conflicts->calculate_conflicts' | cpanm
As an added bonus, loading your conflicts module will provide warnings at
runtime if conflicting modules are detected (regardless of whether they are
loaded before or afterwards).

Alternatives

Package Version Architecture Repository
perl-Dist-CheckConflicts - - -

Requires

Name Value
perl(:MODULE_COMPAT_5.18.2) -
perl(List::MoreUtils) >= 0.12
perl(Module::Runtime) -
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1

Provides

Name Value
perl(Dist::CheckConflicts) = 0.09
perl-Dist-CheckConflicts = 0.09-2.1

Download

Type URL
Binary Package perl-Dist-CheckConflicts-0.09-2.1.noarch.rpm
Source Package perl-Dist-CheckConflicts-0.09-2.1.src.rpm

Install Howto

Install perl-Dist-CheckConflicts rpm package:

# zypper install perl-Dist-CheckConflicts

See Also

Package Description
perl-Dist-Zilla-6.007-1.1.noarch.rpm Distribution Builder; Installer Not Included!
perl-Email-Address-1.908-2.1.noarch.rpm RFC 2822 Address Parsing and Creation
perl-Email-Date-Format-1.005-4.1.noarch.rpm produce RFC 2822 date strings
perl-Email-MIME-ContentType-1.018-4.1.noarch.rpm Parse a MIME Content-Type Header
perl-Email-MIME-Encodings-1.315-4.1.noarch.rpm A unified interface to MIME encoding and decoding
perl-Email-MessageID-1.406-9.1.noarch.rpm Generate world unique message-ids
perl-Email-Simple-2.210-1.1.noarch.rpm Simple Parsing of Rfc2822 Message Format and Headers
perl-Email-Valid-1.200-1.1.noarch.rpm Check validity of Internet email addresses
perl-Encode-Detect-1.01-22.17.x86_64.rpm An Encode::Encoding subclass that detects the encoding of data
perl-Encode-EUCJPASCII-0.03-6.3.x86_64.rpm An eucJP-open mapping
perl-Encode-HanExtra-0.23-87.19.x86_64.rpm Extra sets of Chinese encodings
perl-Encode-JIS2K-0.02-163.19.x86_64.rpm JIS X 0212 (aka JIS 2000) Encodings
perl-Encode-Locale-1.03-10.2.noarch.rpm Determine the locale encoding
perl-Error-0.17021-4.1.noarch.rpm Error/exception handling in an OO-ish way
perl-Eval-Closure-0.14-1.1.noarch.rpm Safely and Cleanly Create Closures Via String Eval
Advertisement
Advertisement