I am testing my software's compatibility with a very old version of Ubuntu. The software until now was developed on Ubuntu Precise 12.04 and now need to be tested on Ubuntu 6.0 Dapper.
For this I installed Dapper as chroot inside my Precise. The software is supposed to be built from source. It has to be compiled with libc6-2.3 which is available on chroot's dapper.
Since all the other major dependencies are already installed on the host machine (Precise), I want those installations to be used right away. I do not want to install them all again on Dapper. However libc6-2.3 must be used from Dapper only.
My questions:
- Is this possible at all?
- If yes, how? What I understand here is that I cannot things like:
"mount --bind /etc <chroot dir>/etc"
. If I do this it would be just like building my software on Precise itself, right?