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

Add RUNTIME_PREFIX to environment for portable build? #151

Open
bmaranville opened this issue Aug 14, 2024 · 1 comment
Open

Add RUNTIME_PREFIX to environment for portable build? #151

bmaranville opened this issue Aug 14, 2024 · 1 comment
Labels

Comments

@bmaranville
Copy link

Comment:

Would you consider adding the build flag RUNTIME_PREFIX=True, to make the installation of git more portable?

See discussion here: https://lore.kernel.org/all/[email protected]/T/

Background:
I use conda-pack to move environments around all the time, and I frequently don't have to run conda-unpack because many packages "just work" after decompressing the archive in a new location. It would be nice if git were on this list of easy-to-move packages.

I tried building git this way, and it did seem to be portable (the install folder could be moved around on disk):

make configure
RUNTIME_PREFIX=True ./configure --prefix=$(pwd)/build --with-curl
make
make install
@asmeurer
Copy link
Member

That sounds OK to me. That post doesn't mention any disadvantages of doing this.

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

No branches or pull requests

2 participants