Skip to content

Commit cf4e81c

Browse files
committed
Remove conditional multi-arch compilation, all supported dists are multi-arched now.
1 parent d5b22b5 commit cf4e81c

File tree

3 files changed

+8
-26
lines changed

3 files changed

+8
-26
lines changed

debian/changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
postgresql-9.6 (9.6~beta1-5) UNRELEASED; urgency=medium
22

33
* Run regression tests in architecture-dependant builds only.
4+
* Remove conditional multi-arch compilation, all supported dists are
5+
multi-arched now.
46

57
-- Christoph Berg <christoph.berg@credativ.de> Thu, 19 May 2016 15:08:36 +0200
68

debian/control

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Architecture: any
6767
Section: libs
6868
Depends: ${misc:Depends}, ${shlibs:Depends}
6969
Pre-Depends: ${misc:Pre-Depends}
70-
Multi-Arch: ${misc:Multi-Arch}
70+
Multi-Arch: same
7171
Description: PostgreSQL C client library
7272
libpq is a C library that enables user programs to communicate with
7373
the PostgreSQL database server. The server can be on another machine
@@ -84,7 +84,7 @@ Architecture: any
8484
Section: libs
8585
Depends: ${misc:Depends}, ${shlibs:Depends}
8686
Pre-Depends: ${misc:Pre-Depends}
87-
Multi-Arch: ${misc:Multi-Arch}
87+
Multi-Arch: same
8888
Description: run-time library for ECPG programs
8989
The libecpg shared library is used by programs built with ECPG
9090
(Embedded PostgreSQL for C).
@@ -116,7 +116,7 @@ Architecture: any
116116
Section: libs
117117
Depends: ${misc:Depends}, ${shlibs:Depends}
118118
Pre-Depends: ${misc:Pre-Depends}
119-
Multi-Arch: ${misc:Multi-Arch}
119+
Multi-Arch: same
120120
Description: older version of run-time library for ECPG programs
121121
The libecpg_compat shared library is used by programs built with ecpg.
122122
(Embedded PostgreSQL for C).
@@ -128,7 +128,7 @@ Architecture: any
128128
Section: libs
129129
Depends: ${misc:Depends}, ${shlibs:Depends}
130130
Pre-Depends: ${misc:Pre-Depends}
131-
Multi-Arch: ${misc:Multi-Arch}
131+
Multi-Arch: same
132132
Description: shared library libpgtypes for PostgreSQL 9.6
133133
The libpgtypes shared library is used by programs built with ecpg.
134134
(Embedded PostgreSQL for C).

debian/rules

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,8 @@ MAJOR_VER := 9.6
99
CATVERSION = $(shell awk '/CATALOG_VERSION_NO/ { print $$3 }' src/include/catalog/catversion.h)
1010

1111
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
12-
13-
# this must also work for old releases with multiarch, so don't fail if the
14-
# variable doesn't exist
15-
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH || true)
16-
17-
# support multi-arch location
18-
ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/tcl$(TCL_VER)),)
12+
DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
1913
TCL_CONFIG_DIR := /usr/lib/$(DEB_HOST_MULTIARCH)
20-
else
21-
TCL_CONFIG_DIR := /usr/lib
22-
endif
2314

2415
# support both hardening-wrapper (for backports) and dpkg-buildflags
2516
export DEB_BUILD_HARDENING = 1
@@ -185,14 +176,6 @@ override_dh_compress:
185176
gzip -9n $(CURDIR)/debian/*/usr/share/postgresql/*/man/man*/*.[137]
186177

187178
override_dh_install-arch:
188-
ifneq ($(DEB_HOST_MULTIARCH),)
189-
# enabling multiarch support in debian/lib*.install
190-
sed -i -e 's!usr/lib/\(lib\|pkgconfig\)!usr/lib/*/\1!' debian/lib*.install
191-
else
192-
# disabling multiarch support in debian/lib*.install
193-
sed -i -e 's!usr/lib/\*/\(lib\|pkgconfig\)!usr/lib/\1!' debian/lib*.install
194-
endif
195-
196179
dh_install --fail-missing
197180

198181
# link README.Debian.gz to postgresql-common
@@ -238,9 +221,6 @@ override_dh_installdeb-arch:
238221
# record catversion in preinst
239222
sed -i -e 's/@CATVERSION@/$(CATVERSION)/' debian/postgresql-$(MAJOR_VER)/DEBIAN/preinst
240223

241-
ifneq ($(DEB_HOST_MULTIARCH),)
242-
GENCONTROL_MA = -Vmisc:Multi-Arch=same
243-
endif
244224
override_dh_gencontrol:
245225
# record catversion in .deb control file
246-
dh_gencontrol -- $(GENCONTROL_MA) -Vpostgresql:Catversion=$(CATVERSION)
226+
dh_gencontrol -- -Vpostgresql:Catversion=$(CATVERSION)

0 commit comments

Comments
 (0)