Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1023283ybi; Wed, 17 Jul 2019 08:24:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqweQc9Z6QLGAUWF6zurtfh2DV7IWz+tubvNVPxqp1EeBseeigvAVXMlb0Mvaxze+TyUqTH+ X-Received: by 2002:a63:4b02:: with SMTP id y2mr41175017pga.135.1563377079016; Wed, 17 Jul 2019 08:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563377079; cv=none; d=google.com; s=arc-20160816; b=oV3V2/aWtd8bWOXgsPGIFvT2HufdUplyWUD1aqX9CAE0SAPjsmLqzy1OqctiF+KbMd 9cakf91qwY9stS8ES3n/GsP6L3DKJBbNxaRpMbar7X+K1RxdsLLbMknwcLs5eXtrbAzm QsZDbjHaG7ETzm5GQMePxzuj1QIXFammYVQAaW15NLj74loFcFnKTw/K51HQitiZMEd/ CIqmbdB+BluXSb6TM6cX9pQj8nLeSLEFEA5yGW+U16PXRGRh/T3Wvfxiagm0L1S0RSOH t34/ZW30DC91Ujd+oqIasg0xTMjkWvgsWey1EctTafVHhj0bqXNc94PLG2aGwhut07W9 i9YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=HnW4bkUbQ2VQlGAIpwJN5IjM+cJZrWePe64q3Q6A28o=; b=HRkPdmKxF/J2P+LRTstLrsBsTAyP7ZFCB6uNdnDggbWRvbcN19PTI6Thh/bwklVMUk zebDmQIZf4TyEAEql89CTyn/CdM5hTNqwB4YJ/w+aVuJY1rMpFpVsJkDZzKWjfnGjawF q72ZffL8rB7QgQiVQ2Lz9tHVpFhYJ492nAZMc5kaFQmOiCGq/de7T23zgR9JKkYMPLbn Rv++Kfwb2f/U5WCjYlN9xkAfVQ4tjFHzLxa+EdTQJ8GVSfoU+0ZCW4ldznMWVAENNDZk AFDhBr9qS/uic/vtjxl22kC1r5hLrtdThGuaGQ9Ltma/8Du4IuyVQunjo+2vZFTCic6q wiJQ== 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 b6si16885343pjz.29.2019.07.17.08.24.21; Wed, 17 Jul 2019 08:24:39 -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 S1726889AbfGQPYC (ORCPT + 99 others); Wed, 17 Jul 2019 11:24:02 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:55714 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725948AbfGQPYC (ORCPT ); Wed, 17 Jul 2019 11:24:02 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-99.corp.google.com [104.133.0.99] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x6HFNQK1019058 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 11:23:27 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 5AE86420054; Wed, 17 Jul 2019 11:23:26 -0400 (EDT) Date: Wed, 17 Jul 2019 11:23:26 -0400 From: "Theodore Y. Ts'o" To: "Enrico Weigelt, metux IT consult" Cc: Masahiro Yamada , "Enrico Weigelt, metux IT consult" , Linux Kernel Mailing List , Michal Marek , Robo Bot , Joe Perches , Linux Kbuild mailing list , linux-riscv@lists.infradead.org, clang-built-linux Subject: Re: [PATCH 4/4] debian: add generic rule file Message-ID: <20190717152326.GC31412@mit.edu> Mail-Followup-To: "Theodore Y. Ts'o" , "Enrico Weigelt, metux IT consult" , Masahiro Yamada , "Enrico Weigelt, metux IT consult" , Linux Kernel Mailing List , Michal Marek , Robo Bot , Joe Perches , Linux Kbuild mailing list , linux-riscv@lists.infradead.org, clang-built-linux References: <1562664759-16009-1-git-send-email-info@metux.net> <1562664759-16009-4-git-send-email-info@metux.net> <5af9db32-2cf5-10ba-261c-e08852d0814f@metux.net> <20190715191245.GD3068@mit.edu> <20190716123431.GB2999@mit.edu> <77f82ca2-f89b-e8e2-507a-c37bce1343a5@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77f82ca2-f89b-e8e2-507a-c37bce1343a5@metux.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 17, 2019 at 04:16:39PM +0200, Enrico Weigelt, metux IT consult wrote: > > > In practice, that's not going to be a problem for most distributions. > > The traditional way Debian-derived systems have done builds is > > completely outside of git. So there will be a linux_5.2.orig.tar.gz > > and a linux_5.2-1.debian.tar.xz. dpkg_source -x will first unpackage > > the orig.tar.gz, and then the debian.tar.xz, and if the second > > overwrites the first, it's no big deal. > > ACK. IIRC they already filter out debian/ directories when generating > upstream tarballs - other upstreams already provide their debian/ > stuff, too. Well, no, actually they don't. That's because as much as possible they want the upstream tarball to be bit-for-bit identical to the one published on the official upstream distribution site. That allows them to include the detached PGP signature from the upstream maintainer, if one is provided. If there are files in the upstream debian/ directory that they don't need, they can delete in the distro's debian/rules file. Ideally, so we shouldn't include files in the Linux kernel's debian/ directory willy-nilly. But the debian/rules file will *always* be present, and so it will be overwritten by the _.debian.tar.xz file, and so it's no big deal. - Ted