[ 
http://issues.apache.org/jira/browse/BEEHIVE-403?page=comments#action_61150 ]
     
Jim Cummings commented on BEEHIVE-403:
--------------------------------------

It looks like the norm is for distributions to be built GNU-compatible, but not 
necessarily MKS compatible (see the below snippets from other projects).

Currently if building a dist from windows, we exec to whatever tar you have in 
your env, and it looks like if your are using MKS tar, then it generates 
archives that are not GNU-compatible.  I propose we go back to using the Ant 
tar task allowing long filenames which is GNU-compatible, and update the 
READMEs to say something like one of the below projects requiring GNU-tar.  *** 
However, this would require whoever builds a dist on Windows to use GNU tar, 
not MKS tar.

Any objections to that?

>From the Tomcat download readme page:
"NOTE: The tar files in this distribution use GNU tar extensions, and must be 
untarred with a GNU compatible version of tar. The version of tar on Solaris 
and Mac OS X will not work with these files."

>From the Ant download page:
"Please note that the tar.* archives contain file names longer than 100 
characters and have been created using GNU tar extensions. Thus they must be 
untarred with a GNU compatible version of tar."

> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
>          Key: BEEHIVE-403
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-403
>      Project: Beehive
>         Type: Bug
>   Components: Build
>     Versions: V1Beta, V1
>  Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter 
> in my paths
>     Reporter: Jim Cummings
>     Priority: Minor
>  Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do 
> not generated.  There are errors that go by, but the build still thinks it is 
> successful.  In distribution.xml, if you add a failonerror="true" attribute 
> to the exec elements this lets it fail the build if tar failed.  Might want 
> to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated.  My path 
> is finding my cygwin GNU tar (version 1.13.25).  The cause is that tar is 
> failing with this error:
>      [exec] D: Unknown Host
>      [exec] 
> apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
>      [exec] tar (child): 
> D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz:
>  Cannot open: Input/Output error
>      [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive 
> letters in your file paths.  I tried taking it out of my BEEHIVE_HOME, but 
> the drive letter crops up from somewhere else still.  If you add this as the 
> 1st argument to the exec tar element it seems to fix the problem. 
>      <arg value="--force-local"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to