Am Mittwoch, 21. Juni 2017, 16:01:31 CEST schrieb to...@tuxteam.de: Hi Tomas,
thanks for this quick response. Well, I just do not want to compile something (however, I believe, some binary packages do this at installing, don't they?), just unpack packages to a chroot. But you may be right: The live-build scripts and the packages might interact with the base structure. And this will give bad answers. I did not think of this. So I understand: Bad idea! :) Thanks again for the fast response. It makes things much clearer. Best Hans > All this is subsumed under the moniker "cross build". And the short > answer is that yes, in principle it is possible (a decent C compiler, > for example, supports cross compiling, etc.). > > In practice, though, things become... "interesting". For example, > what do you do if your build's "configure" interrogates your > system? Your system will give the wrong answers! So the build > system has to offer a way to provide pre-packaged answers ("yes, > this is an ARM with a hardware floating point unit" or whatever, > instead of the more comfortable "go find out for yourself"). > > And then, when the thing is built and you say "make test"? Do > you have an emulator around? > > To get you started on how Debian tries to tackle that, see > > https://wiki.debian.org/CrossBuildPackagingGuidelines > > So the answer is... for some packages it works, for some not. It > depends among other things on the build system. > > Cheers > -- tomás