From patchwork Mon Apr 23 19:50:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10358029 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2934D6019D for ; Mon, 23 Apr 2018 19:51:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 189D428C0F for ; Mon, 23 Apr 2018 19:51:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C02F28C1F; Mon, 23 Apr 2018 19:51:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A38428C0F for ; Mon, 23 Apr 2018 19:51:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932360AbeDWTvD (ORCPT ); Mon, 23 Apr 2018 15:51:03 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:37141 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932345AbeDWTvC (ORCPT ); Mon, 23 Apr 2018 15:51:02 -0400 Received: by mail-wr0-f196.google.com with SMTP id c14-v6so4365044wrd.4; Mon, 23 Apr 2018 12:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=2UGTtQi/qnsFQkzJZF0Q6KdMqzgRVwMTREnrurhqzvk=; b=BdqVtHos7XUA8lkcB1uummsGdDi8N5RdjdYdQn0qsuWMIv2nEYuhgqDpBnR5tElEDT zJWKXJJJjFyNTFX9Ai44yZ1TO6p6xOL16de77AR3M7g49RH/ptYbWGi+f7YUakMbhA10 LIdUWjK2CmNqRdiZynJksULCbNTblW895CmuzdAZDdbm82T8myHNfheVHuKWZTzXIksX Xiz93tXKtL5TH8MZMgDrcczTE4qevM64NaF+e7/mEEK94a1vQcyakJIuowBQI+Xm7nyk dQaQf2JqIb3P/Eu6Szp6FCcq5srW15f5XJRPCXdGaeXReILVYA3NsI6cuW1F7IJxC5mC IGdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=2UGTtQi/qnsFQkzJZF0Q6KdMqzgRVwMTREnrurhqzvk=; b=NiTykfu8lHsm5bQcgM+CbcsnjwVHrd3z/zhfG39NqRtADvRh977b7zjQciyoEJT09M 9xCS4sXtspe29XcGF9ohiQLJFe0JGAJQCXbJbl02iPo6DwV8n4NV98uQ5QpNI8ltDsm/ yZ7n0C1DHgO7++NT5Bp+27Hr5OYeME/0CFNA8X5WM9sfiGAi0V1dPakVKiNs1D1AjxLF W/T49TR+MGBEubvojTbJcBkMnwj3B0Gtb0kF/yAT1hgaMx5U7g8H9OYTr9pVajdB/D+8 5KPPJHecEZrhXEAbMxMUxO4gUIgVYuoX86oogOAyApaRYjUgbpx2HyNDhTG6rxQgQdc3 yS2Q== X-Gm-Message-State: ALQs6tBquQR/w/ddoQmdZVs4mHGTm3b4sVIKDuKEIs9n/vUc/OyQgCXh wquVlukL648ZcMk0BzXUrBc= X-Google-Smtp-Source: AIpwx4+CeqmefN4jvREtZYN1F576WLMJ7K5aiwh0q4Z/1YrgBKHWI+/I/Ndcb4vQLgpjyxI9LRag6Q== X-Received: by 2002:adf:8ab7:: with SMTP id y52-v6mr18356663wry.98.1524513060729; Mon, 23 Apr 2018 12:51:00 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id m35-v6sm8937093wrm.51.2018.04.23.12.50.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 12:51:00 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 205D710C04DB; Mon, 23 Apr 2018 21:50:59 +0200 (CEST) From: Mathieu Malaterre To: Masahiro Yamada Cc: Mathieu Malaterre , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kbuild/debian: Use KBUILD_BUILD_* when set Date: Mon, 23 Apr 2018 21:50:54 +0200 Message-Id: <20180423195055.26069-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Be nice to the user and check env vars KBUILD_BUILD_USER & KBUILD_BUILD_HOST when those are set. 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