Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 94150
Status: open
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: Matthew.Persico [...] lazard.com
Cc: CHORNY [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Low - Windows - no tar
Date: Mon, 24 Mar 2014 13:29:53 -0400
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Matthew.Persico [...] lazard.com
Even though cpan and it's ilk and the whole Makefile.PL chain know how to untar a .tar, when you try and do a make dist to package up a module you are working on, you get an error when trying to create the tar: 'tar' is not recognized as an internal or external command, operable program or batch file. dmake: Error code 129, while making 'DBD-Sybase-1.15_LF001.tar.gz' Any reason why you don't just package a tar with the rest of the tools? And a zip for that matter? As a work around, I will try an isolate the tar and zip from my cygwin install so that I can use them without injecting all of my environment with cygwin references. Thanks -- Matthew O. Persico Lazard 30 Rockefeller Plaza New York, NY 10112 212 632 6136
On Mon Mar 24 13:30:23 2014, Matthew.Persico@lazard.com wrote: Show quoted text
> Even though cpan and it's ilk and the whole Makefile.PL chain know how to > untar a .tar, when you try and do a > > make dist > > to package up a module you are working on, you get an error when trying to > create the tar: > > 'tar' is not recognized as an internal or external command, > operable program or batch file. > dmake: Error code 129, while making 'DBD-Sybase-1.15_LF001.tar.gz' > > Any reason why you don't just package a tar with the rest of the tools? > And a zip for that matter? > > As a work around, I will try an isolate the tar and zip from my cygwin > install so that I can use them without injecting all of my environment > with cygwin references. > > Thanks > -- > Matthew O. Persico
Because so many people have them in other places and we do not want to override their copies. One thing that can be done, since Strawberry Perl includes IO::Compress::GZip and Archive::Tar, is to use those modules or the scripts they install. Example Makefile.PL flags are below. TAR => 'ptar', TARFLAGS => '-c -C -f', COMPRESS => q{perl -MIO::Compress::Gzip=gzip,:constants -e"my $$in = $$ARGV[0]; gzip($$in => qq($$in.gz), q(Level) => Z_BEST_COMPRESSION, q(BinModeIn) => 1) or die q(gzip failed); unlink $$in;"},
Subject: Re: [rt.cpan.org #94150] Low - Windows - no tar
Date: Mon, 24 Mar 2014 14:20:28 -0400
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Matthew.Persico [...] lazard.com
If I could do something like that installation-wide, that would be good. I can't do it on a per-module basis because I share the modules with my UNIX installs also. And this particular module is DBD-Sybase which I am patching as it is, so I am loath to change more than I have to on a local basis. Hmm. I wonder if I could patch Config,.pm to set this installation-wide.... The other thing you COULD do is put out an auxiliary ZIP with these items and integrate into the MSI with a prompt (install unix utils tar, gzip ,etc?) Of course, more work for you to maintain I guess -- Matthew O. Persico Lazard 30 Rockefeller Plaza New York, NY 10112 212 632 6136 From: "Curtis Jewell via RT" <bug-Perl-Dist-Strawberry@rt.cpan.org> To: Matthew Persico/ITS/Lazard@Lazard NYC Date: 03/24/2014 01:53 PM Subject: [rt.cpan.org #94150] Low - Windows - no tar <URL: https://rt.cpan.org/Ticket/Display.html?id=94150 > On Mon Mar 24 13:30:23 2014, Matthew.Persico@lazard.com wrote: Show quoted text
> Even though cpan and it's ilk and the whole Makefile.PL chain know how
to Show quoted text
> untar a .tar, when you try and do a > > make dist > > to package up a module you are working on, you get an error when trying
to Show quoted text
> create the tar: > > 'tar' is not recognized as an internal or external command, > operable program or batch file. > dmake: Error code 129, while making 'DBD-Sybase-1.15_LF001.tar.gz' > > Any reason why you don't just package a tar with the rest of the tools? > And a zip for that matter? > > As a work around, I will try an isolate the tar and zip from my cygwin > install so that I can use them without injecting all of my environment > with cygwin references. > > Thanks > -- > Matthew O. Persico
Because so many people have them in other places and we do not want to override their copies. One thing that can be done, since Strawberry Perl includes IO::Compress::GZip and Archive::Tar, is to use those modules or the scripts they install. Example Makefile.PL flags are below. TAR => 'ptar', TARFLAGS => '-c -C -f', COMPRESS => q{perl -MIO::Compress::Gzip=gzip,:constants -e"my $$in = $$ARGV[0]; gzip($$in => qq($$in.gz), q(Level) => Z_BEST_COMPRESSION, q(BinModeIn) => 1) or die q(gzip failed); unlink $$in;"},
I usually use Module::Build or add this code to Makefile.PL: $^O =~/win/i ? ( dist => { TAR => 'ptar', TARFLAGS => '-c -C -f', }, ) : (), Note: this code will work on other OSes too. ptar is bundled with perl. -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #94150] Resolved: Low - Windows - no tar
Date: Wed, 17 Sep 2014 13:00:50 -0400
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Matthew.Persico [...] lazard.com
Unsure of the resolution. Has some code been changed or is the solution to use the suggestions in the thread? -- Matthew O. Persico Lazard 30 Rockefeller Plaza New York, NY 10112 212 632 6136
Subject: Re: [rt.cpan.org #94150] Resolved: Low - Windows - no tar
Date: Thu, 18 Sep 2014 07:34:28 +0200
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Karel Miko <kmx [...] cpan.org>
The solutions is to use: dist => { TAR => 'ptar', TARFLAGS => '-c -C -f', } For now I am not considering to bundle tar.exe with strawberry perl. Related trouble is that for successful 'dmake dist' you probably also need a gzip which is also not bundled with strawberry perl. -- kmx
Well reopening this ticket again.

The question is: do we want to have tar.exe + gzip.exe bundled with strawberry perl?

I am not sure yet but lets keep this RT open.
On Wed Sep 24 04:40:01 2014, KMX wrote: Show quoted text
> Well reopening this ticket again. > > The question is: do we want to have tar.exe + gzip.exe bundled with > strawberry > perl?
In case of generating dists for CPAN, tar.exe will generate archives that will be rejected by PAUSE. So using ptar -C is necessary in this case. -- Alexandr Ciornii, http://chorny.net
Alexandr, how do you solve missing gzip?