ubports / crossbuilder

A debian package cross building tool using LXD
13 stars 17 forks source link

building Mir with crossbuilder fails #36

Open wdehoog opened 4 years ago

wdehoog commented 4 years ago

When trying to build Mir with crossbuilder it fails with:

COMMON_CONFIGURE_OPTIONS: -DCMAKE_INSTALL_LIBEXECDIR="lib/arm-linux-gnueabihf/mir" -DMIR_ENABLE_WLCS_TESTS=OFF  -DMIR_LINK_TIME_OPTIMIZATION=ON
rm debian/tmp/usr/lib/*/libmirprotobuf.so
dh_install -pmir-utils usr/bin/mirvanity
dh_install
dh_install: usr/bin/mirvanity exists in debian/tmp but is not installed to anywhere
dh_install: missing files, aborting
debian/rules:90: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory '/home/osboxes/mir'
debian/rules:9: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
mardy commented 4 years ago

This happens because the debian/rules files behaves differently depending on the version of target distribution; in particular, there are some workarounds applied to the xenial builds. However, when crossbuilder builds the package, it creates a new changelog entry with dch -v, which sets the distribution name to UNRELEASED. This, in turn is what causes the build to fail. I'm moving this bug to crossbuilder.