Package: kqemu-source
Version: 1.3.0~pre11-5
Severity: normal
Tags: patch

These were found while trying to integrate kqemu-source with
linux-modules-extra-2.6:

  - Under some undetermined conditions (when srcdir != objdir ?), buggy
  code that assumes the module is still a non-free binary is run, and breaks
  build.  See attached patch (also sent upstream).

  - The Debian Linux build system passes ARCH as a parameter, which overrides
  kqemu's internal use of ARCH variable, breaking it since amd64 != x86_64.
  I think the linux-support package should avoid doing this, but as a quick
  solution I propose:

    for i in Makefile configure debian/patches/02-makefile.dpatch 
common/Makefile tests/Makefile ; do
      sed -i $i -e "s/ARCH/KERNEL_&/g"
    done

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)

Versions of packages kqemu-source depends on:
ii  bzip2                         1.0.3-6    high-quality block-sorting file co
ii  debhelper                     5.0.42     helper programs for debian/rules
ii  dpatch                        2.0.21     patch maintenance system for Debia
ii  make                          3.81-3     The GNU version of the "make" util
ii  module-assistant              0.10.8     tool to make module package creati

kqemu-source recommends no packages.

-- no debconf information
diff -ur kqemu-1.3.0~pre11.old/Makefile kqemu-1.3.0~pre11/Makefile
--- kqemu-1.3.0~pre11.old/Makefile      2007-07-17 19:37:57.000000000 +0200
+++ kqemu-1.3.0~pre11/Makefile  2007-07-17 19:36:52.000000000 +0200
@@ -90,9 +90,9 @@
 # called from 2.6 kernel kbuild
 
 obj-m:= kqemu.o
-kqemu-objs:= kqemu-linux.o kqemu-mod.o
+kqemu-objs:= kqemu-linux.o kqemu-mod-$(ARCH).o
 
-$(obj)/kqemu-mod.o: $(src)/kqemu-mod-$(ARCH).o
-       cp $< $@
+$(obj)/kqemu-mod-$(ARCH).o:
+       $(MAKE) -C $(obj)/common
 endif
 endif # PATCHLEVEL

Reply via email to