Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1512943ybi; Wed, 3 Jul 2019 17:44:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqw496ehAdfmpmLs+3xf6Oj+20/XpkZDhKcD05AjUJBFGpznHDDZiUEv/xRsg+RZ0TuMP0P0 X-Received: by 2002:a17:902:467:: with SMTP id 94mr45232984ple.131.1562201072465; Wed, 03 Jul 2019 17:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562201072; cv=none; d=google.com; s=arc-20160816; b=U1ljNtUh1MQGb6RJfpyEX015aPMruMs8oXkRExkc4E+HUEVHKQJ3uq//iDbO0EH9Dh eIbG6VTsBqruYA/VtfQ3eCG3e8/FLshffsCyahxiKZ7F9BGTGHMQwuMSmRYSYPEDARL6 gulOCleHdjrx5rbEwvWbP3g/VrV9hW2Dviktsw16GVjB18VCDobYJQftEaJmWR3B2V9b Ldi3/h2hY3tCzHmrR+FpzXxD3v5NcuNIg2vVKXsFX+vqSp5WoqbdrrCvD+PDNRwc5mQY /U9rnUHw5c7eOjoDU+RLolLe3d6PnFmspY5KGQK9RAmvCbPNW/JVtfkwp+9aYoyNJxzc m05Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=YEglfdV6gwtLpwefdXYa4i8HSGcTtqk+NU8k5bljqhg=; b=xi7XfdORkla9knyQgEcSP9NGr8GEFWabTnBWYol1cTIyjz1mr8ejCHV8GbkCfTuN0z gw1j5IFvgVLnWBppVoO5a9/5IncehWEPYoH0zOXDSxQx/2m0UK8I5hKLjE+WAMDsWYxN J6mc/a5OYJIrsZASSLIA328+ca1BfjnL67pmTvtqI2KA7QpWADrpiB4gTjfYDeoo3y3r Z0fSulPC6EFuR9ezUg0jA7VhUno04/KWDRsnD8uCOux/AvFTNlz8dUPWTxqjwOhFlSoD QeKZjylXUGva9uBcy7dj76ufNZPvaP6pIsMdkL87flnWa89T29eWScHu1UMGXjorBwMQ DlJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Qw5x5vW+; 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 q23si3800930pff.103.2019.07.03.17.44.16; Wed, 03 Jul 2019 17:44:32 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Qw5x5vW+; 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 S1726973AbfGDAn5 (ORCPT + 99 others); Wed, 3 Jul 2019 20:43:57 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:30930 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbfGDAn5 (ORCPT ); Wed, 3 Jul 2019 20:43:57 -0400 Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x640hfs5007948; Thu, 4 Jul 2019 09:43:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x640hfs5007948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562201022; bh=YEglfdV6gwtLpwefdXYa4i8HSGcTtqk+NU8k5bljqhg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Qw5x5vW+HodXAsAM9eWx3LsERWErLbDHquz+/fNNvOizzhYBpWG6Wcg7/DpeJQx94 ousyH9k2gTLYlzvRSsSFBjOBLNC8UA78HsYGaBP+YZgg/DdZQWZPixX6la/rEVtUJB rRBlI4we8YDrikrXsG4S3EDpJieEMFpTMqZUtsYB9V1KY1yafQhZ9WgUY3Kt+w/tr2 TCFxYZzaTLr3G7upREzePgw9jNb2HTSBFFTabaz0mm48hK64k/QMPApQki6w88MaEl t14mn3q/7pBm/7qd8xyFmeHhpJKjJ3M5Ym6XWod4QDobzripQuwCjCt7/sCMeFX698 FbzFHhib2sstQ== X-Nifty-SrcIP: [209.85.221.170] Received: by mail-vk1-f170.google.com with SMTP id g124so301546vkd.1; Wed, 03 Jul 2019 17:43:42 -0700 (PDT) X-Gm-Message-State: APjAAAUyTLLQOiFNMkHux7LMeJuPlZf9y2gLzwtZFZJOXM06FD/cwrhC sb/0jEg9wXv5SGAIJkITS8RzeEKdzDq30ZAhgnE= X-Received: by 2002:a1f:728b:: with SMTP id n133mr1331102vkc.84.1562201021033; Wed, 03 Jul 2019 17:43:41 -0700 (PDT) MIME-Version: 1.0 References: <1560752096-1323-1-git-send-email-Cedric_Hombourger@mentor.com> In-Reply-To: <1560752096-1323-1-git-send-email-Cedric_Hombourger@mentor.com> From: Masahiro Yamada Date: Thu, 4 Jul 2019 09:43:04 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] builddeb: generate multi-arch friendly linux-libc-dev package To: Cedric Hombourger Cc: isar-users@googlegroups.com, Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , Ben Hutchings , Riku Voipio Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CCed a couple of people. On Mon, Jun 17, 2019 at 3:15 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. > > Signed-off-by: Cedric Hombourger > Reviewed-by: Henning Schild > --- > scripts/package/builddeb | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/scripts/package/builddeb b/scripts/package/builddeb > index b03dd56a4782..8f7afb3a84e9 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) > + libc_mach=$($CC -dumpmachine) > + mkdir $libc_headers_dir/usr/include/$libc_mach > + mv $libc_headers_dir/usr/include/asm $libc_headers_dir/usr/include/$libc_mach/ > fi > > # Install the maintainer scripts I am not sure but, I just worried about the backward compatibility... Was this previously broken? I guess debian is using own control file instead of the one in upstream kernel. So, this is almost a matter for developers, I think. How did debian-base distros managed this before, and will this introduce no breakage? Ben, Could you comment on this? -- Best Regards Masahiro Yamada