Package: kernel-package
Version: 13.018
Severity: normal
Dear Maintainer,
my host OS is ubuntu14.04.
I use make-kpkg to build kernel 4.4.144 source.
my tree is clean.
$ git status
On branch release-4.4
nothing to commit, working directory clean
$ ./scripts/setlocalversion
-00002-g4b98c5c
$ git diff-index --name-only HEAD
but
$ fakeroot make-kpkg --arch-in-name --arch arm64 --cross-compile aarch64-linux-
gnu- -j 1 kernel-image
$ cat include/config/kernel.release
4.4.114-00002-g4b98c5c-dirty
I found in “scripts/setlocalversion”
line 75:
# Check for uncommitted changes
if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
printf '%s' -dirty
fi
in "make-kpkg ...", 'git diff-index --name-only HEAD' awlays output all the
file in tree like this:
:100644 100644 e6f0aae8d62798c62656f1d8cfa7950cd139c73e
0000000000000000000000000000000000000000 M .checkpatch.conf
:100644 100644 cca6d870f7a57499ffd8be4b3abacaf9fccde9c1
0000000000000000000000000000000000000000 M .get_maintainer.ignore
:100644 100644 e227452137bc372890df69ab4bf63fe1a722276c
0000000000000000000000000000000000000000 M .gitignore
:100644 100644 b1e9a97653dc64853775a97db377a8f269cc8d95
0000000000000000000000000000000000000000 M .mailmap
...
after make-kpkg finish,
$ git diff-index --name-only HEAD
nothing output again.
and, if I add a "git status " to ./scripts/setlocalversion before "
git diff-index --name-only HEAD" like this
# Check for uncommitted changes
git status
if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
printf '%s' -dirty
fi
everything runs well .
sorry for my pool english.
-- System Information:
Debian Release: stretch/sid
APT prefers xenial-updates
APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500,
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.13.0-41-generic (SMP w/4 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages kernel-package depends on:
ii bc 1.06.95-9build1
ii binutils 2.26.1-1ubuntu1~16.04.6
ii build-essential 12.1ubuntu2
ii bzip2 1.0.6-8
ii dpkg-dev 1.18.4ubuntu1.3
ii file 1:5.25-2ubuntu1
ii gettext 0.19.7-2ubuntu3
ii kmod 22-1ubuntu5
ii po-debconf 1.0.19
ii xmlto 0.0.28-0.1
ii xz-utils [lzma] 5.1.1alpha+20120614-2ubuntu2
Versions of packages kernel-package recommends:
ii cpio 2.11+dfsg-5ubuntu1
ii docbook-utils 0.6.14-3ubuntu1
ii kernel-common 13.018
pn uboot-mkimage <none>
Versions of packages kernel-package suggests:
pn libncurses-dev <none>
pn linux-source <none>
-- no debconf information