Re: Cant build module-init-tools-3.11

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


Jonathan Andrews wrote:
On Wed, 2010-03-17 at 16:45 +0000, Alan Jenkins wrote:
see what the child is doing.  "strace -f make" would be more useful.
Attached :-)

Thanks,
Jon
Apologies, adding in some of dependencies has changed the outcome. I do
have a snapshot of the machine in the previous state if required.
I suspect you'll be able to reproduce it if you do "make distclean;
./configure", which will re-enable builddir.


Ok, done

Great, that was just what I needed.  Here's a patch to fix it.

----------------------------------------------------------------------
From 39e56beada18e2c3852acc9ae5fa9b8a4b2838c9 Mon Sep 17 00:00:00 2001
From: Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx>
Date: Thu, 18 Mar 2010 11:00:39 +0000
Subject: [PATCH] build: handle old (System V) style wc output

wc -w may output "      0" instead of "0".  Handle this using an integer
comparison (instead of a string comparison).
---
m4/ax_enable_builddir.m4 |    6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/m4/ax_enable_builddir.m4 b/m4/ax_enable_builddir.m4
index 4273a53..a7b67e8 100644
--- a/m4/ax_enable_builddir.m4
+++ b/m4/ax_enable_builddir.m4
@@ -206,7 +206,7 @@ a\\
	; test ".\$\$HOST" = "." && HOST=$x sh $AUX/config.guess $x \\\\\\
	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
	; use=$x basename "\$\@" _ALL $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
-	; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" = "0" ; then : \\\\\\
+	; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
	; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
	; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
	; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
@@ -219,7 +219,7 @@ dnl special rule add-on: "dist" copies the tarball to $(PUB). (source tree)
	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
	; found=$x echo \$\$BUILD | wc -w $x \\\\\\
	; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
-	; if test "\$\$found" = "0" ; then : \\\\\\
+	; if test "\$\$found" -eq "0" ; then : \\\\\\
	; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
	; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
	; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
@@ -231,7 +231,7 @@ dnl special rule add-on: "dist-foo" copies all the archives to $(PUB). (source t
	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
	; found=$x echo \$\$BUILD | wc -w $x \\\\\\
	; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
-	; if test "\$\$found" = "0" ; then : \\\\\\
+	; if test "\$\$found" -eq "0" ; then : \\\\\\
	; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
	; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
	; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
--
1.6.3.3



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

[Home]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Video Projectors]     [PDAs]     [Free Online Dating]     [Hacking TiVo]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]     [16.7MP]

Add to Google Powered by Linux