Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7587124ybi; Tue, 9 Jul 2019 00:52:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0FX3lWdWzx90kBBHsaOhAypKPAWe+5YDpkcY79YMtdMU2/cjU10R4LDsah1tpuROjHpe8 X-Received: by 2002:a17:90a:c481:: with SMTP id j1mr30921264pjt.96.1562658736752; Tue, 09 Jul 2019 00:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562658736; cv=none; d=google.com; s=arc-20160816; b=oBGo8dcOm58yb4IbwzjsNcDh+7ayGgSUSU6d4AsCG3k1g31SgQX186GA4aCbpax87B 0vcHIzOcASIOwYB2n6IbFZVl/u727I8elWY2C2Mv1C+8SEzHRsh26bDlpsYbMdsJFQHz AotM7wIx6q225myxgm5+M/jZVkyz9cO9e/aFbLnp+LmHxcRkGd2hIEQgzu6TByheSijQ jRCc4suS59mWLcP9FHUHDVZfvxKjetcKC6c1zrLEbhkr7CcYP3dPv/q3JgnNWaJ7hmVA xJBG3EDDanpOaHxi1UYJbNNoJZsSyxqXyaT4s1Nc0gDN/0nRVgChLNr/vc9dO9H8iIm0 g8Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=K+9Qilpb1a2vlC9Yh0Xd2i1fFJy7A9HivdV+5j8B/Aw=; b=DSJvXU0CdQmIqy31W9LzfiyQtwy6ZttBdKimuJe0odZQC5e67+7G7hEUAKpChYnwMt xYwrf9t97aqoQ0u12h77RlBoTqqNh0xjY0Scr4jYiBaxn6ddW48aCHe1lywYVQBBP3Od X+f/GsBL4QVtQSupFCM8aSxxiZHnOie0y1HEDeOh+CTB12rq/E5Uz4+teRV1ARVm4kip e47tgX4BJzfdDbPEQAhcKQJOs/x10ORUEVGZd9rWe7+eIMNVP0WJ9pbrVifwnD8r/pYe s41KTi9RrDTrUYKCzFcPe+G3+CJSPSSGCig5cU5ORCiqoMROT46wBhdBFJiNPetn4qX0 10qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si20128529plr.134.2019.07.09.00.52.01; Tue, 09 Jul 2019 00:52:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726411AbfGIHoB (ORCPT + 99 others); Tue, 9 Jul 2019 03:44:01 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:49003 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbfGIHn7 (ORCPT ); Tue, 9 Jul 2019 03:43:59 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1hkkn7-0004Jq-G3 from Cedric_Hombourger@mentor.com ; Tue, 09 Jul 2019 00:43:57 -0700 Received: from FRG-W10-HOMBOUR.world.mentorg.com (137.202.0.90) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 9 Jul 2019 08:43:52 +0100 From: Cedric Hombourger To: CC: , , , , , , Cedric Hombourger Subject: [PATCH v4] builddeb: generate multi-arch friendly linux-libc-dev package Date: Tue, 9 Jul 2019 09:43:35 +0200 Message-ID: <1562658215-186-2-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1562658215-186-1-git-send-email-Cedric_Hombourger@mentor.com> References: <1562658215-186-1-git-send-email-Cedric_Hombourger@mentor.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Debian-based distributions place libc header files in a machine specific directory (/usr/include/) instead of /usr/include/asm to support installation of the linux-libc-dev package from multiple architectures. Move headers installed by "make headers_install" accordingly using Debian's tuple from dpkg-architecture (stored in debian/arch). Signed-off-by: Cedric Hombourger --- scripts/package/builddeb | 5 +++++ scripts/package/mkdebian | 1 + 2 files changed, 6 insertions(+) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index b03dd56a4782..d5d33bcba1fb 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -132,6 +132,11 @@ fi if [ "$ARCH" != "um" ]; then $MAKE -f $srctree/Makefile headers_check $MAKE -f $srctree/Makefile headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr" + # move asm headers to /usr/include//asm to match the structure + # used by Debian-based distros (to support multi-arch) + host_arch=$(dpkg-architecture -a$(cat debian/arch) -qDEB_HOST_MULTIARCH) + mkdir $libc_headers_dir/usr/include/$host_arch + mv $libc_headers_dir/usr/include/asm $libc_headers_dir/usr/include/$host_arch/ fi # Install the maintainer scripts diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 8351584cb24e..e0750b70453f 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -197,6 +197,7 @@ Architecture: $debarch Description: Linux support headers for userspace development This package provides userspaces headers from the Linux kernel. These headers are used by the installed headers for GNU glibc and other system libraries. +Multi-Arch: same Package: $dbg_packagename Section: debug -- 2.11.0