You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Akash Ashok (Commented) (JIRA)" <ji...@apache.org> on 2011/12/27 16:26:31 UTC

[jira] [Commented] (HBASE-4565) Maven HBase build broken on cygwin with copynativelib.sh call.

    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13176207#comment-13176207 ] 

Akash Ashok commented on HBASE-4565:
------------------------------------

Really helpful. Thanks a lot. 

Also patch seems to be failing on trunk. I am not sure it its already out of sync with trunk.

$ patch -p0 < pom.patch
(Stripping trailing CRs from patch.)
patching file pom.xml
Hunk #1 FAILED at 696.
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 1328 with fuzz 1 (offset 90 lines).
1 out of 2 hunks FAILED -- saving rejects to file pom.xml.rej

I manually patched it and works beautifully. 
                
> Maven HBase build broken on cygwin with copynativelib.sh call.
> --------------------------------------------------------------
>
>                 Key: HBASE-4565
>                 URL: https://issues.apache.org/jira/browse/HBASE-4565
>             Project: HBase
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.92.0
>         Environment: cygwin (on xp and win7)
>            Reporter: Suraj Varma
>            Assignee: Suraj Varma
>              Labels: build, maven
>             Fix For: 0.94.0
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565.patch
>
>
> This is broken in both 0.92 as well as trunk pom.xml
> Here's a sample maven log snippet from trunk (from Mayuresh on user mailing list)
> [INFO] [antrun:run {execution: package}]
> [INFO] Executing tasks
> main:
>    [mkdir] Created dir: D:\workspace\mkshirsa\hbase-trunk\target\hbase-0.93-SNAPSHOT\hbase-0.93-SNAPSHOT\lib\native\${build.platform}
>     [exec] ls: cannot access D:workspacemkshirsahbase-trunktarget/nativelib: No such file or directory
>     [exec] tar (child): Cannot connect to D: resolve failed
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: exec returned: 3328
> There are two issues: 
> 1) The ant run task below doesn't resolve the windows file separator returned by the project.build.directory - this causes the above resolve failed.
> <!-- Using Unix cp to preserve symlinks, using script to handle wildcards -->
> <echo file="${project.build.directory}/copynativelibs.sh">
>     if [ `ls ${project.build.directory}/nativelib | wc -l` -ne 0]; then
> 2) The tar argument value below also has a similar issue in that the path arg doesn't resolve right.
> <!-- Using Unix tar to preserve symlinks -->
> <exec executable="tar" failonerror="yes" dir="${project.build.directory}/${project.artifactId}-${project.version}">
>     <arg value="czf"/>
>     <arg value="/cygdrive/c/workspaces/hbase-0.92-svn/target/${project.artifactId}-${project.version}.tar.gz"/>
>     <arg value="."/>
> </exec>
> In both cases, the fix would probably be to use a cross-platform way to handle the directory locations. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira