Re: [PATCH] deb-pkg: Fix building outside of source tree (O=...).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 24/01/2011 14:41, Nicolas de PesloÃan a Ãcrit :

Hi Michal,

Any troubles with my patch? I still don't find it in any branchs of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6.git

It depends on commit 1b9a50d931a04ba007cc1a926fead3ff4b5afa9b, from Maximilian Attems, (in for-next), because it changes the same lines in scripts/package/builddeb.

But, as the problem it fixes cause make deb-pkg to fail, it might be pushed to rc-fixes... ?

Do you want me to rebase it on rc-fixes? (This would cause a future merge to fail when applying the patch from Maximilian, but...).

	Nicolas.

When building linux-headers package using deb-pkg, builddeb erroneously assume
current directory is the source tree. This is not true if building in another
directory, using make O=... deb-pkg.

This patch fix this problem.

Signed-off-by: Nicolas de PesloÃan<nicolas.2p.debian@xxxxxxx>

Tested-by: Nikolai Kondrashov <spbnick@xxxxxxxxx>
Acked-by: maximilian attems <max@xxxxxxx>

---
  scripts/package/builddeb |    6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index ebc6d6e..f6cbc3d 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -238,12 +238,12 @@ EOF
  fi

  # Build header package
-find . -name Makefile -o -name Kconfig\* -o -name \*.pl>  /tmp/files$$
-find arch/$SRCARCH/include include scripts -type f>>  /tmp/files$$
+(cd $srctree; find . -name Makefile -o -name Kconfig\* -o -name \*.pl>  /tmp/files$$)
+(cd $srctree; find arch/$SRCARCH/include include scripts -type f>>  /tmp/files$$)
  (cd $objtree; find .config Module.symvers include scripts -type f>>  /tmp/objfiles$$)
  destdir=$kernel_headers_dir/usr/src/linux-headers-$version
  mkdir -p "$destdir"
-tar -c -f - -T /tmp/files$$ | (cd $destdir; tar -xf -)
+(cd $srctree; tar -c -f - -T /tmp/files$$) | (cd $destdir; tar -xf -)
  (cd $objtree; tar -c -f - -T /tmp/objfiles$$) | (cd $destdir; tar -xf -)
  rm -f /tmp/files$$ /tmp/objfiles$$
  arch=$(dpkg --print-architecture)

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux