Skip Menu |

This queue is for tickets about the Archive-Extract CPAN distribution.

Report information
The Basics
Id: 46948
Status: resolved
Priority: 0/
Queue: Archive-Extract

People
Owner: Nobody in particular
Requestors: f.schaefer [...] yorfeix.de
Cc:
AdminCc:

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



Subject: unable to install install on win32
When i try to install KANE/Archive-Extract-0.32.tar.gz running make test hangs after the following output: Show quoted text
>zip--------------------------------------
Show quoted text
cpan> install Archive::Extract
Running install for module 'Archive::Extract' Running make for K/KA/KANE/Archive-Extract-0.32.tar.gz Has already been unwrapped into directory C:\strawberry\cpan\build\Archive-Extract-0.32-0iRaiS Has already been made Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t # Older versions of Archive::Zip may cause File::Spec warnings # See bug #19713 in rt.cpan.org. It is safe to ignore them Show quoted text
>zip--------------------------------------
With force install i get the following output before the system hangs: Show quoted text
>zip--------------------------------------
# Failed test 'extract() for 'y.tbz' reports success (PP: 0 Bin: 1)' # at t/01_Archive-Extract.t line 404. # Failed test 'Found correct number of output files ()' # at t/01_Archive-Extract.t line 417. # got: '0' # expected: '2' # Failed test 'Found correct output file 'y/z'' # at t/01_Archive-Extract.t line 424. # got: undef # expected: 'y/z' # Failed test 'Extract dir found' # at t/01_Archive-Extract.t line 429. Use of uninitialized value in -d at t/01_Archive-Extract.t line 431. # Failed test 'Extract dir exists' # at t/01_Archive-Extract.t line 431. # Failed test 'Extract dir is expected 'C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out\y'' # at t/01_Archive-Extract.t line 433. # got: undef # expected: 'C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out\y' Show quoted text
>zip--------------------------------------
My System: H:\>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. H:\>uname -a WindowsNT ... 1 5 x86
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Mon, 15 Jun 2009 12:57:18 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
Hi There, On Jun 15, 2009, at 12:51 PM, https://yorfeix.meinguter.name/ via RT wrote: Show quoted text
>> >> zip--------------------------------------
> cpan> install Archive::Extract
> Running install for module 'Archive::Extract' > Running make for K/KA/KANE/Archive-Extract-0.32.tar.gz > Has already been unwrapped into directory > C:\strawberry\cpan\build\Archive-Extract-0.32-0iRaiS > Has already been made > Running make test > C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t > # Older versions of Archive::Zip may cause File::Spec warnings > # See bug #19713 in rt.cpan.org. It is safe to ignore them >
>> zip--------------------------------------
> > With force install i get the following output before the system hangs: >
>> zip--------------------------------------
> > # Failed test 'extract() for 'y.tbz' reports success (PP: 0 Bin: 1)' > # at t/01_Archive-Extract.t line 404. > > # Failed test 'Found correct number of output files ()' > # at t/01_Archive-Extract.t line 417. > # got: '0' > # expected: '2' > > # Failed test 'Found correct output file 'y/z'' > # at t/01_Archive-Extract.t line 424. > # got: undef > # expected: 'y/z' > > # Failed test 'Extract dir found' > # at t/01_Archive-Extract.t line 429. > Use of uninitialized value in -d at t/01_Archive-Extract.t line 431. > > # Failed test 'Extract dir exists' > # at t/01_Archive-Extract.t line 431. > > # Failed test 'Extract dir is expected > 'C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out\y'' > # at t/01_Archive-Extract.t line 433. > # got: undef > # expected: 'C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out\y' >
>> zip--------------------------------------
it seems that your /bin/bunzip2 may be using a format Archive::Extract doesn't understand. Could you run the test like this please: $ perl t/01_Archive-Extract.t 1 The trailing '1' enabled a bunch of diagnostics, which include the invocation being used for 'bunzip2 ... | tar -tf ... ' Please post the full output to this ticket, as well as the output for when you manually run the above bunzip2 command. Thanks, -- Jos Boumans 'Real programmers use "cat > a.out"'

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Mon, 15 Jun 2009 13:34:54 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On Jun 15, 2009, at 1:28 PM, https://yorfeix.meinguter.name/ via RT wrote: Show quoted text
> Queue: Archive-Extract > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > > > Here is the full output of the test script. > Output stops when running the > 'bunzip2 -cd t\src\y.tar.bz2 | tar -tf ...' > as you guessed.
So, bunzip2 blows up with a 'broken pipe'. Can you reproduce this when running the command manually? C:\usr\local\wbin\bunzip2.EXE -cd C:\STRAWB~2\cpan\build\ARCHIV~1.32- \t\src\y.tbz | C:\usr\local\wbin\tar.EXE -tf - Show quoted text
> # Extracting y.tbz in config PP: 0 Bin: 1 > ok 273 - The object isa Archive::Extract > ok 274 - Archive type recognized properly > # Extracting to: C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out > # Buffers enabled: 1 > # Extracting with ->_untar_bin > Running [C:\usr\local\wbin\bunzip2.EXE -cd > C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tbz | > C:\usr\local\wbin\tar.EXE -tf -]... > y/ > y/z > bunzip2.EXE: Broken pipe > > bunzip2.EXE: I/O or other error, bailing out. Possible reason > follows. > Input file = C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tbz, > output file = (stdout) > Error listing contents of archive > 'C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tbz': y/ > y/z > bunzip2.EXE: Broken pipe > > bunzip2.EXE: I/O or other error, bailing out. Possible reason > follows. > Input file = C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tbz, > output file = (stdout) > at ../lib/Archive/Extract.pm line 652 > Archive::Extract::_untar_bin('Archive::Extract=HASH > (0x14bd094)') > called at ../lib/Archive/Extract.pm line 386 > Archive::Extract::extract('Archive::Extract=HASH(0x14bd094)', > 'to', 'C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out') called at > t\01_Archive-Extract.t line 3 > 88 > at t\01_Archive-Extract.t line 388 > # Extraction method failed
-- Jos Boumans 'Real programmers use "cat > a.out"'
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Mon, 15 Jun 2009 15:51:36 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: Felix Schäfer <f.schaefer [...] yorfeix.de>
I would do that but I don't know the complete command as it is shortened in the test output: Show quoted text
> # Extracting to: C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out > # Buffers enabled: 1 > # Extracting with ->_untar_bin > Running [C:\usr\local\wbin\bunzip2.EXE -cd C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tar.bz2 | C:\usr\local\wbin\tar.EXE -tf -]...
What is the part of the command behind the [... tar -tf -] ? 2009/6/15 Jos I. Boumans via RT <bug-Archive-Extract@rt.cpan.org> Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=46948 > > > > On Jun 15, 2009, at 1:28 PM, https://yorfeix.meinguter.name/ via RT > wrote: >
> >        Queue: Archive-Extract > >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > > > > > Here is the full output of the test script. > > Output stops when running the > > 'bunzip2 -cd t\src\y.tar.bz2 | tar -tf ...' > > as you guessed.
> > So, bunzip2 blows up with a 'broken pipe'. Can you reproduce this when > running the command manually? > > C:\usr\local\wbin\bunzip2.EXE -cd C:\STRAWB~2\cpan\build\ARCHIV~1.32- > \t\src\y.tbz | C:\usr\local\wbin\tar.EXE -tf - >
> > # Extracting y.tbz in config PP: 0 Bin: 1 > > ok 273 - The object isa Archive::Extract > > ok 274 - Archive type recognized properly > > # Extracting to: C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out > > # Buffers enabled: 1 > > # Extracting with ->_untar_bin > > Running [C:\usr\local\wbin\bunzip2.EXE -cd > > C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tbz | > > C:\usr\local\wbin\tar.EXE -tf -]... > > y/ > > y/z > > bunzip2.EXE: Broken pipe > > > > bunzip2.EXE: I/O or other error, bailing out.  Possible reason > > follows. > >         Input file = C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tbz, > > output file = (stdout) > > Error listing contents of archive > > 'C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tbz': y/ > > y/z > > bunzip2.EXE: Broken pipe > > > > bunzip2.EXE: I/O or other error, bailing out.  Possible reason > > follows. > >         Input file = C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tbz, > > output file = (stdout) > >  at ../lib/Archive/Extract.pm line 652 > >         Archive::Extract::_untar_bin('Archive::Extract=HASH > > (0x14bd094)') > > called at ../lib/Archive/Extract.pm line 386 > >         Archive::Extract::extract('Archive::Extract=HASH(0x14bd094)', > > 'to', 'C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out') called at > > t\01_Archive-Extract.t line 3 > > 88 > >  at t\01_Archive-Extract.t line 388 > > # Extraction method failed
> > -- >        Jos Boumans > >        'Real programmers use "cat > a.out"' > > > >
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Mon, 15 Jun 2009 15:55:43 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On Jun 15, 2009, at 3:51 PM, f.schaefer@yorfeix.de via RT wrote: Show quoted text
> Queue: Archive-Extract > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46948 > > > I would do that but I don't know the complete command as it is > shortened in the test output:
>> # Extracting to: C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out >> # Buffers enabled: 1 >> # Extracting with ->_untar_bin >> Running [C:\usr\local\wbin\bunzip2.EXE -cd C:\STRAWB~2\cpan\build >> \ARCHIV~1.32-\t\src\y.tar.bz2 | C:\usr\local\wbin\tar.EXE -tf -]...
> > What is the part of the command behind the [... tar -tf -] ?
That IS the command. 'tar -tf -' means 'read the file from standard input', which is provided by directing the output of bunzip2 to the |. Try it :) -- Jos Boumans 'Real programmers use "cat > a.out"'
From: F. Schäfer
Sorry, for that... when i run the command, as shown in the test i get the output: Show quoted text
> $>C:\usr\local\wbin\bunzip2.EXE -cd
C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tar.bz2 | C:\usr\local\wbin\t ar.EXE -tf - Show quoted text
> y/ > y/z > > bunzip2.EXE: I/O or other error, bailing out. Possible reason follows. > bunzip2.EXE: Invalid argument
Input file = C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tar.bz2, output file = (stdout) I saw, that the path to the .tar.bz2 file is not correct, as ARCHIV~1.32- does not lead to the valid path Archive-Extract-0.32-0iRaiS in the cpan build directory. When I fix that i get the following output: Show quoted text
> $>C:\usr\local\wbin\bunzip2.EXE -cd t\src\y.tar.bz2 |
C:\usr\local\wbin\tar.EXE -tf - Show quoted text
> y/ > y/z
So it seems to work correctly. Is that a problem on my side? Or is it a problem in the Testscript? Thanks so far, Felix Schäfer On Mo. 15. Jun. 2009, 09:56:25, jos@dwim.org wrote: Show quoted text
> > On Jun 15, 2009, at 3:51 PM, f.schaefer@yorfeix.de via RT wrote: >
> > Queue: Archive-Extract > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46948 > > > > > I would do that but I don't know the complete command as it is > > shortened in the test output:
> >> # Extracting to: C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\out > >> # Buffers enabled: 1 > >> # Extracting with ->_untar_bin > >> Running [C:\usr\local\wbin\bunzip2.EXE -cd C:\STRAWB~2\cpan\build > >> \ARCHIV~1.32-\t\src\y.tar.bz2 | C:\usr\local\wbin\tar.EXE -tf -]...
> > > > What is the part of the command behind the [... tar -tf -] ?
> > That IS the command. 'tar -tf -' means 'read the file from standard > input', which is provided by > directing the output of bunzip2 to the |. > > Try it :) > > -- > Jos Boumans > > 'Real programmers use "cat > a.out"' > > >
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Mon, 15 Jun 2009 16:57:16 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On Jun 15, 2009, at 4:32 PM, https://yorfeix.meinguter.name/ via RT wrote: Show quoted text
> Queue: Archive-Extract > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > > > Sorry, for that... > > when i run the command, as shown in the test i get the output: >
>> $>C:\usr\local\wbin\bunzip2.EXE -cd
> C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tar.bz2 | C:\usr\local > \wbin\t > ar.EXE -tf -
>> y/ >> y/z >> >> bunzip2.EXE: I/O or other error, bailing out. Possible reason >> follows. >> bunzip2.EXE: Invalid argument
> Input file = > C:\STRAWB~2\cpan\build\ARCHIV~1.32-\t\src\y.tar.bz2, output file = > (stdout) > > I saw, that the path to the .tar.bz2 file is not correct, as > ARCHIV~1.32- does not lead to the valid path Archive- > Extract-0.32-0iRaiS > in the cpan build directory. When I fix that i get the following > output: >
>> $>C:\usr\local\wbin\bunzip2.EXE -cd t\src\y.tar.bz2 |
> C:\usr\local\wbin\tar.EXE -tf -
>> y/ >> y/z
> > So it seems to work correctly. > > Is that a problem on my side? Or is it a problem in the Testscript?
That's a good question. The path does look very strange. It could be the test file coming up with the wrong path, or it could be your side. Take a look at the test file, t/01... Around line 56 you'll see: my $Self = File::Spec->rel2abs( IS_WIN32 ? &Win32::GetShortPathName( cwd() ) : cwd() ); You might want to print that out and see what it looks like. If it's the 'broken' path, you may have found a but in Win32::GetShortPathName. On the other hand, why would it not be broken for all the other tests? The actual extraction routine for .tar.bz2 files is at Archive::Extract line 640: sub _untar_bin { Adding some print/debug statemetns there may give you a better clue to what's going on as well. Are you up for debugging this a bit further? -- Jos Boumans 'Real programmers use "cat > a.out"'
From: hohokus [...] hohokus.net
On Mon Jun 15 06:51:08 2009, https://yorfeix.meinguter.name/ wrote: Show quoted text
> When i try to install KANE/Archive-Extract-0.32.tar.gz > running make test hangs after the following output:
i have the same problem. i've followed the dialog so far, and reproduced the same results. S:\apps\bin\gnuwin32\bin>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread S:\apps\bin\gnuwin32\bin>uname -a windows32 cpan-testing 2.5.1 2600 i686-pc Intel unknown MinGW FWIW, this is strawberry perl and the gnuwin32 tools (http://gnuwin32.sourceforge.net). bunzip2.exe seems to be the problem. if i rename/delete the utility, the module builds/tests/installs properly. S:\apps\bin\gnuwin32\bin>bunzip2 -V bzip2, a block-sorting file compressor. Version 1.0.5, 10-Dec-2007. Copyright (C) 1996-2007 by Julian Seward. This program is free software; you can redistribute it and/or modify it under the terms set out in the LICENSE file, which is included in the bzip2-1.0.5 source distribution. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details. replacing the bunzip2.exe with the version from http://www.digistar.com/bzip2 builds, but fails several tests, and ultimately hangs.
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Wed, 17 Jun 2009 10:30:35 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: Felix Schäfer <f.schaefer [...] yorfeix.de>
As far as i have looked at the problem it only appears in the two tests with the .tbz and the .tar.bz2 archives. So it seems to be a problem with bunzip2.exe and tar.exe inter operating. Perhaps it is the bunzip2.exe output to stdout that doesn't work. But on the other hand the [bunzip2.exe -cd archive.tbz | tar.exe -tf -] works when I invoke it from the cmd command line. Perhaps it is more a problem of the perl module executing the command. IPC::Cmd 2009/6/16 Justin Reynolds via RT <bug-Archive-Extract@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > > > On Mon Jun 15 06:51:08 2009, https://yorfeix.meinguter.name/ wrote:
>> When i try to install KANE/Archive-Extract-0.32.tar.gz >> running make test hangs after the following output:
> > i have the same problem. i've followed the dialog so far, and reproduced > the same results. > >   S:\apps\bin\gnuwin32\bin>perl -v >   This is perl, v5.10.0 built for MSWin32-x86-multi-thread > > >   S:\apps\bin\gnuwin32\bin>uname -a >   windows32 cpan-testing 2.5.1 2600 i686-pc Intel unknown MinGW > > > FWIW, this is strawberry perl and the gnuwin32 tools > (http://gnuwin32.sourceforge.net). > > bunzip2.exe seems to be the problem. if i rename/delete the utility, the > module builds/tests/installs properly. > >   S:\apps\bin\gnuwin32\bin>bunzip2 -V >   bzip2, a block-sorting file compressor.  Version 1.0.5, 10-Dec-2007. > >   Copyright (C) 1996-2007 by Julian Seward. > >   This program is free software; you can redistribute it and/or modify >   it under the terms set out in the LICENSE file, which is included >   in the bzip2-1.0.5 source distribution. > >   This program is distributed in the hope that it will be useful, >   but WITHOUT ANY WARRANTY; without even the implied warranty of >   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the >   LICENSE file for more details. > > > replacing the bunzip2.exe with the version from > http://www.digistar.com/bzip2 builds, but fails several tests, and > ultimately hangs. > > > > >
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Wed, 17 Jun 2009 10:42:39 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On Jun 17, 2009, at 10:31 AM, f.schaefer@yorfeix.de via RT wrote: Show quoted text
> Queue: Archive-Extract > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > > > As far as i have looked at the problem it only appears in the two > tests with the .tbz and the .tar.bz2 archives. > So it seems to be a problem with bunzip2.exe and tar.exe inter > operating. Perhaps it is the bunzip2.exe output to stdout that doesn't > work. > > But on the other hand the [bunzip2.exe -cd archive.tbz | tar.exe -tf > -] works when I invoke it from the cmd command line. > > Perhaps it is more a problem of the perl module executing the > command. IPC::Cmd
If you look at the previous correspondence, the problem seems to be that the path of the file given to bunzip2 is broken. That is probably what's causing the issue and what I'd like you to track down. Cheers, -- Jos Boumans "Whenever you find you are on the side of the majority, it is time to pause and reflect." - Mark Twain
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Wed, 17 Jun 2009 12:22:05 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: Felix Schäfer <f.schaefer [...] yorfeix.de>
I looked at the path problem. I appears to be from the Win32::GetShortPathName() method. # cwd(): [D:/_workspace/Tools/Archive-Extract-0.32-nvPbUZ/t] # &Win32::GetShortPathName( cwd() ): [D:/_WORKS~1/Tools/ARCHIV~1.32-/t] # File::Spec->rel2abs( IS_WIN32 ? &Win32::GetShortPathName( cwd() ) : cwd() ): [D:\_WORKS~1\Tools\ARCHIV~1.32-\t] But as the short Path with the hyphen in the end works with every other test I guess that it is just looking strange, but it works. Perhaps it is a mechanism to ignore hashes in the end of a directory name. If i have two directories which are the the same except the cpan-"id"-ending like [D:/Archive-Extract-0.32-0iRaiS/t] and [D:/Archive-Extract-0.32-nvPbUZ/t] the first one is shortened to [D:/ARCHIV~1.32-/t] and the second one will be [D:/ARCHIV~2.32-/t]. The system seems to be able to differ the both directories but both directories have the same shortPathName except for the iterator in it. 2009/6/17 Jos I. Boumans via RT <bug-Archive-Extract@rt.cpan.org>: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=46948 > > > > On Jun 17, 2009, at 10:31 AM, f.schaefer@yorfeix.de via RT wrote: >
>>        Queue: Archive-Extract >>  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > >> >> As far as i have looked at the problem it only appears in the two >> tests with the .tbz and the .tar.bz2 archives. >> So it seems to be a problem with bunzip2.exe and tar.exe inter >> operating. Perhaps it is the bunzip2.exe output to stdout that doesn't >> work. >> >> But on the other hand the [bunzip2.exe -cd archive.tbz | tar.exe -tf >> -] works when I invoke it from the cmd command line. >> >> Perhaps it is more a problem of the perl module executing the >> command. IPC::Cmd
> > If you look at the previous correspondence, the problem seems to be > that the path > of the file given to bunzip2 is broken. That is probably what's > causing the issue > and what I'd like you to track down.
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Wed, 17 Jun 2009 12:26:35 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On Jun 17, 2009, at 12:22 PM, f.schaefer@yorfeix.de via RT wrote: Show quoted text
> Queue: Archive-Extract > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46948 > > > I looked at the path problem. I appears to be from the > Win32::GetShortPathName() method. > > # cwd(): [D:/_workspace/Tools/Archive-Extract-0.32-nvPbUZ/t] > # &Win32::GetShortPathName( cwd() ): [D:/_WORKS~1/Tools/ > ARCHIV~1.32-/t] > # File::Spec->rel2abs( IS_WIN32 ? &Win32::GetShortPathName( cwd() ) : > cwd() ): [D:\_WORKS~1\Tools\ARCHIV~1.32-\t] > > But as the short Path with the hyphen in the end works with every > other test I guess that it is just looking strange, but it works. > Perhaps it is a mechanism to ignore hashes in the end of a directory > name. > > If i have two directories which are the the same except the > cpan-"id"-ending like [D:/Archive-Extract-0.32-0iRaiS/t] and > [D:/Archive-Extract-0.32-nvPbUZ/t] > the first one is shortened to [D:/ARCHIV~1.32-/t] and the second one > will be [D:/ARCHIV~2.32-/t]. > The system seems to be able to differ the both directories but both > directories have the same shortPathName except for the iterator in it.
Right, but in previous communication you said that 'bunzip2 ... D: \_WORKS~1\Tools\ARCHIV~1.32-\t | tar -tf -' failed, or am I mistaken there? Cheers, -- Jos Boumans "Whenever you find you are on the side of the majority, it is time to pause and reflect." - Mark Twain
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Wed, 17 Jun 2009 14:49:17 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: Felix Schäfer <f.schaefer [...] yorfeix.de>
when i run the command directly with commandline i get SOMETIMES an IO error. But most of the time it works fine. #>C:\usr\local\wbin\bunzip2.EXE -cd D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz | C:\usr\local\wbin\tar.EXE -tf - y/ y/z bunzip2.EXE: I/O or other error, bailing out. Possible reason follows. bunzip2.EXE: Invalid argument Input file = D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz, output file = (stdout) #>C:\usr\local\wbin\bunzip2.EXE -cd D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz | C:\usr\local\wbin\tar.EXE -tf - y/ y/z 2009/6/17 Jos I. Boumans via RT <bug-Archive-Extract@rt.cpan.org>: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=46948 > > > > On Jun 17, 2009, at 12:22 PM, f.schaefer@yorfeix.de via RT wrote: >
>>        Queue: Archive-Extract >>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46948 > >> >> I looked at the path problem. I appears to be from the >> Win32::GetShortPathName() method. >> >> # cwd(): [D:/_workspace/Tools/Archive-Extract-0.32-nvPbUZ/t] >> # &Win32::GetShortPathName( cwd() ): [D:/_WORKS~1/Tools/ >> ARCHIV~1.32-/t] >> # File::Spec->rel2abs( IS_WIN32 ? &Win32::GetShortPathName( cwd() ) : >> cwd() ): [D:\_WORKS~1\Tools\ARCHIV~1.32-\t] >> >> But as the short Path with the hyphen in the end works with every >> other test I guess that it is just looking strange, but it works. >> Perhaps it is a mechanism to ignore hashes in the end of a directory >> name. >> >> If i have two directories which are the the same except the >> cpan-"id"-ending like [D:/Archive-Extract-0.32-0iRaiS/t] and >> [D:/Archive-Extract-0.32-nvPbUZ/t] >> the first one is shortened to [D:/ARCHIV~1.32-/t] and the second one >> will be [D:/ARCHIV~2.32-/t]. >> The system seems to be able to differ the both directories but both >> directories have the same shortPathName except for the iterator in it.
> > Right, but in previous communication you said that 'bunzip2 ... D: > \_WORKS~1\Tools\ARCHIV~1.32-\t | tar -tf -' > failed, or am I mistaken there? > > Cheers, > > -- > >        Jos Boumans > >        "Whenever you find you are on the side of the majority, >        it is time to pause and reflect." - Mark Twain > > > > >
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Wed, 17 Jun 2009 14:54:16 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On Jun 17, 2009, at 2:49 PM, f.schaefer@yorfeix.de via RT wrote: Show quoted text
> Queue: Archive-Extract > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > > > when i run the command directly with commandline i get SOMETIMES an IO > error. But most of the time it works fine. > > #>C:\usr\local\wbin\bunzip2.EXE -cd > D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz | C:\usr\local\wbin\tar.EXE > -tf - > y/ > y/z > > bunzip2.EXE: I/O or other error, bailing out. Possible reason > follows. > bunzip2.EXE: Invalid argument > Input file = D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz, > output file = (stdout) > > #>C:\usr\local\wbin\bunzip2.EXE -cd > D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz | C:\usr\local\wbin\tar.EXE > -tf - > y/ > y/z
o.O Sometimes? I have *no* idea how to be able to code/fix for that... What versions of bunzip2 are you using here? Anything upgradable? -- Jos Boumans "Whenever you find you are on the side of the majority, it is time to pause and reflect." - Mark Twain
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Wed, 17 Jun 2009 15:40:13 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: Felix Schäfer <f.schaefer [...] yorfeix.de>
#>bunzip2 -V bzip2, a block-sorting file compressor. Version 1.0.5, 10-Dec-2007. Copyright (C) 1996-2007 by Julian Seward. This program is free software; you can redistribute it and/or modify it under the terms set out in the LICENSE file, which is included in the bzip2-1.0.5 source distribution. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details. bunzip2: I won't read compressed data from a terminal. bunzip2: For help, type: `bunzip2 --help'. I updated my bunzip2.exe yesterday. I got it from http://www.bzip.org/ 2009/6/17 Jos I. Boumans via RT <bug-Archive-Extract@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > > > > On Jun 17, 2009, at 2:49 PM, f.schaefer@yorfeix.de via RT wrote: >
>>        Queue: Archive-Extract >>  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > >> >> when i run the command directly with commandline i get SOMETIMES an IO >> error. But most of the time it works fine. >> >> #>C:\usr\local\wbin\bunzip2.EXE -cd >> D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz | C:\usr\local\wbin\tar.EXE >> -tf - >> y/ >> y/z >> >> bunzip2.EXE: I/O or other error, bailing out.  Possible reason >> follows. >> bunzip2.EXE: Invalid argument >>         Input file = D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz, >> output file = (stdout) >> >> #>C:\usr\local\wbin\bunzip2.EXE -cd >> D:\_WORKS~1\Tools\ARCHIV~1.32-\t\src\y.tbz | C:\usr\local\wbin\tar.EXE >> -tf - >> y/ >> y/z
> > o.O Sometimes? I have *no* idea how to be able to code/fix for that... > > What versions of bunzip2 are you using here? Anything upgradable? > > -- > >        Jos Boumans > >        "Whenever you find you are on the side of the majority, >        it is time to pause and reflect." - Mark Twain > > > > >
Subject: Re: [rt.cpan.org #46948] unable to install install on win32
Date: Thu, 18 Jun 2009 11:52:55 +0200
To: bug-Archive-Extract [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On Jun 17, 2009, at 3:40 PM, f.schaefer@yorfeix.de via RT wrote: Show quoted text
> Queue: Archive-Extract > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46948 > > > #>bunzip2 -V > bzip2, a block-sorting file compressor. Version 1.0.5, 10-Dec-2007. > > Copyright (C) 1996-2007 by Julian Seward. > > This program is free software; you can redistribute it and/or > modify > it under the terms set out in the LICENSE file, which is included > in the bzip2-1.0.5 source distribution. > > This program is distributed in the hope that it will be useful, > but WITHOUT ANY WARRANTY; without even the implied warranty of > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > LICENSE file for more details. > > bunzip2: I won't read compressed data from a terminal. > bunzip2: For help, type: `bunzip2 --help'. > > I updated my bunzip2.exe yesterday. I got it from http://www.bzip.org/ > > > > 2009/6/17 Jos I. Boumans via RT <bug-Archive-Extract@rt.cpan.org>:
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > >> >> >> On Jun 17, 2009, at 2:49 PM, f.schaefer@yorfeix.de via RT wrote: >>
>>> Queue: Archive-Extract >>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46948 > >>> >>> when i run the command directly with commandline i get SOMETIMES >>> an IO >>> error. But most of the time it works fine.
I'm seriously at a loss; obviously if it fails outside the A::E test suite (even if it is sometimes), we can hardly expect it to work inside.. This might be an issue you can take upstream to the bzip people, but other than I'm afraid I dont have any suggestions on what to do; for that my Win32 knowledge isn't good enough ;( I'm sorry I can't be of more help... -- Jos Boumans "Whenever you find you are on the side of the majority, it is time to pause and reflect." - Mark Twain
I've released 0.34 which skips these tests on Win32 if they fail; Adam Kennedy informs me Strawberry perl has all the required Perl modules to ensure extraction, so relying on binaries is not needed. Cheers,