Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2741696pxk; Sun, 20 Sep 2020 15:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8MHnf8E+i3djdyFLrgPmmnGPLdBjHYfAS/odNt1f+qK5uxvgXU2WaPgeetHFSR+OJ4Eg5 X-Received: by 2002:a17:906:f43:: with SMTP id h3mr45542342ejj.338.1600642350088; Sun, 20 Sep 2020 15:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600642350; cv=none; d=google.com; s=arc-20160816; b=tTmmVOinlXiLKz2/t2199mNadMpf6nFnFxdooPf7eXE1oPi8KQDHHdYHMJ24xI26V8 oNKzwknZw+T0P1rjeXPxEK6KQLtME4L/kikNim+zCLFV9H8ooJuSU1eXPE1W9v+Jvhte IR+iGFuci5yZ5BLH1hN/3uhrDyEvBtwT8LHY+atMYQNrNkbhGIw8r5bf18rZ5w1mNTGR OaamjeA0SYsfiot0w1CIn/aC08SUduLc7Ew0LVKNRefcg1DxJ7m8Mwaw+Md7j3XT0IRQ gkrMhvD/vD98GhyTOb9U0eKFChgKt43H5jn9fgt8Wc3yIgw7aPTinGy6cI07huQEae7h sWIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nQ/+3EXMGCfv5w3c8BcAsHfQAJ33f3bo1YRa2gxUlcU=; b=ler7U3hlsg+ckcP7VXYOAY82G1odMB43YuVtOumNPKUJCI7UmT5EgPYJeN6HI9HTqG i5IkLpuP7v9WEy+I4QP5cNdRn+JRMXTemGIxxrNbbCcfHGEish8FQ31fLS816HvNJjsx XaZolfB2/a3ZtK3ysIYUGpA367dpLm5mWp4V7wLcyakq0qq73FKhLstvkzaHKF0f6FrN r2OXSOuIOgBfYIb/RWCzfFplnwrvPctk5cZBLZ8d8XQilTkoZqIrB2b7P6xgj/KkzYXZ PofqQEj6Q448aItEX6KNK62fkbY2h0Sg6Cx3FKWTD/ndlAlVJ/bzsjQp+PBnavHip9KS jRWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hadrons.org header.s=201908 header.b=UV7CLBqN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=hadrons.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si6703476ejd.95.2020.09.20.15.52.07; Sun, 20 Sep 2020 15:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hadrons.org header.s=201908 header.b=UV7CLBqN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=hadrons.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbgITWsX (ORCPT + 99 others); Sun, 20 Sep 2020 18:48:23 -0400 Received: from 2.152.178.181.dyn.user.ono.com ([2.152.178.181]:36158 "EHLO pulsar.hadrons.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgITWsW (ORCPT ); Sun, 20 Sep 2020 18:48:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hadrons.org ; s=201908; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:From:Reply-To:Subject:Content-Type: Content-ID:Content-Description:X-Debbugs-Cc; bh=nQ/+3EXMGCfv5w3c8BcAsHfQAJ33f3bo1YRa2gxUlcU=; b=UV7CLBqN85y5W79KMd4P8uOhht Oqnmx6NHYevJIZcR6ywWgoFSbBD3dkbC7JQfnxsIVnXwGUGfWBzwfRhRCAAN27rqe+7ZxFc0WsmMK hLH+p5jPHeDxff5BwsUJZ/K41iAdwaD/v7LfxKxX9Fwrle1zcBmfidzF7Wb1u0JBlE7vnJnyWWIuG VB4ZTSQXNxdXWc+ERknc+lTAg6PgTnq+sLf5HCwLkVJeOREEfv0q63G8rvm6wQfZS4ftjhinU6cVe 3X6kLkv9tO5+zTldeE2PQL+jxdjIhoQNn7msoGYDbUrKcrtrcCOm1RNL0xV3628dScaGhQSEopEI5 43yMviwg==; Received: from guillem by pulsar.hadrons.org with local (Exim 4.92) (envelope-from ) id 1kK7nG-0002cx-Al; Mon, 21 Sep 2020 00:26:50 +0200 From: Guillem Jover To: linux-kbuild@vger.kernel.org, Masahiro Yamada , Michal Marek Cc: linux-kernel@vger.kernel.org Subject: [PATCH 7/7] builddeb: Try to get the user full name from the GECOS field Date: Mon, 21 Sep 2020 00:25:56 +0200 Message-Id: <20200920222556.10002-8-guillem@hadrons.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200920222556.10002-1-guillem@hadrons.org> References: <20200920222556.10002-1-guillem@hadrons.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GECOS field might contain the full name for the username, try to use that and fallback to using the username if that is empty. Signed-off-by: Guillem Jover --- scripts/package/mkdebian | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index ed77d0948fa3..e3d0b7ac9057 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -113,7 +113,8 @@ if echo $email | grep -q '<.*>'; then else # or construct the maintainer string user=${KBUILD_BUILD_USER-$(id -nu)} - name=${DEBFULLNAME-$user} + name=${DEBFULLNAME-$(getent passwd $user | cut -d: -f5 | cut -d, -f1)} + : "${name:=$user}" if [ -z "$email" ]; then buildhost=${KBUILD_BUILD_HOST-$(hostname -f 2>/dev/null || hostname)} email="$user@$buildhost" -- 2.28.0.297.g1956fa8f8d