Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp80377imu; Wed, 7 Nov 2018 13:19:23 -0800 (PST) X-Google-Smtp-Source: AJdET5ch/ZUtDLXp7+apQxtSyWuEyl9xDPZbzmS0roKpeZSIg/fkUOIj3vxTagJEmSQmM1HJsRhN X-Received: by 2002:a62:1d50:: with SMTP id d77-v6mr1842952pfd.87.1541625563838; Wed, 07 Nov 2018 13:19:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541625563; cv=none; d=google.com; s=arc-20160816; b=K3e5Fcz1MijriTr/Vmt38AgtIfyeAJ2ksfTr3IQMX1/3l8AbdUAY4kPDnHy/V7rvl8 8xl06CD9t0yeJlgmf4ErGPDFG88SprIJTgICSx3a+4pdotAn/cn5g5yAhd8lXgWkuTuw SoKmoBYwZ7oaIQdxs7YhosR4ZTheW6TyF0JnlnXwiBmXPQxS95KexMhOmao3oyIyWZ8X FcovfWhLQMkOkt2jANXrKEpmDjhU0RGicqnTO1PXQubpuexoTH5MD+/mxKi6EFfOF/tf rFlKXqqVghCwmFKL4cAYrd4plRrOBI46FTHKOv4eBQ7PHnqYkMcCzVvzLqK2RoYp41y5 ScuA== 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; bh=4ihhgHrKEE1pacViDFlSsQzwqvPqE2E1R1WjQ3EseAE=; b=n+0ZyFvCCnMKU0B4wIaPYHa5mb35N9osfHv0eywOFPIAAidCtFrjr+A0cX6IdyaPlC uwuEcF8vHk+VGYjUODKiMWdkSfsUIavrmz6kkX6YsJPEzMWaAQj9KUgt0n0krLCpPLeJ I/lWs+kog4EmaUS54CsAoSzj2hG9HcN++9dJ8xnG02pltPnbNMQQ3bZDOjwd8g/uE7Jm 4060ZAs6VUuo+GvsJT5dZJf55BVAKL3rb/JZehiDEpp4+cezV831WJ5V/eZ1HG4DheMM qv14k/S6hO02Deb8mFyeDOIzS7GGjpHLZVwcezvKhXI+HNdmQ4A+C0XvBsY0mgb6lKh0 u4Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RX4sUZGf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g189-v6si1634802pgc.204.2018.11.07.13.19.04; Wed, 07 Nov 2018 13:19:23 -0800 (PST) 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=@chromium.org header.s=google header.b=RX4sUZGf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727305AbeKHGuo (ORCPT + 99 others); Thu, 8 Nov 2018 01:50:44 -0500 Received: from mail-vk1-f196.google.com ([209.85.221.196]:43684 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbeKHGuo (ORCPT ); Thu, 8 Nov 2018 01:50:44 -0500 Received: by mail-vk1-f196.google.com with SMTP id o130so1578152vke.10 for ; Wed, 07 Nov 2018 13:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4ihhgHrKEE1pacViDFlSsQzwqvPqE2E1R1WjQ3EseAE=; b=RX4sUZGfUL61yuG7JSexiOiBeR1R305fZSarM2oMqdfoyJzcFa3hZXPdiywZxhDeoC qDKMD5lhaddRKPtE+o9uCrU+PwZIsch/256TpC0aE+cyWerJl7pkPDBNCBYHqrXNsyAP +Cr+ckNPcEHFlgTF6virgzEbMAO8NwID9Tqeg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4ihhgHrKEE1pacViDFlSsQzwqvPqE2E1R1WjQ3EseAE=; b=sM/fdCL/3IlyVWQbkwv2lyjDj08tfXpCs3SQV+j7zdNVakzrM79SntFGQUs7KXOw2Z 5QBLc8TrfZivO0ph7GakWo9qguvMosDPRHd6XaWkZdSTAAvsLLV8mEdqJxdSPfyFjFKA LYGWW8qeYYdJ2Nu5dSRXce1AlklfQ6+6a2ST+FDVEGtiw3RW3a62PCe+Ba1pId8TpmwQ PwyUBQ6VS/QhIan27yEWg1RQxYhc1wyT+t/QeEuOQuVYn1F7hTRlF0B1bN1mys+R24Re BSDIkqMfq3/kHNRropIEzDx7UrGW7HgL+1li/ZCZj35I9DLLBLQiNarQa88cEl7gIdoL Ifrw== X-Gm-Message-State: AGRZ1gLzyrNJ06aireXJwLiiQUAb40VuIQ1RLFDBObmA1b5/9TRyrrHB SpGIET7/AkCTnbAY+yzuJ/Rn9GivRgY= X-Received: by 2002:a1f:e3c7:: with SMTP id a190mr847244vkh.66.1541625512039; Wed, 07 Nov 2018 13:18:32 -0800 (PST) Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com. [209.85.222.53]) by smtp.gmail.com with ESMTPSA id x132sm483693vsc.34.2018.11.07.13.18.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 13:18:31 -0800 (PST) Received: by mail-ua1-f53.google.com with SMTP id d21so6409507uap.9 for ; Wed, 07 Nov 2018 13:18:31 -0800 (PST) X-Received: by 2002:ab0:650e:: with SMTP id w14mr915588uam.83.1541625510833; Wed, 07 Nov 2018 13:18:30 -0800 (PST) MIME-Version: 1.0 References: <1541527838-4585-1-git-send-email-linux@roeck-us.net> <20181106.192305.406697677@genki.is> <20181107022156.GA254567@google.com> <20181107184435.GA168339@google.com> <20181107.204358.257636196@genki.is> <20181107205514.GB12273@roeck-us.net> <20181107.210731.330601031@genki.is> In-Reply-To: <20181107.210731.330601031@genki.is> From: Doug Anderson Date: Wed, 7 Nov 2018 13:18:19 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust" To: sky@genki.is Cc: Guenter Roeck , Brian Norris , lists@nerdbynature.de, Masahiro Yamada , LKML 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 Hi, On Wed, Nov 7, 2018 at 1:07 PM Genki Sky wrote: > > On Wed, 7 Nov 2018 12:55:14 -0800, Guenter Roeck wrote: > > I do not think it is a good idea to create a random file in the .git directory > > under any circumstance, and much less so if an output directory was specified, > > no matter if the path is read-only or not. I also still think that it is a > > bad idea to touch the source tree if an output directory was specified. > > It defeats the purpose of specifying an output directory. > > I was thinking of touching a pre-existing file like .git/config or > .git/description, which I was hoping would be harmless. But sounds > like that's still not desired? > > Okay, I guess one approach is to only refresh the index if $objtree == > $srctree, by passing some flag to scripts/setlocalversion from > scripts/package/Makefile. Is that what you're thinking? Feels a little > strange, but it seems it'd satisfy everyone. From reading the thread it sounds like Guenter was not even super happy with that based on the principal that you wouldn't expect a kernel build to be doing write operations in your .git directory even if $objtree == $srctree > > Ubuntu 16.04 ships with git version 2.7.4. > > Okay. I guess --no-optional-locks is a no-go then. In theory you could wrap it. If passing git with "--no-optional-locks" doesn't work you could fall back to the old code? That would mean only people with newer git would get your new feature and everyone else would stick with the pre-existing behavior. It does seem like any things like this should be done atop Guenter's revert. AKA: revert first to get things working the way that they were and then start talking about how to make it better. -Doug