Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Aug 2016 20:48:52 +0000 (16:48 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Aug 2016 20:48:52 +0000 (16:48 -0400)
Pull misc kbuild updates from Michal Marek:

 - coccicheck script improvements by Luis Rodriguez and Deepa Dinamani

 - new coccinelle patches by Yann Droneaud and Vaishali Thakkar

 - debian packaging fixes by Wilfried Klaebe, Henning Schild and Marcin
   Mielniczuk

* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  Fix the Debian packaging script on systems with no codename
  builddeb: fix file permissions before packaging
  scripts/coccinelle: require coccinelle >= 1.0.4 on device_node_continue.cocci
  coccicheck: refer to Documentation/coccinelle.txt and wiki
  coccicheck: add support for requring a coccinelle version
  scripts: add Linux .cocciconfig for coccinelle
  coccicheck: replace --very-quiet with --quiet when debugging
  coccicheck: add support for DEBUG_FILE
  coccicheck: enable parmap support
  coccicheck: make SPFLAGS more useful
  coccicheck: move spatch binary check up
  builddeb: really include objtool binary in headers package
  coccinelle: catch krealloc() on devm_*() allocated memory
  coccinelle: recognize more devm_* memory allocation functions
  coccinelle: also catch kzfree() issues
  coccicheck: Allow for overriding spatch flags
  Coccinelle: noderef: Add new rules and correct the old rule

1  2 
.gitignore
scripts/package/builddeb

diff --combined .gitignore
index 2be25f771bd8c52246d04e7156308cd09225bd45,038ae7a397cd7da8701fa897d0290890c782f28a..c2ed4ecb0acd28126d8703e17e86775ccbed1bb6
@@@ -37,7 -37,6 +37,7 @@@ modules.builti
  Module.symvers
  *.dwo
  *.su
 +*.c.[012]*.*
  
  #
  # Top-level generic files
@@@ -67,6 -66,7 +67,7 @@@
  #
  !.gitignore
  !.mailmap
+ !.cocciconfig
  
  #
  # Generated include files
diff --combined scripts/package/builddeb
index 4d4418a8d54dafea4dd9e1d21adeff7917c5c960,510add6d050c76b6e87cde6ca63fc3191abbdf9d..e1c09e2f9be7ebc88406676b3b1e46ecdd729ac0
@@@ -26,6 -26,8 +26,8 @@@ create_package() 
        # Fix ownership and permissions
        chown -R root:root "$pdir"
        chmod -R go-w "$pdir"
+       # in case we are in a restrictive umask environment like 0077
+       chmod -R a+rX "$pdir"
  
        # Create the package
        dpkg-gencontrol $forcearch -Vkernel:debarch="${debarch}" -p$pname -P"$pdir"
@@@ -238,7 -240,8 +240,8 @@@ maintainer="$name <$email>
  # Try to determine distribution
  if [ -n "$KDEB_CHANGELOG_DIST" ]; then
          distribution=$KDEB_CHANGELOG_DIST
- elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ]; then
+ # In some cases lsb_release returns the codename as n/a, which breaks dpkg-parsechangelog
+ elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ] && [ "$distribution" != "n/a" ]; then
          : # nothing to do in this case
  else
          distribution="unstable"
  
  # Build kernel header package
  (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles"
- if grep -q '^CONFIG_STACK_VALIDATION=y' $KCONFIG_CONFIG ; then
-       (cd $srctree; find tools/objtool -type f -executable) >> "$objtree/debian/hdrsrcfiles"
- fi
  (cd $srctree; find arch/*/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles"
  (cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/debian/hdrsrcfiles"
  (cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/debian/hdrsrcfiles"
+ if grep -q '^CONFIG_STACK_VALIDATION=y' $KCONFIG_CONFIG ; then
+       (cd $objtree; find tools/objtool -type f -executable) >> "$objtree/debian/hdrobjfiles"
+ fi
  (cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/debian/hdrobjfiles"
 +(cd $objtree; find scripts/gcc-plugins -name \*.so -o -name gcc-common.h) >> "$objtree/debian/hdrobjfiles"
  destdir=$kernel_headers_dir/usr/src/linux-headers-$version
  mkdir -p "$destdir"
  (cd $srctree; tar -c -f - -T -) < "$objtree/debian/hdrsrcfiles" | (cd $destdir; tar -xf -)
This page took 0.027142 seconds and 5 git commands to generate.