[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-11-17 Thread Roderich Schupp via RT
Tue Nov 17 04:52:17 2020: Request 132067 was acted upon.
Transaction: Correspondence added by RSCHUPP
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks 
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: open
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


On 2020-11-12 15:49:20, SLAFFAN wrote:
> PR submitted in https://github.com/rschupp/PAR-Dist/pull/1

Released as PAR::Dist 0.50

Cheers, Roderich


[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-11-12 Thread Shawn Laffan via RT
Thu Nov 12 15:49:20 2020: Request 132067 was acted upon.
Transaction: Correspondence added by SLAFFAN
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks 
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: open
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


On Thu Nov 12 10:07:34 2020, RSCHUPP wrote:
> On 2020-11-11 03:37:20, SLAFFAN wrote:
> > Thanks Roderich, but where is the repo?  There seems not to be one on
> > GitHub.
> 
> Yikes, you're right. I had to "git svn clone" from a dump of the
> original OpenFoundry Subversion repository.
> And then "synthesize" release tags using the Changes file, as the
> previous developers didn't use tags :(
> Now there's https://github.com/rschupp/PAR-Dist
> 
> Cheers, Roderich

Thanks for creating the repo.  

PR submitted in https://github.com/rschupp/PAR-Dist/pull/1


[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-11-12 Thread Roderich Schupp via RT
Thu Nov 12 10:07:34 2020: Request 132067 was acted upon.
Transaction: Correspondence added by RSCHUPP
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks 
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: open
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


On 2020-11-11 03:37:20, SLAFFAN wrote:
> Thanks Roderich, but where is the repo?  There seems not to be one on
> GitHub.

Yikes, you're right. I had to "git svn clone" from a dump of the original 
OpenFoundry Subversion repository.
And then "synthesize" release tags using the Changes file, as the previous 
developers didn't use tags :(
Now there's https://github.com/rschupp/PAR-Dist

Cheers, Roderich


[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-11-11 Thread Shawn Laffan via RT
Wed Nov 11 03:37:20 2020: Request 132067 was acted upon.
Transaction: Correspondence added by SLAFFAN
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks 
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: open
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


On Wed Nov 11 03:30:07 2020, RSCHUPP wrote:
> On 2020-11-09 18:04:44, SLAFFAN wrote:
> > Roderich - would it be possible to get this applied?  I can work up a
> > PR or patch if you prefer.
> 
> Hi Shawn,
> 
> a PR is best.
> 
> Cheers, Roderich
> 

Thanks Roderich, but where is the repo?  There seems not to be one on GitHub.

I have a repo, but it is forked from gitpan.  


[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-11-11 Thread Roderich Schupp via RT
Wed Nov 11 03:30:07 2020: Request 132067 was acted upon.
Transaction: Correspondence added by RSCHUPP
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks 
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: open
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


On 2020-11-09 18:04:44, SLAFFAN wrote:
> Roderich - would it be possible to get this applied?  I can work up a
> PR or patch if you prefer.

Hi Shawn,

a PR is best.

Cheers, Roderich


[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-11-09 Thread Shawn Laffan via RT
Mon Nov 09 18:04:44 2020: Request 132067 was acted upon.
Transaction: Correspondence added by SLAFFAN
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks 
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: open
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


On Sun Nov 08 20:21:12 2020, nie...@users.sourceforge.net wrote:
> On Sun Nov 08 19:55:28 2020, nie...@users.sourceforge.net wrote:
> > On Thu Mar 05 17:43:33 2020, SLAFFAN wrote:
> > > Many of the current CPAN test failures have this error text (links
> > > below):
> > >
> > > error: Could not extract /tmp/par4D_mq/blib/META.yml safely: /tmp
> > > is
> > > an existing symbolic link
> > >
> > >
> > >
> > > One simple fix is to ensure _unzip_to_tmpdir (or perhaps _unzip)
> > > uses
> > > a path with symlinks resolved.
> > >
> > > For example in _unzip_to_tmpdir:
> > >
> > > ...
> > > my $path = $tmpdir;
> > > $path = File::Spec->catdir($tmpdir, $args{subdir}) if defined
> > > $args{subdir};
> > > ###  add these two lines
> > > require Cwd;
> > > $path = Cwd::realpath($path);
> > >
> > > _unzip(dist => $dist, path => $path);
> > > ...
> > >
> > >
> > > Tested on macos 10.15.
> > >
> > > Let me know if you'd prefer a patch file, and whether it should be
> > > in
> > > _unzip_to_tmpdir or more localised within _unzip.
> > >
> > > Shawn.
> >
> > Could you post your current WIP patch? Happy to test on BigSur RC.
> > Thanks.
> 
> Never mind. I see the provided snippet now. It works with BigSur and
> the system perl-5.28(.2)


Thanks for testing and confirming.

Roderich - would it be possible to get this applied?  I can work up a PR or 
patch if you prefer.  


[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-11-08 Thread nie...@users.sourceforge.net via RT
Sun Nov 08 20:21:12 2020: Request 132067 was acted upon.
Transaction: Correspondence added by nie...@users.sourceforge.net
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks 
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: open
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


On Sun Nov 08 19:55:28 2020, nie...@users.sourceforge.net wrote:
> On Thu Mar 05 17:43:33 2020, SLAFFAN wrote:
> > Many of the current CPAN test failures have this error text (links
> > below):
> > 
> > error: Could not extract /tmp/par4D_mq/blib/META.yml safely: /tmp is
> > an existing symbolic link
> > 
> > 
> > 
> > One simple fix is to ensure _unzip_to_tmpdir (or perhaps _unzip) uses
> > a path with symlinks resolved.
> > 
> > For example in _unzip_to_tmpdir:
> > 
> > ...
> > my $path = $tmpdir;
> > $path = File::Spec->catdir($tmpdir, $args{subdir}) if defined
> > $args{subdir};
> > ###  add these two lines
> > require Cwd;
> > $path = Cwd::realpath($path);
> > 
> > _unzip(dist => $dist, path => $path);
> > ...
> > 
> > 
> > Tested on macos 10.15.
> > 
> > Let me know if you'd prefer a patch file, and whether it should be in
> > _unzip_to_tmpdir or more localised within _unzip.
> > 
> > Shawn.
> 
> Could you post your current WIP patch? Happy to test on BigSur RC. Thanks.

Never mind. I see the provided snippet now. It works with BigSur and the system 
perl-5.28(.2)


[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-11-08 Thread nie...@users.sourceforge.net via RT
Sun Nov 08 19:55:28 2020: Request 132067 was acted upon.
Transaction: Correspondence added by nie...@users.sourceforge.net
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks 
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: new
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


On Thu Mar 05 17:43:33 2020, SLAFFAN wrote:
> Many of the current CPAN test failures have this error text (links
> below):
> 
> error: Could not extract /tmp/par4D_mq/blib/META.yml safely: /tmp is
> an existing symbolic link
> 
> 
> 
> One simple fix is to ensure _unzip_to_tmpdir (or perhaps _unzip) uses
> a path with symlinks resolved.
> 
> For example in _unzip_to_tmpdir:
> 
> ...
> my $path = $tmpdir;
> $path = File::Spec->catdir($tmpdir, $args{subdir}) if defined
> $args{subdir};
> ###  add these two lines
> require Cwd;
> $path = Cwd::realpath($path);
> 
> _unzip(dist => $dist, path => $path);
> ...
> 
> 
> Tested on macos 10.15.
> 
> Let me know if you'd prefer a patch file, and whether it should be in
> _unzip_to_tmpdir or more localised within _unzip.
> 
> Shawn.

Could you post your current WIP patch? Happy to test on BigSur RC. Thanks.


[rt.cpan.org #132067] fix for Archive::Zip related test failures due to symlinks

2020-03-05 Thread Shawn Laffan via RT
Thu Mar 05 17:43:33 2020: Request 132067 was acted upon.
Transaction: Ticket created by SLAFFAN
   Queue: PAR-Dist
 Subject: fix for Archive::Zip related test failures due to symlinks
   Broken in: (no value)
Severity: (no value)
   Owner: Nobody
  Requestors: slaf...@cpan.org
  Status: new
 Ticket https://rt.cpan.org/Ticket/Display.html?id=132067 >


Many of the current CPAN test failures have this error text (links below):

error: Could not extract /tmp/par4D_mq/blib/META.yml safely: /tmp is an 
existing symbolic link 



One simple fix is to ensure _unzip_to_tmpdir (or perhaps _unzip) uses a path 
with symlinks resolved.  

For example in _unzip_to_tmpdir:

...
my $path = $tmpdir;
$path = File::Spec->catdir($tmpdir, $args{subdir}) if defined $args{subdir};
###  add these two lines
require Cwd;
$path = Cwd::realpath($path);

_unzip(dist => $dist, path => $path);
...


Tested on macos 10.15.

Let me know if you'd prefer a patch file, and whether it should be in 
_unzip_to_tmpdir or more localised within _unzip.

Shawn.




CPAN testers links:

https://www.cpantesters.org/cpan/report/07bf1b62-1c64-11e9-98a9-a7ab3e5edb37
https://www.cpantesters.org/cpan/report/b9d7c082-7a9d-11e9-81af-f28ed51e9e84
https://www.cpantesters.org/cpan/report/9f5989e4-817c-11e9-b3ce-75fdc00df68b