Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: deb-pkg: use default string when variable is unset or null

${DEBFULLNAME-${user}} falls back to ${user} when DEBFULLNAME is unset.
It is more reasonable to do so when DEBFULLNAME is unset or null.

Otherwise, the command:

$ DEBFULLNAME= make deb-pkg

will leave the name field blank.

The same applies to KBUILD_BUILD_USER and KBUILD_BUILD_HOST.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>

+3 -3
+3 -3
scripts/package/mkdebian
··· 125 125 rm -rf debian 126 126 mkdir debian 127 127 128 - user=${KBUILD_BUILD_USER-$(id -nu)} 129 - name=${DEBFULLNAME-${user}} 128 + user=${KBUILD_BUILD_USER:-$(id -nu)} 129 + name=${DEBFULLNAME:-${user}} 130 130 if [ "${DEBEMAIL:+set}" ]; then 131 131 email=${DEBEMAIL} 132 132 else 133 - buildhost=${KBUILD_BUILD_HOST-$(hostname -f 2>/dev/null || hostname)} 133 + buildhost=${KBUILD_BUILD_HOST:-$(hostname -f 2>/dev/null || hostname)} 134 134 email="${user}@${buildhost}" 135 135 fi 136 136 maintainer="${name} <${email}>"