Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2836379ybi; Sun, 14 Jul 2019 00:53:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwF6RvkPDOqGciD0lA5DVvSJHgP/2tHN80jyHESk2tsEBuWoGzh/m0mmi9NddEhvEkc6KLp X-Received: by 2002:a63:c748:: with SMTP id v8mr4510027pgg.418.1563090810587; Sun, 14 Jul 2019 00:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563090810; cv=none; d=google.com; s=arc-20160816; b=vLM62teeDQmv3Y1gjOfQrbiF152ZCjo5isOU8hUi94190kxSUnrOn9noJuzC4M3flM qecSLyRFuOOHO0+FZNP22jU7aKJe3NORvXus+k/mOEvlWHKYTfjCfDOITcb+uoQRZ53a BJBFOjHVcomS9NS3qTlYOuCvqXYiT3pTj2sUdzZkDvwWk8stOBZQhQnKidJUMHPSXnuv 6+yLR2WZc1JA7P8sYrcPLhQyKi8DYVzteyOw8jU7EJtAs7DuZXX1KSmOqGK4gbThNc2H Bx6od42uYQnN0YxlnnBd9jbbS7er/Jk1DLmIq+8RCiH1ZzVSAVpVrVai+cmjShRnLi2N Quew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=9iAuhaKyAyPafuudlEB8YzTPgniJcpwWoUMNk9Ld2Po=; b=MjQytetkwu3uCIlKeGHC9MHdYkiIYw+qXh+uP9qxIQiFLVQK1UkryV1PWq7QuAP/K1 6yWlqTO0vNJe7s7f7qMqnd5183dOYk4Ojj146A11s1JO0tdCY1EHmngTWm6yevXVn+vc JweWh5/ssgB2q+yzaRHATVxYQNKvmj7CLLCSVyyYkTiUFTvis5Ak0TDiM17/p6YkgLZB jKL01WCRWQpXoFxCuaAi0hjf/+8kwtu9v56riEwUqg8DV9iYpBrJvxD1QpgLxEQ3MxRd U7a15is4ZgaqDWlAoveaX/zXPFv3QsBPq6KT91AGuNYORY6VoZDwehq3GwQVpiglz9sX KGEw== 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 t14si12494015pgv.367.2019.07.14.00.52.40; Sun, 14 Jul 2019 00:53:30 -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 S1728165AbfGNHtd (ORCPT + 99 others); Sun, 14 Jul 2019 03:49:33 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:56025 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726783AbfGNHtd (ORCPT ); Sun, 14 Jul 2019 03:49:33 -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 1hmZG9-0003Uy-HU from Cedric_Hombourger@mentor.com ; Sun, 14 Jul 2019 00:49:25 -0700 Received: from [172.30.65.245] (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; Sun, 14 Jul 2019 08:49:20 +0100 Subject: Re: [PATCH v4] builddeb: generate multi-arch friendly linux-libc-dev package To: Masahiro Yamada CC: Ben Hutchings , , Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , Riku Voipio References: <1562658215-186-1-git-send-email-Cedric_Hombourger@mentor.com> <1562658215-186-2-git-send-email-Cedric_Hombourger@mentor.com> From: Cedric Hombourger Message-ID: <39577168-2943-1be0-dffc-be9917ff70e0@mentor.com> Date: Sun, 14 Jul 2019 09:49:19 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) 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 On 7/11/2019 4:46 PM, Masahiro Yamada wrote: > On Tue, Jul 9, 2019 at 4:44 PM Cedric Hombourger > wrote: >> 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 > > I just wondered whether there is something better than $(cat debian/arch), > but maybe not. > > OK, I am ready to pick it up for 5.3-rc1. > > With Ben's Ack, I would be able to proceed with more confident. Great thank you. Let me know if I can help clear any remaining concerns you may have > > > > >> # 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 >> >