bsc-wdc / compss

COMP Superscalar (COMPSs) is a framework which aims to ease the development and execution of applications for distributed infrastructures, such as Clusters, Grids and Clouds.
https://compss.bsc.es
Apache License 2.0
47 stars 20 forks source link

buildlocal undesirably cleans the installation directory #3

Open suvarchal opened 2 years ago

suvarchal commented 2 years ago

Level

CRITICAL

Component

RUNTIME / PYTHON BINDING / C BINDING / MONITOR / TRACING / TESTS / INFRASTRUCTURE

Environment

Building compss from source, environment any

Description

./buildlocal $INSTALL_DIR cleans the install dir which i think is dangerous especially when used as root. I wanted to install compps into in conda environment assuming compps installation will produce some /lib /bin and optionally /include files but it cleaned up all contents in the directory instead of appending. This can be dangerous when used as root and a user points to something like /usr/local.

Minimal example to reproduce

to reproduce see how contents of directory are replaced

export $INSTALL_DIR=. ./buildlocal $INSTALL_DIR