Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DH_GOLANG_EXCLUDES := github.com/proglottis/gpgme/examples
4 export DH_GOLANG_EXCLUDES_ALL := 1
5 #export DH_GOLANG_INSTALL_EXTRA := testdata/
6
7 %:
8 dh $@ --buildsystem=golang --with=golang
9
10 # magic number, copy-pasted from <sys/un.h>
11 UNIX_PATH_MAX=108
12
13 # workaround bug in gpg-agent: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847206
14 #override_dh_auto_test:
15 # SOCKET_PATH="$(CURDIR)/testdata/gpghome/S.gpg-agent.browser" ; \
16 # if [ $${#SOCKET_PATH} -ge $(UNIX_PATH_MAX) ]; then \
17 # echo "W: current path too long ($${#SOCKET_PATH} > $(UNIX_PATH_MAX)), skipping tests: $$SOCKET_PATH" ; \
18 # else \
19 # echo "I: current path not too long, running tests ($${#SOCKET_PATH}): $$SOCKET_PATH"; \
20 # dh_auto_test ;\
21 # fi