All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Malaterre <malat@debian.org>
To: Riku Voipio <riku.voipio@linaro.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>,
	Michal Marek <michal.lkml@markovi.net>,
	linux-kbuild <linux-kbuild@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kbuild/debian: Use KBUILD_BUILD_* when set
Date: Wed, 2 May 2018 21:31:33 +0200	[thread overview]
Message-ID: <CA+7wUsyNiOee5oxoPqU2HDWpfbCQZ-XUhWQjNb+rvFs5mGXsyA@mail.gmail.com> (raw)
In-Reply-To: <CA+7wUswCFsW9Uf2i9gBkCffJO=yqgRORL0znBW50RojtdvRkew@mail.gmail.com>

On Wed, May 2, 2018 at 9:27 PM, Mathieu Malaterre <malat@debian.org> wrote:
> On Wed, May 2, 2018 at 1:30 PM, Riku Voipio <riku.voipio@linaro.org> wrote:
>> On 23 April 2018 at 22:50, Mathieu Malaterre <malat@debian.org> 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.
>
> I simply tried to re-use the KBUILD_* env vars whenever possible. This
> did made sense, since:
>
> $ dmesg|grep debian
>                                                                   ~
> [    0.000000] Linux version 4.14.0-0.bpo.3-amd64
> (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian
> 6.3.0-18)) #1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14)
>
> and
>
> $ apt-cache show linux-image-amd64| grep Main
>                                                                   ~
> Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
>
> I do not believe this should take precedence over DEBEMAIL.

It seems that the env var DEBEMAIL is now accepting a new syntax (at
least I was not aware of this syntax):

https://manpages.debian.org/unstable/devscripts/dch.1.en.html

[...]If the environment variable DEBEMAIL is set, this will be used
for the email address. If this variable has the form "name <email>",
then the maintainer name will also be taken from here[...]

I'll send a v2 that check DEBEMAIL does not contains '<>'.

>> Riku
>>
>>> Signed-off-by: Mathieu Malaterre <malat@debian.org>
>>> ---
>>>  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

  reply	other threads:[~2018-05-02 19:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-23 19:50 [PATCH] kbuild/debian: Use KBUILD_BUILD_* when set Mathieu Malaterre
2018-05-02 11:30 ` Riku Voipio
2018-05-02 16:13   ` Masahiro Yamada
2018-05-02 19:27   ` Mathieu Malaterre
2018-05-02 19:31     ` Mathieu Malaterre [this message]
2018-05-02 20:01 ` [PATCH v2] " Mathieu Malaterre
2018-05-03  9:51   ` Riku Voipio
2018-05-03 17:08   ` Mathieu Malaterre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+7wUsyNiOee5oxoPqU2HDWpfbCQZ-XUhWQjNb+rvFs5mGXsyA@mail.gmail.com \
    --to=malat@debian.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.lkml@markovi.net \
    --cc=riku.voipio@linaro.org \
    --cc=yamada.masahiro@socionext.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.