You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Suraj Varma (Created) (JIRA)" <ji...@apache.org> on 2011/10/10 18:25:29 UTC

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

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
             Fix For: 0.92.0


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

        

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

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461282#comment-13461282 ] 

stack commented on HBASE-4565:
------------------------------

It does not look like the rebase to trunk was posted?  [~svarma] Want to rebase?
                
> 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.96.0
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469890#comment-13469890 ] 

Hudson commented on HBASE-4565:
-------------------------------

Integrated in HBase-0.94-security-on-Hadoop-23 #8 (See [https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/8/])
    HBASE-4565 Maven HBase build broken on cygwin with copynativelib.sh call (Revision 1391880)

     Result = FAILURE
stack : 
Files : 
* /hbase/branches/0.94/pom.xml

                
> 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.92.3, 0.94.2
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463543#comment-13463543 ] 

stack commented on HBASE-4565:
------------------------------

[~svarma] So we should apply the patch to 0.92 and 0.94?  The v3 patch still works on windows?  Thanks for checking trunk.
                
> 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.96.0
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma reassigned HBASE-4565:
----------------------------------

    Assignee: Suraj Varma
    
> 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.92.0
>
>
> 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

        

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

Posted by "Suraj Varma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Attachment: HBASE-4565-v3.patch
                HBASE-4565-v3-0.92.patch
    
> 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

        

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

Posted by "Lars Hofhansl (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234533#comment-13234533 ] 

Lars Hofhansl commented on HBASE-4565:
--------------------------------------

@Suraj: Are you still working on this. I think we want this in 0.94.
                
> 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

        

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466336#comment-13466336 ] 

Hudson commented on HBASE-4565:
-------------------------------

Integrated in HBase-0.94 #498 (See [https://builds.apache.org/job/HBase-0.94/498/])
    HBASE-4565 Maven HBase build broken on cygwin with copynativelib.sh call (Revision 1391880)

     Result = FAILURE
stack : 
Files : 
* /hbase/branches/0.94/pom.xml

                
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "stack (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124284#comment-13124284 ] 

stack commented on HBASE-4565:
------------------------------

@Suraj Do you have a patch for us?
                
> 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
>              Labels: build, maven
>             Fix For: 0.92.0
>
>
> 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

        

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

Posted by "Lars Hofhansl (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Hofhansl updated HBASE-4565:
---------------------------------

    Fix Version/s:     (was: 0.94.0)
                   0.96.0

Moving out of 0.94, pull back if you feel differently.
                
> 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.96.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

        

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

Posted by "Suraj Varma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Attachment:     (was: HBASE-4565-v3-0.92.patch)
    
> 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.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

        

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

Posted by "Suraj Varma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465824#comment-13465824 ] 

Suraj Varma commented on HBASE-4565:
------------------------------------

Yes, this is an issue in 0.92 and 0.94. I don't think the v3 patch still works as the security profile changes were made after that. I'll rebase and upload new patches for 0.92 and 0.94.
                
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240448#comment-13240448 ] 

Suraj Varma commented on HBASE-4565:
------------------------------------

@Laxman - Yes, please go ahead.

@Lars - Ok, no problem.
                
> 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.96.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

        

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

Posted by "Suraj Varma (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179550#comment-13179550 ] 

Suraj Varma commented on HBASE-4565:
------------------------------------

Ah - looks like it is out of sync with 0.92 and trunk now with the hbase-security pom updates. I'll rebase and put out a new patch version.
                
> 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

        

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

Posted by "Suraj Varma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Status: Patch Available  (was: Open)
    
> 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

        

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

Posted by "Lars Hofhansl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Hofhansl updated HBASE-4565:
---------------------------------

    Fix Version/s:     (was: 0.94.3)
                   0.94.2
    
> 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.92.3, 0.94.2
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466358#comment-13466358 ] 

Hudson commented on HBASE-4565:
-------------------------------

Integrated in HBase-0.92 #587 (See [https://builds.apache.org/job/HBase-0.92/587/])
    HBASE-4565 Maven HBase build broken on cygwin with copynativelib.sh call (Revision 1391881)

     Result = FAILURE
stack : 
Files : 
* /hbase/branches/0.92/pom.xml

                
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Attachment: HBASE-4565-v3-0.92.patch
                HBASE-4565-v3.patch

The tarball in the previous patches had an extra directory. Attaching v3 versions for both trunk and 0.92
                
> 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.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

        

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

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-4565:
-------------------------

    Fix Version/s:     (was: 0.96.0)
                   0.94.3
                   0.92.3
    
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127365#comment-13127365 ] 

Suraj Varma commented on HBASE-4565:
------------------------------------

Update: I haven't been able to get it to work in a cross-platform way as yet. The best I've been able to do is to exec cygpath -u ${project.build.directory} to get a POSIX directory ... however, this would involve replacing the ${project.build.directory} with a new variable for cygwin.

The workaround for now is to manually update the path to /cygdrive/c/path/to/project/build/directory wherever it execs out to shell.
I'll continue to look into other options. 
                
> 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.92.0
>
>
> 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

        

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

Posted by "Ted Yu (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu updated HBASE-4565:
--------------------------

    Fix Version/s:     (was: 0.92.0)
                   0.94.0
    
> 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
>
>
> 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

        

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

Posted by "Laxman (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240331#comment-13240331 ] 

Laxman commented on HBASE-4565:
-------------------------------

Is it ok if I rebase this patch to trunk?
I need it to build in my windows env.
                
> 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.96.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

        

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

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466138#comment-13466138 ] 

Hadoop QA commented on HBASE-4565:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12547097/HBASE-4565-v4-0.94.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    -1 patch.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/2967//console

This message is automatically generated.
                
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463518#comment-13463518 ] 

Suraj Varma commented on HBASE-4565:
------------------------------------

This is no longer an issue on trunk, it appears. The build script modularization changes have completely done away with the copynativelibs.sh which caused the original issue. I am able to build from trunk successfully via cygwin now.
                
> 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.96.0
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126722#comment-13126722 ] 

Suraj Varma commented on HBASE-4565:
------------------------------------

Working on one ... assigning this to myself.
                
> 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.92.0
>
>
> 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

        

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

Posted by "Suraj Varma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Attachment: HBASE-4565-v4-0.94.patch
                HBASE-4565-v4-0.92.patch

Rebased patch to both 0.92 and 0.94. Please find attached v4 versions of the patch.
Tested on a Windows 7 / cygwin environment and build ran successfully for both 0.92 head and 0.94 head.
                
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-4565:
-------------------------

      Resolution: Fixed
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)

Committed to 0.94 and to 0.92.  I checked patch doesn't break linux packag'ing.  Thanks for the patch Suraj.
                
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469992#comment-13469992 ] 

Hudson commented on HBASE-4565:
-------------------------------

Integrated in HBase-0.92-security #143 (See [https://builds.apache.org/job/HBase-0.92-security/143/])
    HBASE-4565 Maven HBase build broken on cygwin with copynativelib.sh call (Revision 1391881)

     Result = FAILURE
stack : 
Files : 
* /hbase/branches/0.92/pom.xml

                
> 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.92.3, 0.94.2
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Attachment: HBASE-4565.patch

Patch to support maven build on cygwin. Same approach as being done in hadoop-0.23 pom.xml to support cygwin.
                
> 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.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

        

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467511#comment-13467511 ] 

Hudson commented on HBASE-4565:
-------------------------------

Integrated in HBase-0.94-security #58 (See [https://builds.apache.org/job/HBase-0.94-security/58/])
    HBASE-4565 Maven HBase build broken on cygwin with copynativelib.sh call (Revision 1391880)

     Result = SUCCESS
stack : 
Files : 
* /hbase/branches/0.94/pom.xml

                
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Attachment:     (was: HBASE-4565-v3.patch)
    
> 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.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

        

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

Posted by "Li Pi (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135598#comment-13135598 ] 

Li Pi commented on HBASE-4565:
------------------------------

+1. Not having to dual boot on my desktop would be awesome.
                
> 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
>
>
> 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

        

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

Posted by "Akash Ashok (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Suraj Varma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Attachment: HBASE-4565-0.92.patch

Same patch against hbase-0.92 
                
> 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.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

        

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

Posted by "Suraj Varma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466141#comment-13466141 ] 

Suraj Varma commented on HBASE-4565:
------------------------------------

To clarify ... the v4 patches are for 0.92 and 0.94 branches. (trunk doesn't need any patch).
                
> 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.92.3, 0.94.3
>
>         Attachments: HBASE-4565-0.92.patch, HBASE-4565.patch, HBASE-4565-v2.patch, HBASE-4565-v3-0.92.patch, HBASE-4565-v3.patch, HBASE-4565-v4-0.92.patch, HBASE-4565-v4-0.94.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Suraj Varma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suraj Varma updated HBASE-4565:
-------------------------------

    Attachment: HBASE-4565-v2.patch

Trunk patch - just ran dos2unix to remove Windows line endings ... no other change.
                
> 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.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