[Debian-med-packaging] Bug#912113: harvest-tools: frequent parallel FTBFS

Adrian Bunk bunk at debian.org
Sun Oct 28 10:52:38 GMT 2018


Source: harvest-tools
Version: 1.3-2
Severity: serious
Tags: ftbfs patch

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/arm64/harvest-tools.html

...
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/1st/harvest-tools-1.3'
cd src; /usr/bin/protoc --cpp_out . harvest/pb/harvest.proto
cd src/harvest/capnp;export PATH=/usr/bin/:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games;capnp compile -I /usr/include -oc++ harvest.capnp
cd src; /usr/bin/protoc --cpp_out . harvest/pb/harvest.proto
cd src/harvest/capnp;export PATH=/usr/bin/:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games;capnp compile -I /usr/include -oc++ harvest.capnp
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: harvest/pb/harvest.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: harvest/pb/harvest.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/capnp/harvest.capnp.o src/harvest/capnp/harvest.capnp.c++
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/pb/harvest.pb.o src/harvest/pb/harvest.pb.cc
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/AnnotationList.o src/harvest/AnnotationList.cpp
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/harvest.o src/harvest/harvest.cpp
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/HarvestIO.o src/harvest/HarvestIO.cpp
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/LcbList.o src/harvest/LcbList.cpp
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/parse.o src/harvest/parse.cpp
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/PhylogenyTree.o src/harvest/PhylogenyTree.cpp
g++ -c -g -O2 -ffile-prefix-map=/build/1st/harvest-tools-1.3=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -o src/harvest/PhylogenyTreeNode.o src/harvest/PhylogenyTreeNode.cpp
src/harvest/capnp/harvest.capnp.c++:850:28: error: expected primary-expression at end of input
       8,   0,   0,   0,   0,   0,   0,   0,
                            ^
src/harvest/capnp/harvest.capnp.c++:850:28: error: expected '}' at end of input
src/harvest/capnp/harvest.capnp.c++:719:3: note: to match this '{'
   {   0,   0,   0,   0,   5,   0,   6,   0,
   ^
src/harvest/capnp/harvest.capnp.c++:850:28: error: expected '}' at end of input
       8,   0,   0,   0,   0,   0,   0,   0,
                            ^
src/harvest/capnp/harvest.capnp.c++:718:64: note: to match this '{'
 static const ::capnp::_::AlignedData<134> b_c4df8e4ba28721bc = {
                                                                ^
src/harvest/capnp/harvest.capnp.c++:850:28: error: expected ',' or ';' at end of input
       8,   0,   0,   0,   0,   0,   0,   0,
                            ^
src/harvest/capnp/harvest.capnp.c++:850:28: error: expected '}' at end of input
src/harvest/capnp/harvest.capnp.c++:7:19: note: to match this '{'
 namespace schemas {
                   ^
src/harvest/capnp/harvest.capnp.c++:850:28: error: expected '}' at end of input
       8,   0,   0,   0,   0,   0,   0,   0,
                            ^
src/harvest/capnp/harvest.capnp.c++:6:17: note: to match this '{'
 namespace capnp {
                 ^
make[1]: *** [Makefile:35: src/harvest/capnp/harvest.capnp.o] Error 1


Fix is attached.
-------------- next part --------------
Description: Fix a frequent parallel FTBFS
Author: Adrian Bunk <bunk at debian.org>

--- harvest-tools-1.3.orig/Makefile.in
+++ harvest-tools-1.3/Makefile.in
@@ -37,10 +37,14 @@ harvesttools : $(OBJECTS)
 %.o : %.cc
 	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<
 
-src/harvest/pb/harvest.pb.cc src/harvest/pb/harvest.pb.h : src/harvest/pb/harvest.proto
+src/harvest/pb/harvest.pb.cc : src/harvest/pb/harvest.pb.h
+
+src/harvest/pb/harvest.pb.h : src/harvest/pb/harvest.proto
 	cd src; @protobuf@/bin/protoc --cpp_out . harvest/pb/harvest.proto
 
-src/harvest/capnp/harvest.capnp.c++ src/harvest/capnp/harvest.capnp.h : src/harvest/capnp/harvest.capnp
+src/harvest/capnp/harvest.capnp.c++ : src/harvest/capnp/harvest.capnp.h
+
+src/harvest/capnp/harvest.capnp.h : src/harvest/capnp/harvest.capnp
 	cd src/harvest/capnp;export PATH=@capnp@/bin/:${PATH};capnp compile -I @capnp@/include -oc++ harvest.capnp
 
 install : harvesttools


More information about the Debian-med-packaging mailing list