Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing behavior when installing into a parent directory #15

Open
TallJimbo opened this issue Apr 25, 2014 · 3 comments
Open

Confusing behavior when installing into a parent directory #15

TallJimbo opened this issue Apr 25, 2014 · 3 comments

Comments

@TallJimbo
Copy link
Contributor

When installing EUPS into a parent directory, the installer seems to blow away the parent and all the source code, causing a confusing failure.

To repeat, try this.

mkdir -p $HOME/eups/src
cd $HOME/eups/src
git clone [email protected]:RobertLuptonTheGood/eups.git
cd eups
./configure --prefix $HOME/eups --with-eups=$HOME/eups/stack
make
make install

It looks like make install deletes $HOME/eups/*, which of course includes the current directory containing the source.

This is not a serious issue - I can install into a subdirectory - but it took me a while to figure out what was going wrong.

@RobertLuptonTheGood
Copy link
Owner

eups checks that you aren't installing into ., but not for a parent. Does any installer check that you're not installing in a way that might overwrite the current directory?

@TallJimbo
Copy link
Contributor Author

Well, in this case, it's deleting everything in $PREFIX, which is certainly not the behavior of most installers (which regularly install into e.g. PREFIX=/usr).

@RobertLuptonTheGood
Copy link
Owner

Hmm. Well, yes, I guess I buy that argument. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants