Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp807972ybi; Tue, 16 Jul 2019 05:36:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyda4EOGVagnxkmmfdTDfuIqQ3fPblZBw9K/E/mwKR4JYw4vS2F214FeLXMxDvVCCZNDZjG X-Received: by 2002:a17:90a:ab0d:: with SMTP id m13mr34408659pjq.84.1563280561924; Tue, 16 Jul 2019 05:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563280561; cv=none; d=google.com; s=arc-20160816; b=0PLDpBNEw8RKSYQ5uh9qigF525ovRBZDUTFdjRcjj60wtyubF4mxy9DstdB3tI7uzU cY6eDa1s53DOJ3IHgdNtOdNA7lNUvlHOLke9koDHfvyTRCvCK1tuGSEE4YfdaDKbVb/n aRvT3eqfCNJ795MN7knZKCURsDREFeEpr8s3mpOeax+VnZqCxxVTfAePhzr+8ZF8AKkz rOB4qxaVq6Cte/OxkqhvL2nuiDL2jnCy7HwNehIOb8D197jhExrnLlmOjylW9L8t+gbL UakzvCVxWw2atCHzQ6kaZlyfIt+jFa4NA7ZKGNPTv/1d18Em7zMiZYK9CTF03SRrFu2T rPgw== 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=gCdRK4yX9645QoQVRDbcnthpc9eENho9apiY6Xq27ng=; b=Gfnz/HMS57jd+Ihgci1KhGdg24e6LiR5/k5kJy+H4C07CsZPHAl72WPWnaO6i17xW5 d+6PkqgZh9b6kFTXgMxgEgL+xphX92zNaC7aA/r4usAF97NGE2EjY9bbCtbFLgqM6S70 hKp6sutj3UmRzsy51wKRdjHhqshW+h6/caperkhT3EszlfSYHhZa9vDlO+cS/oCfk0GL jCE1HhpfYPvTivczfyfbVrhvhVZyIIVXmdkxoLhGVhtm0R4CmH+KGdjyo2Yxa7uWE72W hYgLEOn5MTuJj1H4QvctZd/5G32oAU/pc1DA51eGYLARrheqGiJK8ccJy/XuNEJMN/nU cAMg== 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 o127si20143574pfb.111.2019.07.16.05.35.45; Tue, 16 Jul 2019 05:36:01 -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 S1732475AbfGPMfA (ORCPT + 99 others); Tue, 16 Jul 2019 08:35:00 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:43220 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726997AbfGPMfA (ORCPT ); Tue, 16 Jul 2019 08:35:00 -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 x6GCYWYd026006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jul 2019 08:34:33 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id EBB74420054; Tue, 16 Jul 2019 08:34:31 -0400 (EDT) Date: Tue, 16 Jul 2019 08:34:31 -0400 From: "Theodore Y. Ts'o" To: Masahiro Yamada Cc: "Enrico Weigelt, metux IT consult" , "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: <20190716123431.GB2999@mit.edu> Mail-Followup-To: "Theodore Y. Ts'o" , Masahiro Yamada , "Enrico Weigelt, metux IT consult" , "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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Jul 16, 2019 at 05:58:49PM +0900, Masahiro Yamada wrote: > I want debian/ to be kept as a drop-in directory > for packagers, without replacing the upstream debian/rules. > > If a check-in source file is modified in anyway, > scripts/setlocalversion would set -dirty flag, > which I want to avoid. 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. More modern Debian package maintainer workflows may be using git, but in that case, all of the "Debianizations" are reflected in a separate branch. So it's not going to set the -dirty flag. There will be potential merge conflicts between Enrico's proposed "upstream default debian/rules" file and the Debian/Ubuntu debian/rules file on their distro branch. However, I don't think that's a big issue, for two reasons. First, once it's checked in, I expect changes to the default debian/rules file will be relatively rare. Secondly, it's easy enough to use gitattributes and defining a custom merge driver so that a distribution can configure things so that they always use the version of debian/rules from their branch, so the merge conflict resolution can be set up to always do the right thing. There are certainly other upstreams which ship their own debian/ directories. E2fsprogs is one such example, but in that case I'm cheating because I'm both the Debian package maintainer as well as the upstream maintainer. :-) However, it's never been an issue for Ubuntu when they choose to ship their own customized debian/rules file. > debian/rules is a hook for packagers to do their jobs in downstream. > "We kindly committed a generic one for you" sounds weird to me. It is weird, and it's not common for upstream packages (which are not native Debian packages) to ship their own debian directory. But it certainly does happen, and it won't cause any problems in actual practice. Regards, - Ted