| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# remove some packages which are not needed by other packages currently |
| 4 |
# to cut down dependencies. |
| 5 |
export DH_GOLANG_EXCLUDES := \ |
| 6 |
example/ \ |
| 7 |
internal/tools \ |
| 8 |
bridge/opencensus \ |
| 9 |
bridge/opentracing \ |
| 10 |
exporters/jaeger/internal/gen-go/agent/agent-remote \ |
| 11 |
exporters/jaeger/internal/gen-go/jaeger/collector-remote \ |
| 12 |
exporters/jaeger/internal/gen-go/zipkincore/zipkin_collector-remote \ |
| 13 |
exporters/zipkin \ |
| 14 |
trace/internal/telemetry/test |
| 15 |
|
| 16 |
export DH_GOLANG_INSTALL_EXTRA := \ |
| 17 |
$(wildcard internal/tools/semconvkit/templates/*.tmpl) \ |
| 18 |
$(wildcard internal/tools/semconvkit/templates/*/*.tmpl) \ |
| 19 |
exporters/jaeger/internal/third_party/thrift/NOTICE |
| 20 |
|
| 21 |
# autopkgtest.ubuntu.com exports these variable and causes the tests hanging |
| 22 |
unexport https_proxy |
| 23 |
unexport http_proxy |
| 24 |
|
| 25 |
%: |
| 26 |
dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 27 |
|
| 28 |
# https://github.com/open-telemetry/opentelemetry-go/issues/6476 |
| 29 |
# internal/global failed to setup with disable-sdk-auto.patch |
| 30 |
override_dh_auto_test: |
| 31 |
DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDES) internal/global" \ |
| 32 |
dh_auto_test $(DH_BUILD_OPTS) -- \ |
| 33 |
-skip=TestTraceProviderDelegatesSameInstance |
| 34 |
|
| 35 |
override_dh_fixperms: |
| 36 |
dh_fixperms |
| 37 |
# Drop executable bits to make lintian happy |
| 38 |
find debian/$(SOURCE_NAME) -type f -executable -not -name "*.sh" -exec chmod -x {} + |