Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # valgrind uses -fno-stack-protector
4 export DEB_BUILD_MAINT_OPTIONS := hardening=-stackprotector,-stackprotectorstrong
5
6 include /usr/share/dpkg/architecture.mk
7
8 CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
9 CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
10 CFLAGS += "-I/usr/include/$(DEB_HOST_MULTIARCH)" # fixes #676029
11 LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
12
13 %:
14 dh $@
15
16 override_dh_auto_configure:
17 dh_auto_configure -- --enable-tls CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
18
19 override_dh_auto_test:
20 : # do nothing for now
21
22 override_dh_auto_build:
23 dh_auto_build
24 $(MAKE) -C docs FAQ.txt
25 $(MAKE) -C docs html-docs
26 $(MAKE) -C docs man-pages
27
28 override_dh_shlibdeps:
29 dh_shlibdeps -Xdebian/valgrind/usr/libexec/valgrind/getoff-x86-linux # fixes #762386
30
31 override_dh_strip:
32 # Do not strip vgpreload* files as per upstream instructions
33 # (their symbols show up in the valgrind memory checker output):
34 # https://valgrind.org/docs/manual/dist.readme-packagers.html
35 dh_strip --dbgsym-migration='valgrind-dbg (<< 1:3.19.0-2~)' -Xvgpreload
36
37 override_dh_dwz:
38 : # do nothing for now
39
40 target=$(CURDIR)/debian/valgrind
41 override_dh_install:
42 dh_install -pvalgrind -Xlibmpiwrap
43 dh_install --remaining-packages
44 # valgrind script
45 mv -f $(target)/usr/bin/valgrind $(target)/usr/bin/valgrind.bin
46 mv -f ${target}/usr/bin/valgrind.sh $(target)/usr/bin/valgrind
47 ifeq ($(DEB_HOST_ARCH),armhf)
48 cat debian/supp/armhf-stackclash.supp >> $(target)/usr/libexec/valgrind/default.supp
49 endif
50
51 override_dh_fixperms:
52 dh_fixperms -X.css -X.html -X.js -X.so -X.supp -X.xml
53
54 override_dh_installchangelogs:
55 dh_installchangelogs NEWS