pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/p5-FindBin-libs



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Nov 30 11:15:26 UTC 2026

Modified Files:
        pkgsrc/devel/p5-FindBin-libs: Makefile distinfo

Log Message:
p5-FindBin-libs: update to 5.5.3.

Security fix release.

-   5.5.3 Wed Nov 25 23:06:33 EST 2026

    Installs on every perl from v5.8.1 (v5.8.0 is no longer supported).

    Prerequisites follow the perl: File::Util::SecureDir, YAML::Tiny,
    and List::Util 1.45 are required only on v5.40 and later.

-   5.5.2 Mon Nov 23 22:27:20 EST 2026

    Fix Makefile.PL bug; sorry about that.

-   5.5.1 Fri Nov 20 12:19:02 EST 2026

    fixed test: fixtures are unique tempdirs, so leftovers from
    earlier runs or tests running in parallel cannot collide.

-   5.5.0 Fri Nov 20 10:53:06 EST 2026

    New module FindBin::Files v0.1.0: FindBin::libs for files.
    Walks up from $FindBin::Bin and exports the paths of a relative
    file found below each parent directory, e.g. configuration
    files ('file=.myconfig.yaml', 'dir=etc file=app.conf').
    Nothing is added to @INC or the environment.
    - scalar exports the nearest match, a list all of them.
    - strict (default) skips dangling symlinks; nostrict returns
      them.
    - The default export name comes from the file's basename.
    - Tests in t/50-files.

-   5.4.1 Sun Nov 15 01:32:20 EST 2026

   Makefile.PL udpates to include File::Util::SecureDir as a
   dependency.

-   5.4.0 Sun Nov 15 00:05:45 EST 2026

    Bug fixes for FindBin::Bin, FindBin::Parents, and FindBin::libs;
    the basic API is preserved.  The POD for all three is updated to
    be consistent with their behavior, with notes added that specify
    the outcomes of edge cases, useful to read when diagnosing a
    failure.

    FindBin::Bin v2.3.0
    - pwd() warns and uses getcwd when $ENV{ PWD } is stale (e.g.,
      after a builtin chdir), and dies if getcwd fails (e.g., the
      working directory was removed).
    - A $0 under /dev/ (perl /dev/stdin, bash process substitution)
      is handled like '-'.
    - import() takes the first abspath/noabspath flag.

    FindBin::Parents v1.0.0
    - dir_paths: $assume_dir overrides the -d test; without it a path
      that does not exist croaks.  $path must be absolute or 'pwd'.
    - The root is listed once; the cache is keyed on whether the path
      is treated as a directory.

    FindBin::libs v5.1.0
    - Directory searches use -d instead of -e.
    - scalar requires export, and croaks without it; noscalar no
      longer implies subonly.
    - The default ignore list is "/,/usr", which skips /lib and
      /usr/lib as documented; ",usr" skipped only /lib.
    - Documented options and behavior, see perldoc FindBin::libs:
      - nofail: no warning when nothing is found ("Options").
      - abspath, noabspath: walk up from $Bin_p or $Bin_l ("Options").
      - VERBOSE_FINDBIN_LIBS, VERBOSE: default verbose and print
        ("Options", verbose).
      - noNAME negates any option ("General Use").
      - File::Util::SecureDir check before use lib, PERL5LIB, and
        LD_LIBRARY_PATH; exported variables are not checked
        ("Directory security").

    Tests
    - Every test loads the module from the checkout, validating the
      lib directory first (t/00-lib-check.t).
    - New tests for dir_paths, pwd(), $0 under /dev/, and the libs.pm
      nofail, ignore=, abspath, and scalar options and the default
      ignore list.

-   5.3.9 Sun Nov  8 18:30:00 EST 2026

    Add nofail import option to FindBin::libs (libs.pm v5.0.8).
    With nofail, the "Empty lib directory list" and "Empty list of usable
    paths" carps are suppressed when no directories are found. Default
    behavior (carp on empty results) is unchanged. Example scripts all
    use nofail since they illustrate directory lookup patterns that may
    find nothing in a given working tree.

    Remove two unused use FindBin::libs calls from t/bin/install-tests.d/02-perl_t
    (base=Dancer2 and base=.prove) that reliably found no directories and
    emitted "Empty lib directory list" carps each time the stub ran.

-   5.3.8 Sun Nov  8 17:30:00 EST 2026

    Replace FindBin::DirFilter with File::Util::SecureDir in FindBin::libs.
    libs.pm now uses a process-wide singleton (File::Util::SecureDir->new)
    and $secure->filter_dirs(@libz) in place of the per-package apply_filter.
    FindBin::DirFilter.pm and its four test files are removed; the module is
    now a separate distribution. PREREQ_PM adds File::Util::SecureDir v0.1.0.

    Fix three pre-existing warnings in libs.pm v5.0.7 exposed by -w under
    Perl 5.42:
    - catpath() in $append_dir and in the ignore-list builder was called
      with two arguments; the missing $file argument defaulted to undef,
      triggering "Use of uninitialized value $file" in File::Spec::Unix.
      Fixed by passing '' as the third argument.
    - In the scalar-search branch of $find_dirs, List::Util::first returns
      undef when no existing directory is found; that undef propagated into
      the taint-dodge regex. Fixed by returning () instead of undef when
      first finds nothing.

-   5.3.7 Sat Nov  8 14:00:00 EST 2026

    Add t/10-Bin-path/15-Bin-utf8-chars.t: confirms that Unicode chars from
    Latin-1 Supplement (U+00A0-U+00FF), Latin Extended-A/B (U+0100-U+024F),
    Cyrillic (U+0400-U+04FF), and Cyrillic Supplement (U+0500-U+052F) do not
    break the q#...# eval in Bin.pm. Filters to punctuation, symbol, and
    separator categories via /[\p{P}\p{S}\p{Z}]/u. Uses encode('UTF-8', chr $cp)
    for byte-string paths and the same subprocess pattern as 14-Bin-eval-chars.t
    (list-form open, 6 assertions per codepoint).

-   5.3.6 Sat Nov  8 13:11:00 EST 2026

    Fix FindBin::Bin v2.1.1: backslash in directory path was not escaped
    before the q#...# string literal in the eval at Bin.pm lines 201-202.
    A lone '\' passed through correctly (since '\x' is literal in q#...# for
    non-special x), but '\#' caused a syntax error and '\\' silently collapsed
    to '\'. Fix: escape '\' first (s{\\}{\\\\}gr), then escape '#', so that
    any combination of backslash and hash in a directory name is handled.

    Add t/10-Bin-path/14-Bin-eval-chars.t: subprocess-based test that runs
    FindBin::Bin from a driver script inside a temporary directory named with
    each of the 32 ASCII printable non-word chars, plus explicit edge cases
    for '\#', '\\', and trailing '\'. Verifies both the glob scalar and
    constant sub for Bin_l, Bin_p, and Bin.

-   5.1.6 Sun Nov  1 19:31:41 EST 2026

    Dodge a security issue by dropping the trailing ':' used for LD_LIBRARY_PATH.

    Remove FindBin::Security; superseded by FindBin::DirFilter.

    Add FindBin::DirFilter: per-package and global directory filter table.
    Predefined filters all/other_no_write/group_no_write/same_owner in
    increasing restrictiveness order; each is cumulative (chains the previous).
    Global default is immutable once set; read_dir_filter falls back to
    other_no_write without assigning, so #! scripts can set the default after
    modules have already read it. Win32 implementation uses GetFileSecurityA
    with a pure-Perl self-relative SD parser (our $parse_sd for test access).
    Unix/VMS implementation uses stat mode bits and UID comparison; VMS system
    UIC root-equivalent check is unverified.

-   5.1.5 Sat Oct 31 22:50:37 EDT 2026

    Makefile.PL postamble hooks pure_all instead of test so that
    install-tests runs before the harness discovers test files,
    not after.

    Add t/10-Bin-path/11-Parent-pwd.t: tests for the 'pwd' sentinel
    in FindBin::Parents::dir_paths.

    Update abspath/noabspath tests to match current Bin.pm behavior
    (physical path default).

    Fix multi_config_dir example: List::Util (not Scalar::Util) exports
    first(); add missing closing quote in string literal.

    Update find_ld_dirs example POD for physical-path default.

    Copyright updated to 2003-2027 across version/* files.

    Sweep all source files: replace UTF-8 characters in comments
    with plain ASCII (C language text semantics).

-   5.1.4 Sat Oct 31 19:30:30 EDT 2026

    Cleaner extraction of $Bin_p. Catch is that rel2abs behaves
    entirely differently with absolute and relative paths.

-   5.1.3 Sat Oct 31 19:30:30 EDT 2026

    Dodge one more edge case with absolute paths for $0.

-   5.1.2 Sat Oct 31 14:15:57 EDT 2026

    Bug in Bin.pm that didn't handle symlinked executables
    properly for the physical path; added tests.

-   5.1.1 Fri Oct 30 18:38:09 EDT 2026

    Bin uses abspath/noabspath to match libs for export of Bin.
    Makes things more consistent & explicit if "abspath" is used.

-   5.1.0 Fri Oct 30 18:07:19 EDT 2026

    Bin::pwd() is no longer a state value; this made sense when its
    only use was assigning $Bin_l & $Bin_p. It is now used in Parents
    for a default at runtime and needs to respect chdir.

    $FindBin::Bin::Bin is the physical path (eq $Bin_p) to conform
    with old behavior. The value exported into the callers space
    will be $Bin_p or $Bin_l depending on whether "abspath" or
    "noabspath" is passed to use with the default being $Bin_p
    to conform with the existing behavior.

-   5.0.6 Fri Oct 30 15:39:12 EDT 2026

    Botched manifest file.

-   5.0.5 Fri Oct 30 15:22:23 EDT 2026

    add "pwd" as a literal for FindBin::Parents::dir_paths
    to break down the paths above the working directory.

-   5.0.4 Thu Oct 29 22:55:12 EDT 2026

    Version hardwired in Makefile.PL, not from libs.pm

    version/v5.40/examples, documented templates for using the
    module for various tasks.

-   5.0.3 Wed Oct 28 02:37:36 EDT 2026

    Much overdue expansion of the ./example cases.

-   5.0.2 Tue Oct 27 21:27:40 EDT 2026

    install tests prior to running test target.

-   5.0.1 Tue Oct 27 20:18:05 EDT 2026

    Add YAML::Tiny used in testing to Makefile.PL CONFIGURE_REQUIRES.

    Use a rel2abs of $^X in generated test files to avoid $PATH
    issues in subshells used during testing.

-   5.0.0 Mon Oct 26 20:17:52 EDT 2026

    v5.40 tests rewritten for complete coverage.

    Cleanup of Bin.pm dealing with interactive (-e/-) case using logic
    taken from "pwd -L" on *NIX.

    Export Bin, Bin_c, $Bin, $Bin_c with symlinks resolved $Bin,
    Bin and canonical format with '.' and '..' removed but symlinks
    left as-is (as with "pwd -L") for $Bin_c, Bin_c. This allows
    using FindBin::libs with abspath (default) to resolve paths up the
    physical directory chain and noabspath to use canon_dir to remove
    the '..' and '.' components without resolving links to walk up
    the working directory path.

    Added "ld_dir" to set $ENV{ LD_LIBRARY_PATH }, similar to p5lib
    which sets $ENV{ PERL5LIB } from the library directory list.

    Minor bugfixes to avoid undef value nastygrams.

-   4.0.6 Fri Oct 16 11:33:21 EDT 2026

    Found a better solution using same logic as "pwd -L" for
    dealing with interactive execution that doesn't resolved symlinked
    paths. This means that running with -/-e/interactive returns the
    same results as $0. .

    $Bin assigned as a ref-to-constant; harder to accidentally
    change during execution.

    Tests for v5.40 completely re-written.

    Override $^V a version argument to Makefile.PL to install
    prior versions (mainly for testing). "perl Makefile.PL 5.20"
    or "v5.20" will install the v5.14 version release.

    Bin is a major update since the command-line handling
    returns a completely new value; changes to libs are
    minor, just bumped the minor version; no changes to
    Parents.

-   4.0.5 Wed Apr 23 10:46:45 EDT 2025

    Default ignore directories are now /, /usr, /var to default
    exclusing /lib, /usr/lib, and /var/lib -- none of which are
    likely to include any useful Perl modules.

    This was done to all versions.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/devel/p5-FindBin-libs/Makefile
cvs rdiff -u -r1.22 -r1.23 pkgsrc/devel/p5-FindBin-libs/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/p5-FindBin-libs/Makefile
diff -u pkgsrc/devel/p5-FindBin-libs/Makefile:1.34 pkgsrc/devel/p5-FindBin-libs/Makefile:1.35
--- pkgsrc/devel/p5-FindBin-libs/Makefile:1.34  Thu Jul 16 19:02:31 2026
+++ pkgsrc/devel/p5-FindBin-libs/Makefile       Mon Nov 30 11:15:26 2026
@@ -1,20 +1,24 @@
-# $NetBSD: Makefile,v 1.34 2026/07/16 19:02:31 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2026/11/30 11:15:26 wiz Exp $
 
-DISTNAME=              FindBin-libs-v4.0.4
+DISTNAME=              FindBin-libs-v5.5.3
 PKGNAME=               p5-${DISTNAME:S/-v/-/}
-PKGREVISION=           3
 CATEGORIES=            devel perl5
-MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=FindBin/}
+MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=../../authors/id/L/LE/LEMBARK/}
 
 MAINTAINER=            schmonz%NetBSD.org@localhost
 HOMEPAGE=              https://metacpan.org/release/FindBin-libs
 COMMENT=               Locate and a 'use lib' or export directories based on FindBin::Bin
 LICENSE=               ${PERL5_LICENSE}
 
-PERL5_PACKLIST=                auto/FindBin/libs/.packlist
-
 DEPENDS+=              p5-Module-FromPerlVer>=0.000005:../../devel/p5-Module-FromPerlVer
 DEPENDS+=              p5-File-Copy-Recursive-Reduced>=0.002:../../sysutils/p5-File-Copy-Recursive-Reduced
+DEPENDS+=              p5-YAML-Tiny>=0:../../textproc/p5-YAML-Tiny
+DEPENDS+=              p5-File-Util-SecureDir>=0:../../devel/p5-File-Util-SecureDir
+
+PERL5_PACKLIST=                auto/FindBin/libs/.packlist
+
+USE_TOOLS+=            bash perl
+REPLACE_BASH+=         version/v5.40/t/bin/install-tests
 
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/p5-FindBin-libs/distinfo
diff -u pkgsrc/devel/p5-FindBin-libs/distinfo:1.22 pkgsrc/devel/p5-FindBin-libs/distinfo:1.23
--- pkgsrc/devel/p5-FindBin-libs/distinfo:1.22  Sun Oct 27 19:50:41 2024
+++ pkgsrc/devel/p5-FindBin-libs/distinfo       Mon Nov 30 11:15:26 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.22 2024/10/27 19:50:41 schmonz Exp $
+$NetBSD: distinfo,v 1.23 2026/11/30 11:15:26 wiz Exp $
 
-BLAKE2s (FindBin-libs-v4.0.4.tar.gz) = 1db073c06149def0fcdd66844e23854ffb490c8d1b8aaae50dd750260ca91d5e
-SHA512 (FindBin-libs-v4.0.4.tar.gz) = 4844361d15344606159ef9a730bc4802b0e7fda2d1971d61a1a8396b8582673a5c25a64aa1c28fa01467547c685bc5a9c6a3ddac630db5c740a56b7b70cb711f
-Size (FindBin-libs-v4.0.4.tar.gz) = 63593 bytes
+BLAKE2s (FindBin-libs-v5.5.3.tar.gz) = 354242091ce9017d682ab60da1992221f37a3837d42c1abeb502f8ed3f57a394
+SHA512 (FindBin-libs-v5.5.3.tar.gz) = 5179eb067450fd64ac5b6160696a26c201c8b92f27517afb514e203fc934d1726aeda52e2355ff5152492b0f60ae11b2faa402262988a00d925da5778e371d12
+Size (FindBin-libs-v5.5.3.tar.gz) = 115240 bytes



Home | Main Index | Thread Index | Old Index