Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 #export DH_VERBOSE := 1
4 # Disable conformance due to it requires with Bazel workspace, and not to vendoring it due to out of previous discussion.
5 export DH_GOLANG_EXCLUDES := examples codelab repl/main conformance
6 export DH_GOLANG_INSTALL_EXTRA := cel/templates/authoring.tmpl
7
8 export BUILDDIR := build
9
10 %:
11 dh $@ --builddirectory=$(BUILDDIR)
12
13 execute_before_dh_auto_configure:
14 mkdir -p -v $(BUILDDIR)/src/github.com/google/cel-go/vendor
15 cp -v -a debian/missing-sources/* $(BUILDDIR)/src/github.com/google/cel-go/vendor
16
17 override_dh_install:
18 find debian/golang-github-google-cel-go-dev/usr/share/gocode/src/github.com/google/cel-go/ \
19 -type f -exec chmod -x \{\} \;
20 dh_install -i
21
22 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102312#12
23 #
24 # Building on a system with Linux kernel parameter 'nr_cpus=1' results in:
25 #
26 # === RUN TestInterpreter_InterruptableEval
27 # interpreter_test.go:1888: Got true, wanted operation interrupted error
28 # --- FAIL: TestInterpreter_InterruptableEval (0.00s)
29 #
30 # https://people.debian.org/~sanvila/build-logs/202503/golang-github-google-cel-go_0.27.0+ds-4_amd64-20260828T043700.568Z
31 #
32 # === RUN TestContextEval
33 # cel_test.go:1161: Got result 1975, wanted timeout error
34 # --- FAIL: TestContextEval (0.01s)
35 SKIP="TestInterpreter_InterruptableEval|TestContextEval"
36 override_dh_auto_test:
37 -dh_auto_test -- -run=$(SKIP)
38 # Set to warn to workaround the conflict registration from vendor/
39 GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn \
40 dh_auto_test -- -short -skip $(SKIP)