Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # Hardening and lack of position independent executable are causing a number of
4 # errors in parsinsert results when a number of compiler optimizations are
5 # active. See #964082 for further details on the issue.
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7 export DEB_CXXFLAGS_MAINT_APPEND = -fPIE
8 # Also, although -fPIE does help on several platforms, a bunch of architectures
9 # are still affected by the precision issue.
10 UNOPTIMIZED_ARCHS := armel armhf mips64el ppc64el hppa ia64 powerpc ppc64 x32
11 ifneq (,$(filter $(DEB_BUILD_ARCH),$(UNOPTIMIZED_ARCHS)))
12 export DEB_CXXFLAGS_MAINT_APPEND = -O1
13 endif
14
15
16 %:
17 dh $@
18
19 execute_after_dh_auto_build:
20 mv ParsInsert parsinsert
21
22 override_dh_auto_clean:
23 mv parsinsert ParsInsert || true
24 dh_auto_clean
25
26 override_dh_auto_test:
27 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
28 cd debian/tests/test_data && \
29 $(CURDIR)/parsinsert -d0 -c80 -n1 set1000.fasta -m lanemask.txt -x rdp.taxonomy \
30 -l set1000.log -o set1000.results -t core_rdp.ntree \
31 -s core_rdp.fasta && \
32 cmp -s right_results set1000.results || { \
33 echo "incorrect result" ; \
34 exit 1 ; } && \
35 rm -f set1000.results set1000.tree
36 endif
37
38 # Note a manpage was generated using:
39 # help2man -N ./parsinsert --version-string=1.04 > debian/parsinsert.1
40 # But this was then manually edited, so it is not rebuilt automatically.
41
42 override_dh_install:
43 dh_install -Xset1000.log