File: rules

package info (click to toggle)
libdbd-pg-perl 3.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,428 kB
  • sloc: perl: 10,202; ansic: 5,977; makefile: 16
file content (26 lines) | stat: -rwxr-xr-x 839 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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