• Kir Kolyshkin's avatar
    Dockerfile: do make mrproper before build · f571f92b
    Kir Kolyshkin authored
    I just spent some considerable time trying to figure out the source
    of errors like this:
    
    	make -C scripts/build ppc64
    	...
    	  DEP      images/autofs.pb-c.d
    	In file included from images/autofs.pb-c.c:9:0:
    	images/autofs.pb-c.h:7:35: fatal error: protobuf-c/protobuf-c.h:
    	No such	file or directory
    	 #include <protobuf-c/protobuf-c.h>
    					   ^
    	compilation terminated.
    
    It appears that we copy the complete tree to a docker container, and it
    is not cleaned properly before the build. In particular, images/*.pb-c.{c,h}
    are not removed/rebuilt. The problem is not noticeable until version of
    protobuf-c differs between the host and container, and they use different
    include paths (/usr/include/google/protobuf-c/ vs /usr/include/protobuf-c).
    
    As I don't want anyone else to spend so much time figuring this out,
    here is the patch.
    
    travis-ci: success for QEMU+Dockerfile improvements + clang build
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Acked-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    f571f92b
Name
Last commit
Last update
Documentation 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...
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.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...