Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[_61] tarball fine on win32, zip isn't #671

Closed
p5pRT opened this issue Oct 1, 1999 · 18 comments
Closed

[_61] tarball fine on win32, zip isn't #671

p5pRT opened this issue Oct 1, 1999 · 18 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 1, 1999

Migrated from rt.perl.org#1551 (status was 'resolved')

Searchable as RT1551$

@p5pRT
Copy link
Author

p5pRT commented Oct 1, 1999

From jbley@cs.cmu.edu

Writing Makefile for B
  nmake -nologo
mkdir ..\..\lib\auto\B
<snip>
NMAKE : fatal error U1073​: don't know how to make 'defsubs.h'

There is no defsubs.h.PL in the _61 zip file, but
there is one in the tarball.

That's weird.
--
John Bley
jbley@​cs.cmu.edu
  "Inquisitors create heretics." - Umberto Eco

@p5pRT
Copy link
Author

p5pRT commented Oct 2, 1999

From @jandubois

On Fri, 1 Oct 1999 21​:43​:40 -0400, John Bley <jbley@​cs.cmu.edu> wrote​:

On win32, the tarball of perl _61 compiles fine,
but the zip of it doesn't​:

Writing Makefile for B
nmake -nologo
mkdir ..\..\lib\auto\B
<snip>
NMAKE : fatal error U1073​: don't know how to make 'defsubs.h'

There is no defsubs.h.PL in the _61 zip file, but
there is one in the tarball.

That's weird.

The devel.zip file seems to be missing all files with more than one '.' in
the filename.

-Jan

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From @jhi

Jan Dubois writes​:

The devel.zip file seems to be missing all files with more than one '.' in
the filename.

Sigh. I seem never to get the .zip right.

If somebody on Win* platforms (who cares enough to demand a .zip in
the first place) could produce a script that in a UNIX box automagically
converts a latest.tar.gz into a 8.3-friendly .zip, I would be very glad.

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From @jandubois

On Sun, 3 Oct 1999 14​:53​:21 +0300 (EET DST), Jarkko Hietaniemi
<jhi@​iki.fi> wrote​:

Jan Dubois writes​:

The devel.zip file seems to be missing all files with more than one '.' in
the filename.

Sigh. I seem never to get the .zip right.

If somebody on Win* platforms (who cares enough to demand a .zip in
the first place) could produce a script that in a UNIX box automagically
converts a latest.tar.gz into a 8.3-friendly .zip, I would be very glad.

I have to admit that I don't really see the point of providing a zip file
at all. People trying to compile Perl themselves shouldn't have any
problems processing tarballs.

But in any case, doesn't

  zip -ro9 devel perl5.005_61

create the correct thing? At least that's my mental equivalent of

  tar cvf devel.tar perl5.005_61
  gzip -9f devel.tar

-Jan

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From [Unknown Contact. See original ticket]

If somebody on Win* platforms (who cares enough to demand a .zip in
the first place) could produce a script that in a UNIX box automagically
converts a latest.tar.gz into a 8.3-friendly .zip, I would be very glad.
I have to admit that I don't really see the point of providing a zip file
at all. People trying to compile Perl themselves shouldn't have any
problems processing tarballs.

I vote for this point of view. At least cygwin will help to unzip and untar.

But in any case, doesn't

zip \-ro9 devel perl5\.005\_61

create the correct thing?

-zip -ro9 devel perl5.005_61
+zip -Ro9 devel perl5.005_61
:)

If I understand correctly -R stands for 'Recurse subdirectories' and is
upcase letter.

Good luck,
Vadim.

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From @jandubois

On Sun, 3 Oct 1999 16​:38​:10 +0400 , "Konovalov, Vadim"
<vkonovalov@​lucent.com> wrote​:

But in any case, doesn't

zip \-ro9 devel perl5\.005\_61

create the correct thing?

-zip -ro9 devel perl5.005_61
+zip -Ro9 devel perl5.005_61
​:)

If I understand correctly -R stands for 'Recurse subdirectories' and is
upcase letter.

They are similar, but not the same​:

  -r Travel the directory structure recursively; for
  example​:

  zip -r foo foo

  In this case, all the files and directories in foo
  are saved in a zip archive named foo.zip, including
  files with names starting with ".", since the
  recursion does not use the shell's file-name sub-
  stitution mechanism. If you wish to include only a
  specific subset of the files in directory foo and
  its subdirectories, use the -i option to specify
  the pattern of files to be included. You should
  not use -r with the name ".*", since that matches
  ".." which will attempt to zip up the parent
  directory (probably not what was intended).

  -R Travel the directory structure recursively starting
  at the current directory; for example​:

  zip -R foo *.c

  In this case, all the files matching *.c in the
  tree starting at the current directory are stored
  into a zip archive named foo.zip. Note for PKZIP
  users​: the equivalent command is

  pkzip -rP foo *.c

I maintain for zipping the complete tree -r is preferable.

-Jan

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From @jhi

Jan Dubois writes​:

On Sun, 3 Oct 1999 14​:53​:21 +0300 (EET DST), Jarkko Hietaniemi
<jhi@​iki.fi> wrote​:

Jan Dubois writes​:

The devel.zip file seems to be missing all files with more than one '.' in
the filename.

Sigh. I seem never to get the .zip right.

If somebody on Win* platforms (who cares enough to demand a .zip in
the first place) could produce a script that in a UNIX box automagically
converts a latest.tar.gz into a 8.3-friendly .zip, I would be very glad.

I have to admit that I don't really see the point of providing a zip file
at all. People trying to compile Perl themselves shouldn't have any
problems processing tarballs.

Neither do I. But people ask from me for such a thing. No, explaining
that WinZip should understand .tar.gz just fine doesn't make them go away.

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From [Unknown Contact. See original ticket]

Jarkko Hietaniemi <jhi@​iki.fi> writes​:

Jan Dubois writes​:

The devel.zip file seems to be missing all files with more than one '.' in
the filename.

Sigh. I seem never to get the .zip right.

If somebody on Win* platforms (who cares enough to demand a .zip in
the first place) could produce a script that in a UNIX box automagically
converts a latest.tar.gz into a 8.3-friendly .zip, I would be very glad.

I think that is UNIX box's overzealous applying the 8.3 rule that causes
the problem. Win32 does not really care about 8.3

--
Nick Ing-Simmons

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From @jhi

Okay, I will redo the zips using the aforementioned zip incantation,
and if somebody complains after this, I'll give Jan's email address :-)

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From [Unknown Contact. See original ticket]

Jarkko Hietaniemi <jhi@​iki.fi> writes​:

Jan Dubois writes​:

The devel.zip file seems to be missing all files with more than one
'.' in
the filename.

Sigh. I seem never to get the .zip right.

If somebody on Win* platforms (who cares enough to demand a .zip in
the first place) could produce a script that in a UNIX box automagically
converts a latest.tar.gz into a 8.3-friendly .zip, I would be very glad.

I think that is UNIX box's overzealous applying the 8.3 rule that causes
the problem. Win32 does not really care about 8.3

Sometimes it *does* so, and if it does, noone can convince it not to do it
:). It tries to recoznize extensions and do things that it thinks correct.
After that I have file perl5.005_61.tar.tar after downloading instead
perl5.005_61.tar.gz and sometimes even XXXX.bz2..bz2 (!note _two_ dots here)
Also I can not create file with a trailing dot(s) in it's name - it strips
them all for no sane reason.

Win32 have many (mis)features in it's shell that designed to make things
easier, but actually make things incompatible and sometimes not usable at
all.

Good luck,
Vadim.

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 1999

From [Unknown Contact. See original ticket]

At 17​:22 03/10/1999 +0300, Jarkko Hietaniemi wrote​:

Jan Dubois writes​:

I have to admit that I don't really see the point of providing a zip file
at all. People trying to compile Perl themselves shouldn't have any
problems processing tarballs.

Neither do I. But people ask from me for such a thing. No, explaining
that WinZip should understand .tar.gz just fine doesn't make them go away.

Wouldn't a latest.zip link to latest.tar.gz make them go away ?

.Robin
After all, what is your hosts' purpose in having a party? Surely not for
you to enjoy yourself; if that were their sole purpose, they'd have simply
sent champagne and women over to your place by taxi.

@p5pRT
Copy link
Author

p5pRT commented Oct 4, 1999

From @doughera88

On Sun, 3 Oct 1999, Jarkko Hietaniemi wrote​:

I have to admit that I don't really see the point of providing a zip file
at all. People trying to compile Perl themselves shouldn't have any
problems processing tarballs.

Neither do I. But people ask from me for such a thing. No, explaining
that WinZip should understand .tar.gz just fine doesn't make them go away.

Sometimes it's just less work to eliminate the non-problem than it is to
continually convince new people that the non-problem is, in fact, not a
problem.

More succinctly, it shouldn't be hard to keep the distribution free of
file names with two '.' in them. (Isn't this an issue for VMS too
anyway?) Certainly neither 'defsubs.h.PL' nor the cgi uu-encoded examples
*needs* to have two '.' in the filename. Unless there's reasonable
objection, I'll submit such a patch (probably later today) to take care of
that.

--
  Andy Dougherty doughera@​lafayette.edu
  Dept. of Physics
  Lafayette College, Easton PA 18042

@p5pRT
Copy link
Author

p5pRT commented Oct 4, 1999

From [Unknown Contact. See original ticket]

At 09​:31 AM 10/4/99 -0400, Andy Dougherty wrote​:

On Sun, 3 Oct 1999, Jarkko Hietaniemi wrote​:

I have to admit that I don't really see the point of providing a zip
file
at all. People trying to compile Perl themselves shouldn't have any
problems processing tarballs.

Neither do I. But people ask from me for such a thing. No, explaining
that WinZip should understand .tar.gz just fine doesn't make them go away.

Sometimes it's just less work to eliminate the non-problem than it is to
continually convince new people that the non-problem is, in fact, not a
problem.

More succinctly, it shouldn't be hard to keep the distribution free of
file names with two '.' in them. (Isn't this an issue for VMS too
anyway?)

The VMS uncompressing/unarchiving tools take care of this automagically,
translating all but one of the . to _. (Of course, zip and untar choose a
different one, but that's not p5p's problem...)

  Dan

----------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan@​sidhe.org have teddy bears and even
  teddy bears get drunk

@p5pRT
Copy link
Author

p5pRT commented Oct 4, 1999

From @jhi

Andy Dougherty writes​:

More succinctly, it shouldn't be hard to keep the distribution free of
file names with two '.' in them. (Isn't this an issue for VMS too
anyway?) Certainly neither 'defsubs.h.PL' nor the cgi uu-encoded examples
*needs* to have two '.' in the filename. Unless there's reasonable
objection, I'll submit such a patch (probably later today) to take care of
that.

The defsubs_h.PL has been taken care of already.

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT
Copy link
Author

p5pRT commented Oct 4, 1999

From @doughera88

On Mon, 4 Oct 1999, Dan Sugalski wrote​:

The VMS uncompressing/unarchiving tools take care of this automagically,
translating all but one of the . to _. (Of course, zip and untar choose a
different one, but that's not p5p's problem...)

Well it sort of still is p5p's problem because you still have to special
case things like ext/B/defsubs.h.PL, which ends up as defsubs.h_PL, which
MakeMaker won't automatically recognize. The ext/B/defsubs.h.PL script
in _61 contains VMS-specific code to work around this problem.

Nick already handled renaming defsubs.h.PL to defsubs_h.PL in the
repository, and this renders the VMS-specific code unnecessary.

--
  Andy Dougherty doughera@​lafayette.edu
  Dept. of Physics
  Lafayette College, Easton PA 18042

@p5pRT
Copy link
Author

p5pRT commented Oct 4, 1999

From @doughera88

On Mon, 4 Oct 1999, Jarkko Hietaniemi wrote​:

The defsubs_h.PL has been taken care of already.

Thanks. This patch removes the now-unnecessary VMS-specific code in
defsubs_h.PL and also fixes up the other two double-dot file names.

  Andy Dougherty doughera@​lafayette.edu
  Dept. of Physics
  Lafayette College, Easton PA 18042

#!/bin/sh
# Please execute the following commands before applying this patch.
# (You can feed this patch to 'sh' to do so.)
mv eg/cgi/dna.small.gif.uu eg/cgi/dna_small_gif.uu
mv eg/cgi/wilogo.gif.uu eg/cgi/wilogo_gif.uu
exit 0

Index​: perl-andy/MANIFEST

Inline Patch
--- perl-p4/MANIFEST	Tue Sep 28 13:52:49 1999
+++ perl-andy/MANIFEST	Mon Oct  4 13:03:47 1999
@@ -91,7 +91,7 @@
 eg/cgi/crash.cgi		CGI example
 eg/cgi/customize.cgi		CGI example
 eg/cgi/diff_upload.cgi		CGI example
-eg/cgi/dna.small.gif.uu		Small image for CGI examples
+eg/cgi/dna_small_gif.uu		Small image for CGI examples
 eg/cgi/file_upload.cgi		CGI example
 eg/cgi/frameset.cgi		CGI example
 eg/cgi/index.html		Index page for CGI examples
@@ -104,7 +104,7 @@
 eg/cgi/popup.cgi		CGI example
 eg/cgi/save_state.cgi		CGI example
 eg/cgi/tryit.cgi		CGI example
-eg/cgi/wilogo.gif.uu		Small image for CGI examples
+eg/cgi/wilogo_gif.uu		Small image for CGI examples
 eg/changes		A program to list recently changed files
 eg/client		A sample client
 eg/down			A program to do things to subdirectories
Index: perl-andy/eg/cgi/dna_small_gif.uu
Inline Patch
--- perl-p4/eg/cgi/dna_small_gif.uu	Tue May 25 15:06:22 1999
+++ perl-andy/eg/cgi/dna_small_gif.uu	Mon Oct  4 13:10:32 1999
@@ -1,4 +1,4 @@
-begin 444 dna.small.gif
+begin 444 dna_small.gif
 M1TE&.#=A)0`J`.<``+9%&Y<R0M<F'ID\,!<07%<G1:P<0Q`A2Q`P;"L9/L$:
 M,"480N5"&RL7:4LD0T,G144[7BHL2B4?3\0I+"</)BQ.9KD0/S878\96$Z\@
 M(:\1*RL:3L0W&QL?2#4?9>@_&A$_5<I"&C`A3*,3-A`//9X<)\@Q(L`@.#\E
Index: perl-andy/ext/B/defsubs_h.PL
Inline Patch
--- perl-p4/ext/B/defsubs_h.PL	Tue Sep 21 12:28:15 1999
+++ perl-andy/ext/B/defsubs_h.PL	Mon Oct  4 13:03:47 1999
@@ -3,7 +3,6 @@
 # Extracting defsubs.h (with variable substitutions)
 #!perl
 my ($out) = __FILE__ =~ /(^.*)\.PL/;
-if ($^O eq 'VMS') { ($out) = __FILE__ =~ /^(.+)_PL$/i; }
 $out =~ s/_h$/.h/;
 open(OUT,">$out") || die "Cannot open $file:$!";
 print "Extracting $out . . .\n";


End of patch.

@p5pRT
Copy link
Author

p5pRT commented Oct 5, 1999

From @jhi

Please try these, just updated in the CPAN/src master.

5176 -rw-r--r-- 1 jhi ftp 5294200 Oct 5 12​:56 devel.zip
4032 -rw-r--r-- 1 jhi ftp 4122753 Oct 5 12​:52 stable.zip

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT
Copy link
Author

p5pRT commented Oct 5, 1999

From [Unknown Contact. See original ticket]

From​: Jarkko Hietaniemi [mailto​:jhi@​iki.fi]
Please try these, just updated in the CPAN/src master.

5176 -rw-r--r-- 1 jhi ftp 5294200 Oct 5 12​:56 devel.zip
4032 -rw-r--r-- 1 jhi ftp 4122753 Oct 5 12​:52 stable.zip

The devel builds and tests fine with VC++ 6 on NT4.
Haven't tried the stable yet, if I run into a problem,
I'll speak up.

Thanks,
--
John Bley
jbley@​cs.cmu.edu
  "Inquisitors create heretics." - Umberto Eco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant