develooper Front page | perl.perl5.changes | Postings from February 2021

[Perl/perl5] 6ce11f: Prevent incpath to spill into libpth

From:
"H.Merijn Brand" via perl5-changes
Date:
February 12, 2021 15:43
Subject:
[Perl/perl5] 6ce11f: Prevent incpath to spill into libpth
Message ID:
Perl/perl5/push/refs/heads/smoke-me-tux-inclib/000000-6ce11f@github.com
  Branch: refs/heads/smoke-me-tux-inclib

  Home:   https://github.com/Perl/perl5

  Commit: 6ce11f2e46354b78114eec64a433f0591a72fb3c

      https://github.com/Perl/perl5/commit/6ce11f2e46354b78114eec64a433f0591a72fb3c

  Author: H.Merijn Brand <perl5@tux.freedom.nl>

  Date:   2021-02-12 (Fri, 12 Feb 2021)



  Changed paths:

    M Configure



  Log Message:

  -----------

  Prevent incpath to spill into libpth



• Use realpath if available

• This might catch more duplicate paths

• Only include real existing paths

• Filter inc paths out of libpth



Before:

incpth: /usr/lib64/gcc/x86_64-suse-linux/7/include /usr/local/include /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/include /usr/include

libpth: /usr/local/lib /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/lib /usr/lib /pro/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64



After:

incpth: /usr/lib64/gcc/x86_64-suse-linux/7/include /usr/local/include /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed /usr/x86_64-suse-linux/include /usr/include

libpth: /usr/local/lib /usr/x86_64-suse-linux/lib /usr/lib /pro/local/lib /lib64 /usr/lib64 /lib /usr/local/lib64



If merged, I'll backport








nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About