#!/usr/bin/make -f PGVERSION=$(shell /usr/share/postgresql-common/supported-versions | tail -n1) PG_INCLUDEDIR = $(shell pg_config --includedir) PG_LIBDIR = $(shell pg_config --libdir) export POSTGRES_HOME=/usr/lib/postgresql/$(PGVERSION) export POSTGRES_INCLUDE=$(PG_INCLUDEDIR) export POSTGRES_LIB=$(PG_LIBDIR) export DBDPG_TEMPDIR=$(shell mktemp -d) export LC_ALL=C export DEB_BUILD_MAINT_OPTIONS := hardening=+all DPKG_EXPORT_BUILDFLAGS := 1 include /usr/share/dpkg/buildflags.mk # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097179 # https://github.com/bucardo/dbdpg/issues/135 # https://src.fedoraproject.org/fork/yselkowitz/rpms/perl-DBD-Pg/c/3a271f04b619206937fec58825f75914b952133b export DEB_CFLAGS_MAINT_APPEND = -std=gnu17 %: dh $@ override_dh_auto_test: USER=$(shell whoami) RES_OPTIONS=attempts:0 dh_auto_test