You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Olaf Flebbe (JIRA)" <ji...@apache.org> on 2016/02/23 17:10:19 UTC

[jira] [Created] (BIGTOP-2346) Do not use gradle delete() for sources and build directories

Olaf Flebbe created BIGTOP-2346:
-----------------------------------

             Summary: Do not use gradle delete() for sources and build directories
                 Key: BIGTOP-2346
                 URL: https://issues.apache.org/jira/browse/BIGTOP-2346
             Project: Bigtop
          Issue Type: Bug
          Components: build
    Affects Versions: 1.1.0
            Reporter: Olaf Flebbe
            Assignee: Olaf Flebbe
             Fix For: 1.2.0


I was asking myself why sometimes the hue build fails with
{code}
/v/output/hue/hue-3.9.0/Makefile.vars:42: *** "Error: must have python development packages for 2.6 or 2.7. Could not find Python.h. Please install python2.6-devel or python2.7-devel".  Stop.
{code}

This is happening because the python virtualenv created by the hue build contains a symbolic link to /usr/include/python2.7. 

gradles delete() on the output directory follows the symlink and removes everything under /usr/include/python2.7 .

See https://issues.gradle.org/browse/GRADLE-2892 and https://discuss.gradle.org/t/delete-on-directory-with-symlinks-considered-harmful/14705

Work around is to avoid delete() where symlinks can happen.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)