• Kirill Kolyshkin's avatar
    scripts/build/binfmt_misc: fix for ppc64le · 7b8ed84c
    Kirill Kolyshkin authored
    Got this error trying to build criu on ppc64le under qemu, after
    updating the Dockerfile to use Ubuntu Xenial (rather than Trusty):
    
    > $ rm -rf .ccache; make -C scripts/build ppc64le-clang
    >
    > ...
    >
    > Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
    > /sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
    > /sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
    > dpkg: error processing package libc-bin (--configure):
    >  subprocess installed post-installation script returned error exit status 2
    > ...
    
    Apparently, ldconfig.real binary header differs from others:
    
    root@3c7593d3298d:/# od -x /bin/ls | head -2
    0000000 457f 464c 0102 0001 0000 0000 0000 0000
    0000020 0002 0015 0001 0000 5680 1000 0000 0000
    
    root@3c7593d3298d:/# od -x /sbin/ldconfig.real | head -2
    0000000 457f 464c 0102 0301 0000 0000 0000 0000
    0000020 0002 0015 0001 0000 1d58 1000 0000 0000
    
    Amend the mask in binfmt_misc entry to take this into account.
    Signed-off-by: 's avatarKir Kolyshkin <kolyshkin@gmail.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    7b8ed84c
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...