[RFC PATCH 1/2] dpkg: Add option --cross-bootstrap

2014-08-28 Thread Andreas Oberritter
If --cross-bootstrap is set, don't chroot into the target root directory, but just export DPKG_INSTDIR for the execution of maintscripts. This is useful for Yocto/OpenEmbedded, where programs like update-alternatives, update-rc.d or systemctl run natively or emulated on the build system when creat

[RFC PATCH 0/2] Running maintscripts for a different architecture

2014-08-28 Thread Andreas Oberritter
Dear dpkg developers, in OE-Core (Yocto / OpenEmbedded Core), we cross-compile complete distributions and create root filesystem images. You can choose between several package formats (deb, ipk, rpm) and related managers. Because these root filesystems usually are built for an architecture (instr

[RFC PATCH 2/2] update-alternatives: Implement offline mode

2014-08-28 Thread Andreas Oberritter
Lets update-alternatives manage symlinks inside a cross-arch root filesystem in a directory specified by DPKG_INSTDIR. Signed-off-by: Andreas Oberritter --- utils/update-alternatives.c | 162 1 file changed, 102 insertions(+), 60 deletions(-) diff --