Bug#966417: vg: FTBFS in sid, with new elfutils

2020-07-28 Thread Gianfranco Costamagna
tags: patch
Hello,


I confirm the patch works correctly, the build finished in Ubuntu

https://launchpad.net/ubuntu/+source/vg/1.25.0+ds-2ubuntu1/+build/19650765

G.



Bug#966417: vg: FTBFS in sid, with new elfutils

2020-07-28 Thread Gianfranco Costamagna
Source: vg
Version: 1.25.0+ds-2
Severity: serious

Hello, looks like elfutils dropped one library used by vg:

# We do not provide a libebl anymore, use libdw instead.
rm -f debian/tmp/usr/include/elfutils/libebl.h


causing now FTBFS in sid:
. ./source_me.sh && g++ -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now 
-I/usr/include/fastahack -I/<>/vg-1.25.0+ds/include -I. 
-I/<>/vg-1.25.0+ds/src -I/<>/vg-1.25.0+ds/src/unittest 
-I/<>/vg-1.25.0+ds/src/subcommand 
-I/<>/vg-1.25.0+ds/include/dynamic -I/usr/include/cairo 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/smithwaterman -I/usr/include/vcflib 
-I/usr/include/smithwaterman -I/usr/include/fastahack -Wdate-time 
-D_FORTIFY_SOURCE=2 -O3 -Werror=return-type -std=c++14 -ggdb -g -MMD -MP -g -O2 
-fdebug-prefix-map=/<>/vg-1.25.0+ds=. -fstack-protector-strong 
-Wformat -Werror=format-security -DSIMDE_ENABLE_OPENMP -fopenmp-simd -O3 
-msse4.1 -fopenmp -o test/build_graph test/build_graph.cpp -lvg 
-L/<>/vg-1.25.0+ds/lib /<>/vg-1.25.0+ds/lib/libvgio.a -lz 
-lgssw -lssw -lprotobuf -lsublinearLS -ldeflate -lpthread -ljansson -lncurses 
-lgcsa2 -lgbwtgraph -lgbwt -ldivsufsort -ldivsufsort64 -lraptor2 
-lpinchesandcacti -l3edgeconnected -lsonlib -lfml -llz4 -lstructures -lvw 
-lboost_program_options -lallreduce -lbdsg -lxg -lsdsl -lhandlegraph 
-lfastahack -lsmithwaterman -ldisorder -lvcflib -lsmithwaterman -ldisorder 
-lfastahack -lhts -ltabixpp -lcairo -ljansson -latomic -rdynamic -ldw -lelf 
-lebl -ldl -llzma -lrocksdb -lbz2 -ljemalloc 
/usr/bin/ld: cannot find -lebl


I don't know if this patch is enough to make it build correctly, it is still 
building here
diff -Nru vg-1.25.0+ds/debian/changelog vg-1.25.0+ds/debian/changelog
--- vg-1.25.0+ds/debian/changelog   2020-07-14 15:15:28.0 +0200
+++ vg-1.25.0+ds/debian/changelog   2020-07-28 12:11:33.0 +0200
@@ -1,3 +1,9 @@
+vg (1.25.0+ds-2.1) unstable; urgency=medium
+
+  * Fix build by not linking anymore libebl.a (Closes: #-1)
+
+ -- Gianfranco Costamagna   Tue, 28 Jul 2020 
12:11:33 +0200
+
 vg (1.25.0+ds-2) unstable; urgency=medium
 
   * Restrict architectures to build for. Closes: #964039.
diff -Nru vg-1.25.0+ds/debian/patches/use_packaged_elfutils 
vg-1.25.0+ds/debian/patches/use_packaged_elfutils
--- vg-1.25.0+ds/debian/patches/use_packaged_elfutils   2020-02-03 
13:26:00.0 +0100
+++ vg-1.25.0+ds/debian/patches/use_packaged_elfutils   2020-07-28 
12:11:25.0 +0200
@@ -7,7 +7,7 @@
  
  # We want to link against the elfutils libraries
 -LD_LIB_FLAGS += -ldwfl -ldw -ldwelf -lelf -lebl
-+LD_LIB_FLAGS += -ldw -lelf -lebl
++LD_LIB_FLAGS += -ldw -lelf
  
  # We get OpenMP the normal way, using whatever the compiler knows about
  CXXFLAGS += -fopenmp