Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-lib-relative-1.2.0-2.1 RPM for noarch

From OpenSuSE Ports Tumbleweed for noarch

Name: perl-lib-relative Distribution: openSUSE:Factory:zSystems
Version: 1.2.0 Vendor: openSUSE
Release: 2.1 Build date: Sat Mar 9 21:54:11 2024
Group: Unspecified Build host: s390zl21
Size: 22318 Source RPM: perl-lib-relative-1.2.0-2.1.src.rpm
Packager: https://bugs.opensuse.org
Url: https://metacpan.org/release/lib-relative
Summary: Add paths relative to the current file to @INC
Adding a path to @INC to load modules from a local directory may seem
simple, but has a few common pitfalls to be aware of. Directly adding a
relative path to '@INC' means that any later code that changes the current
working directory will change where modules are loaded from. This applies
to the '.' path that used to be in '@INC' by default until perl 5.26.0, or
a relative path added in code like 'use lib 'path/to/lib'', and may be a
vulnerability if such a location is not supposed to be writable.
Additionally, the commonly used FindBin module relies on interpreter state
and the path to the original script invoked by the perl interpreter,
sometimes requiring workarounds in uncommon cases like generated or
embedded code. This module proposes a more straightforward method: take a
path relative to the current file, absolutize it, and add it to '@INC'.

If this module is already available to be loaded, it can be used as with
lib.pm, passing relative paths, which will be absolutized relative to the
current file then passed on to lib. Multiple arguments will be separately
absolutized, and absolute paths will be passed on unchanged.

For cases where this module cannot be loaded beforehand, the last section
of the "SYNOPSIS" can be copy-pasted into a file to perform the same task.

Provides

Requires

License

Artistic-2.0

Changelog

* Fri Mar 08 2024 Tina Müller <tina.mueller@suse.com>
  - Fix disabling of __perllib_provides
* Mon Jul 24 2023 Tina Müller <timueller+perl@suse.de>
  - updated to 1.002
    see /usr/share/doc/packages/perl-lib-relative/Changes
    1.002     2023-07-23 21:17:44 EDT
    - Fix checking whether symlinks are available for testing on Win32 and msys (#4, genio)
* Thu Jun 16 2022 Tina Müller <timueller+perl@suse.de>
  - updated to 1.001
    see /usr/share/doc/packages/perl-lib-relative/Changes
    1.001     2022-06-15 14:13:17 EDT
    - Skip symlink tests on msys as symlinks are broken on this platform (#2, pauloscustodio)
* Fri Oct 16 2020 Dirk Stoecker <opensuse@dstoecker.de>
  - Created

Files

/usr/lib/perl5/vendor_perl/5.38.2/lib
/usr/lib/perl5/vendor_perl/5.38.2/lib/relative.pm
/usr/share/doc/packages/perl-lib-relative
/usr/share/doc/packages/perl-lib-relative/CONTRIBUTING.md
/usr/share/doc/packages/perl-lib-relative/Changes
/usr/share/doc/packages/perl-lib-relative/README
/usr/share/licenses/perl-lib-relative
/usr/share/licenses/perl-lib-relative/LICENSE
/usr/share/man/man3/lib::relative.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Thu May 2 23:22:08 2024