From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6703379430489718784 X-Received: by 2002:a5d:97d8:: with SMTP id k24mr39806153ios.84.1562201044393; Wed, 03 Jul 2019 17:44:04 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:9d0b:: with SMTP id j11ls1017352ioj.2.gmail; Wed, 03 Jul 2019 17:44:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7fx1/yjkpnNZOp8zeAOsOP87edxW1KMydR6q0CLbIhxt+mryM/GhfRQVxp1j490o23Lk0 X-Received: by 2002:a5e:d615:: with SMTP id w21mr38006030iom.0.1562201044021; Wed, 03 Jul 2019 17:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562201044; cv=none; d=google.com; s=arc-20160816; b=Nn1my2r3dx8CThMazp0DJxswniCC2nDMgkYADEKePauakKfekQ2+f4aI2kA3MQGNhz ClVLQprNFSz/LNVDPjxeTcG5jgjYy8KvLPcbUawNsz7NawnP4hY3uEbPaHixp3TdaXbc sw98uBYaCSAeAdezStl4vtEzAEl0ARawXtB0HdlanMJE1cXqIAd/7riNNsXSO6VDoRLL VXKwBT4apkSruZVgubV7vChPUIObFI5tJicerMorWg3a/OGGtAVFvLzC+s9rGm2gpaiY H69emEKTMCM9raXLHkucBocGmWXLHpJPmCRTbQBgxmn9kKRB4k64tXyQHSYbIxEuRqEI D7oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature:dkim-filter; bh=YEglfdV6gwtLpwefdXYa4i8HSGcTtqk+NU8k5bljqhg=; b=PpntUpmjMKFi8VviSYPGOLA1FQypRDEJhGpNFR4PVitaggHlaid+f54rPCuKlC6kXp R6yNIxfm/B6OoEP9YNCsFPBwQJYRulrxwlrzr+0yUk92d6f5APT8KmtMp/b4BDU21ITv b5yvi90VUeOQcs0QPZmjRsb6bxYd8Zr0HNzfAEpMDaJxnfjIOfNGqHytBkNXl4eajbDX GFkwJolop3V0Q0VzkbCqjme6lo11ejFMK4Pby/EjCiDuc0hrGk+MIDjRZQ7cSsCzLuLp AVF9yxEyxkaX5qCZXuZVXxiADZqIfbIg11KLNPSKKDz1+UhVJhfjBM/NWkz9X80VmemC jX8w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Qw5x5vW+; spf=softfail (google.com: domain of transitioning yamada.masahiro@socionext.com does not designate 210.131.2.91 as permitted sender) smtp.mailfrom=yamada.masahiro@socionext.com Return-Path: Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com. [210.131.2.91]) by gmr-mx.google.com with ESMTPS id n7si136111iog.1.2019.07.03.17.44.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 17:44:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning yamada.masahiro@socionext.com does not designate 210.131.2.91 as permitted sender) client-ip=210.131.2.91; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Qw5x5vW+; spf=softfail (google.com: domain of transitioning yamada.masahiro@socionext.com does not designate 210.131.2.91 as permitted sender) smtp.mailfrom=yamada.masahiro@socionext.com Received: from mail-vk1-f176.google.com (mail-vk1-f176.google.com [209.85.221.176]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x640hf0G013600 for ; Thu, 4 Jul 2019 09:43:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x640hf0G013600 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.176] Received: by mail-vk1-f176.google.com with SMTP id f68so302264vkf.5 for ; Wed, 03 Jul 2019 17:43:42 -0700 (PDT) X-Gm-Message-State: APjAAAUa4P6nIS98DpzgYD+CGI/vEgaqqRF1HZ6KwONkDUk5LsR7welk MjP+4jq48BGDd4664w3S2F9w3VvEv0BlncdlwjY= 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" X-TUID: 93LAPij/ik50 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