Fix package make with ninja (#2129)

* Fix package make with ninja
This commit is contained in:
proller 2018-03-28 05:17:23 -07:00 committed by GitHub
parent f2db72a5e5
commit 0d70314ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
debian/rules vendored
View File

@ -9,7 +9,8 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
# because copy_headers.sh have hardcoded path to build/include_directories.txt
BUILDDIR = build
DESTDIR = debian/tmp
CURDIR = $(shell pwd)
DESTDIR = $(CURDIR)/debian/tmp
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
@ -94,12 +95,15 @@ override_dh_install:
CLANG=$(DESTDIR)/usr/bin/clickhouse-clang ./copy_headers.sh . $(DESTDIR)/usr/share/clickhouse/headers
# fake metrika files when private dir is empty
mkdir -p debian/tmp/etc/clickhouse-server/metrika
touch debian/tmp/etc/clickhouse-server/metrika/config.xml
touch debian/tmp/etc/clickhouse-server/metrika/users.xml
mkdir -p $(DESTDIR)/etc/clickhouse-server/metrika
touch $(DESTDIR)/etc/clickhouse-server/metrika/config.xml
touch $(DESTDIR)/etc/clickhouse-server/metrika/users.xml
dh_install --list-missing --sourcedir=$(DESTDIR)
override_dh_auto_install:
env DESTDIR=$(DESTDIR) ninja -C $(BUILDDIR) install
override_dh_shlibdeps:
true # We depend only on libc and dh_shlibdeps gives us wrong (too strict) dependency.