How can I create a temporary sandbox to compile from source?

I want to follow the steps found here in order to run League of Legends under Ubuntu. According to the guide, I have to compile wine from source because it needs some patches.

Compiling from source involves downloading quite a few dependency packages which I don't want to get mixed with the system and thus I'm wondering if there's a way to somehow isolate the whole "download dependencies packages and compile" process as I am only interested in the final wine binary.

By isolating the compile process I can just copy the resulting binary and do a simple delete on the sandbox whereas doing it the naive way would require a more complex cleanup.


I'd suggest looking into arkose How can I create a temporary sandbox to compile from source?. As it's manpage How can I create a temporary sandbox to compile from source? says, it is a "tool to make sandboxing desktop application easy," but it can also be used for purposes like yours.

It's author, Stéphane Graber described how he uses it to keep from having to install many dependencies while doing development on his blog:

Since I last reinstalled my laptop, I try to keep my usually insanely long list of installed packages to a bare minimum. I’d usually have hundreds if not thousands of libraries and development packages as these are required by a bunch of packages I maintain or code I work on.

To achieve this and still be as productive as before (if not more), I’m using arkose quite a lot to generate temporary dev/build environment that are wiped as soon as I close the shell. This helps maintain the number of extra libraries to a minimum, avoiding situations where something mysteriously works fine on my laptop but not on another machine and avoids the maintenance needed when dealing with chroots.

Run, arkose -h in a terminal. This will create a container that has direct access to your home directory but uses copy-on-write for the rest of the file-system. When you're done, exit the shell and all your changes outside of /home (i.e. all the packages you installed) will be thrown away.

I would recommend you to use just search their or LoL

Otherwise you could just use virtualbox or any other virtualization software

Category: compiling Time: 2012-06-09 Views: 1
Tags: compiling

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.113 (s). 12 q(s)