Hi Khalid,

> Build failed on powerpc due to compile issues in powerpc code, not
> because powerpc is unsupported architecture. Apparently -kdump10 patch
> still does not have full powerpc support in it.

> build failed on alpha because configure script did not recognize
> alphaev86 as a supported architecture. I will look into it.
 
The attached patch fixes the problem with kexec-tools failing to recognize
the alpha architecture; however, kexec-tools still fails to build on alpha
because there is no kexec syscall available for this architecture:

  In file included from kexec/kexec.c:37:
  kexec/kexec-syscall.h:47:2: error: #error Unknown processor architecture. 
Needs a kexec_load syscall number.
  make[1]: *** No rule to make target `kexec/arch/alpha/Makefile'.  Stop.

So I would suggest dropping alpha from the architecture list in debian/rules
as well, unless there's some reason to think this will be fixed soon.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/
diff -u kexec-tools-1.101-kdump10/debian/changelog kexec-tools-1.101-kdump10/debian/changelog
--- kexec-tools-1.101-kdump10/debian/changelog
+++ kexec-tools-1.101-kdump10/debian/changelog
@@ -1,3 +1,11 @@
+kexec-tools (1.101-kdump10-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Always pass the Debian architecture to ./configure, to avoid problems
+    with subarch recognition (or with wrong optimizations).
+
+ -- Steve Langasek <[EMAIL PROTECTED]>  Sat, 28 Apr 2007 16:37:18 -0700
+
 kexec-tools (1.101-kdump10-2) unstable; urgency=low
 
   * Moved the install location for kexec_test to /usr/lib (closes: Bug#392395)
diff -u kexec-tools-1.101-kdump10/debian/rules kexec-tools-1.101-kdump10/debian/rules
--- kexec-tools-1.101-kdump10/debian/rules
+++ kexec-tools-1.101-kdump10/debian/rules
@@ -11,6 +11,13 @@
 
 include /usr/share/dpatch/dpatch.make
 
+DEB_HOST_GNU_TYPE	:= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE	:= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  conf_args += --build $(DEB_BUILD_GNU_TYPE)
+else
+  conf_args += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
 
 CFLAGS = -Wall -g
 
@@ -24,7 +31,7 @@
 configure-stamp: 
 	dh_testdir
 	# Add here commands to configure the package.
-	(cd kexec-tools-1.101; ./configure --prefix=/usr --sbindir=/sbin --mandir=/usr/share/man --datadir=/usr/share)
+	(cd kexec-tools-1.101; ./configure $(conf_args) --prefix=/usr --sbindir=/sbin --mandir=/usr/share/man --datadir=/usr/share)
 
 	touch configure-stamp
 

Reply via email to