When cross-compiling to MinGW, the wine registration to binfmt_misc is
only needed when running tests, not when bootstrapping nor building.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
if test -e stamp.pre-bootstrap; then
devel/preserve-timestamp --restore stamp.pre-bootstrap
fi
- - mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
- - echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
# FIXME: the above step doesn't work on a rootless container
allow_failure: true
.mingw/test:
extends:
- .test
+ before_script:
+ - mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
+ - echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
script:
# https://bugzilla.redhat.com/show_bug.cgi?id=2049401
- mingw${arch_bits}-make -j$CHECKJOBS -C $PWD/tests check