@@ -9,17 +9,8 @@ MAJOR_VER := 9.6
9
9
CATVERSION = $(shell awk '/CATALOG_VERSION_NO/ { print $$3 }' src/include/catalog/catversion.h)
10
10
11
11
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)
19
13
TCL_CONFIG_DIR := /usr/lib/$(DEB_HOST_MULTIARCH )
20
- else
21
- TCL_CONFIG_DIR := /usr/lib
22
- endif
23
14
24
15
# support both hardening-wrapper (for backports) and dpkg-buildflags
25
16
export DEB_BUILD_HARDENING = 1
@@ -185,14 +176,6 @@ override_dh_compress:
185
176
gzip -9n $(CURDIR ) /debian/* /usr/share/postgresql/* /man/man* /* .[137]
186
177
187
178
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
-
196
179
dh_install --fail-missing
197
180
198
181
# link README.Debian.gz to postgresql-common
@@ -238,9 +221,6 @@ override_dh_installdeb-arch:
238
221
# record catversion in preinst
239
222
sed -i -e ' s/@CATVERSION@/$(CATVERSION)/' debian/postgresql-$(MAJOR_VER ) /DEBIAN/preinst
240
223
241
- ifneq ($(DEB_HOST_MULTIARCH ) ,)
242
- GENCONTROL_MA = -Vmisc:Multi-Arch=same
243
- endif
244
224
override_dh_gencontrol :
245
225
# record catversion in .deb control file
246
- dh_gencontrol -- $( GENCONTROL_MA ) -Vpostgresql:Catversion=$(CATVERSION )
226
+ dh_gencontrol -- -Vpostgresql:Catversion=$(CATVERSION )
0 commit comments