From 1ff087961d689d6e7c92fbc377c9afcfc2c062ba Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 9 Jun 2017 12:48:53 +0300 Subject: Create link /usr/lib/cpp -> /usr/bin/cpp --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index b68f714..317ba0e 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,7 @@ # version number of the defaults package VDEF := $(strip $(shell dpkg-parsechangelog | awk -F: '/^Version:/ {print $$NF}')) SOURCE := $(strip $(shell dpkg-parsechangelog | awk -F: '/^Source:/ {print $$NF}')) +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) VMAJOR := $(shell echo $(VDEF) | awk -F. '{print $$1}') VMINOR := $(shell echo $(VDEF) | awk -F. '{print $$2}' | sed -e 's/\([0-9]*\).*/\1/') @@ -742,6 +743,11 @@ ifeq ($(with_native),yes) dh_link -pcpp \ /usr/bin/cpp-$(PV_CPP) /usr/bin/cpp \ /usr/bin/cpp-$(PV_CPP) /usr/bin/$(DEB_HOST_GNU_TYPE)-cpp + ifeq (illumos,$(DEB_HOST_ARCH_OS)) + # rpcgen uses /usr/lib/cpp by default: + dh_link -pcpp \ + /usr/bin/cpp /usr/lib/cpp + endif ifeq ($(with_gfdl_docs),yes) for i in gfdl.7 gpl.7 fsf-funding.7; do \ -- cgit v1.2.3