Received: by 10.192.165.148 with SMTP id m20csp818221imm; Wed, 2 May 2018 09:15:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqaZcJqCenAy1P/7Tj6QYlT7E5cGEXuGigwrmL8pKiPJzxtXjYYaOjM5E03IeMFwt8IISjQ X-Received: by 2002:a17:902:7082:: with SMTP id z2-v6mr8814916plk.373.1525277706000; Wed, 02 May 2018 09:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525277705; cv=none; d=google.com; s=arc-20160816; b=WUuZH9SILzFHCw9RTX1Ou7Ke+0P8N8lY1Uie31aJqXeNs2glePcmmW3JFOk3KPpanW LYCtmqnOHkrH+Dz/cZz1F9lHD5VgLk/cRuo/ILTZEizSMrUpg0grIPI0G2CFnp8E4Wgi DLPI6qgRVmEdQZyd7MVBlYDgD/O51L+cYGoUKQcYfvD1GbDpg3lt8OXMk+f6XPl8XNvq /r4lqcnVOWh1dpj6hPyq/oZ4/VZ6ii++YvGNxMr0xRjKSDOV19yh0FC9qcIgZGBt+QYJ wDsVLXXOZLqm9l8DDakw15EuEJhwFjPmV/B5q8Xq1tNi4c8R2Dr4xF9UnhDDmd3B0vQ0 jtsQ== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=LXHYs6boROJg+ZxM1dZ1w4PW6NrkkdKVN90mteKM2DE=; b=UOdt/ymSfQvvnZz4RmnjtgNWxF2amF2fmYds5VUkJUsX37I0+/k+txccnEhFqIl8Vc +jPSOMP6O4uvqvrWc4Z6LtbH+WR8ba8hKJcccu8fxf9zX15hxSOxO3RYBotqrgie4Ab8 oB0FTwRAjDsauRdOlmxXesqOtGH8iRyyJY8l0BnLAi+tBkBSZEeEbp7FJ5XY9+udR8vr s8I3ptaC8ixtzR7q0NgJJts9h3WjgVO998fFRPDHgzek6iJdW9pbavQWlKLD1MUMlLbm l+LFWIKlc3Y9M8mP/aQY9SKyaQhsN2e18Th17U/IyiNl27mUfmwWk2eLqApnrm6yzCda Didg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vXWovUVx; 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 n6si6437509pfi.360.2018.05.02.09.14.51; Wed, 02 May 2018 09:15:05 -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=vXWovUVx; 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 S1751736AbeEBQOm (ORCPT + 99 others); Wed, 2 May 2018 12:14:42 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:31346 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557AbeEBQOj (ORCPT ); Wed, 2 May 2018 12:14:39 -0400 Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com [209.85.213.52]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w42GEH5S018552; Thu, 3 May 2018 01:14:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w42GEH5S018552 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1525277658; bh=LXHYs6boROJg+ZxM1dZ1w4PW6NrkkdKVN90mteKM2DE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=vXWovUVxKYX232YglY8MerQKyMARbTnKWAAambmgbnJKJOSf8wzyhH9ysIF3NOUxV E5Hs51fPdDp1HvPLhCMJkHZ02Fn03pmRS0hrpNGL0oDgEYHZPpwb9elxeDS9x++1Gx cVtKH+JLMxo42/E6IgHjZs6q+l7jIdecqyJb4eBNJZ83pbcbjQ9KJxKkqgA1JKYERO fyTWyXnq3FWWGJImB5BcjFMOAXB5TgN/kizJtX/gBbSSQsL8bxf/ttySl1mTzBN4cF czLEGrMsPwYX0N3bBeFTgjwSO94tmPHSdDSL0YtaJU8PNXAWsNdFZlH01jSEQBkbOe P4XYG8vtvo8KQ== X-Nifty-SrcIP: [209.85.213.52] Received: by mail-vk0-f52.google.com with SMTP id i190-v6so9337549vkd.13; Wed, 02 May 2018 09:14:18 -0700 (PDT) X-Gm-Message-State: ALQs6tCOvF6SEZw0OxAPlE3myooErdiAiEVhQICa7dTmpy058Io0d39d jYk/RWlz0XCBXMVz7WFJYuwSHVvI90xO0ZpOz0Y= X-Received: by 2002:a1f:2f8a:: with SMTP id v132-v6mr18366252vkv.34.1525277657139; Wed, 02 May 2018 09:14:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.85.216 with HTTP; Wed, 2 May 2018 09:13:36 -0700 (PDT) In-Reply-To: References: <20180423195055.26069-1-malat@debian.org> From: Masahiro Yamada Date: Thu, 3 May 2018 01:13:36 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild/debian: Use KBUILD_BUILD_* when set To: Riku Voipio Cc: Mathieu Malaterre , Michal Marek , linux-kbuild , 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 2018-05-02 20:30 GMT+09:00 Riku Voipio : > On 23 April 2018 at 22:50, Mathieu Malaterre wrote: >> Be nice to the user and check env vars KBUILD_BUILD_USER & >> KBUILD_BUILD_HOST when those are set. > > mkdebian sets the maintainer address as "$name <$email>", but this > patch only sets the email part. I also wonder about the precedence, I > think KBUILD_* should be considered over the generic Debian variables. How come? If you see scripts/mkcompile_h, KBUILD_BUILD_USER and KBUILD_BUILD_HOST are used for overriding 'whoami' and 'hostname', respectively. So, I think it is reasonable to put email=$KBUILD_BUILD_USER@$KBUILD_BUILD_HOST over email=$(id -nu)@$(hostname -f 2>/dev/null || hostname) But, it is questionable to put it even over $DEBEMAIL. I think the intention of this patch is to support another (a bit better) fallback in case DEBEMAIL is not set. > Riku > >> Signed-off-by: Mathieu Malaterre >> --- >> scripts/package/mkdebian | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian >> index 6adb3a16ba3b..05d58d3ae8a0 100755 >> --- a/scripts/package/mkdebian >> +++ b/scripts/package/mkdebian >> @@ -76,6 +76,8 @@ if [ -n "$DEBEMAIL" ]; then >> email=$DEBEMAIL >> elif [ -n "$EMAIL" ]; then >> email=$EMAIL >> +elif [ -n "$KBUILD_BUILD_USER" ] && [ -n "$KBUILD_BUILD_HOST" ]; then >> + email=$KBUILD_BUILD_USER@$KBUILD_BUILD_HOST >> else >> email=$(id -nu)@$(hostname -f 2>/dev/null || hostname) >> fi >> -- >> 2.11.0 >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada