Bug#375581: zaptel-source: Can't recompile zaptel modules on Sarge

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Jun 26 23:30:54 UTC 2006


On Tue, Jun 27, 2006 at 12:37:37AM +0200, Alessandro Polverini wrote:
> Package: zaptel-source
> Version: 1:1.2.6-2.sarge.1918
> Severity: normal
> 
> Hello,
> I'm trying to recompile zaptel drivers on a Sarge system with backported
> kernel 2.6.15.

Sorry for being so slow to respond.

The problem is that the Makefile_kbuild patch was not copmpletely
merged.

A corrected one is attached, that patches only what is left to patch.

> 
> I get this error:
> dh_clean -k
> make modules KERNEL_SOURCES=/lib/modules/2.6.15-1-k7-smp/build
> MODVERSIONS=detect KERNEL=linux-2.6.15-1-k7-smp
> make[2]: Entering directory `/tmp/usr_src/modules/zaptel'
> make[2]: *** No rule to make target `modules'.  Stop.
> make[2]: Leaving directory `/tmp/usr_src/modules/zaptel'
> make[1]: *** [binary-modules] Error 2
> make[1]: Leaving directory `/tmp/usr_src/modules/zaptel'
> make: *** [kdist_build] Error 2
> 
> While the build works fine on a Etch system.
> 
> -- System Information:
> Debian Release: 3.1
>   APT prefers unstable
>   APT policy: (50, 'unstable')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.15-1-k7-smp
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> 
> Versions of packages zaptel-source depends on:
> ii  bzip2                         1.0.2-7    high-quality block-sorting file co
> ii  debhelper                     4.2.32     helper programs for debian/rules
> ii  module-assistant              0.10.2bpo1 tool to make module package creati
> 
> -- no debconf information

> dh_testdir
> dh_testroot
> rm -f build-*-stamp configure-stamp
> # Add here commands to clean up after the build process.
> rm -rf modexamples
> /usr/bin/make clean
> make[1]: Entering directory `/tmp/usr_src/modules/zaptel'
> make[1]: Leaving directory `/tmp/usr_src/modules/zaptel'
> #rm -f debian/manpage.links  debian/manpage.refs debian/*.8
> dh_clean
> /usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
> make[1]: Entering directory `/tmp/usr_src/modules/zaptel'
> dh_testdir
> dh_testroot
> rm -f build-*-stamp configure-stamp
> # Add here commands to clean up after the build process.
> rm -rf modexamples
> /usr/bin/make clean
> make[2]: Entering directory `/tmp/usr_src/modules/zaptel'
> make[2]: *** No rule to make target `clean'.  Stop.
> make[2]: Leaving directory `/tmp/usr_src/modules/zaptel'
> make[1]: [clean-unpatched] Error 2 (ignored)
> #rm -f debian/manpage.links  debian/manpage.refs debian/*.8
> dh_clean
> /usr/bin/gcc-3.3
> for templ in ; do \
>     cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.15-1-k7-smp/g'` ; \
>   done
> for templ in `ls debian/*.modules.in` ; do \
>     test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
>     sed -e 's/##KVERS##/2.6.15-1-k7-smp/g ;s/#KVERS#/2.6.15-1-k7-smp/g ; s/_KVERS_/2.6.15-1-k7-smp/g ; s/##KDREV##/2.6.15-7bpo1/g ; s/#KDREV#/2.6.15-7bpo1/g ; s/_KDREV_/2.6.15-7bpo1/g' < $templ > ${templ%.modules.in}; \
>   done
> dh_testdir
> dh_testroot
> dh_clean -k
> make modules KERNEL_SOURCES=/lib/modules/2.6.15-1-k7-smp/build MODVERSIONS=detect KERNEL=linux-2.6.15-1-k7-smp
> make[2]: Entering directory `/tmp/usr_src/modules/zaptel'
> make[2]: *** No rule to make target `modules'.  Stop.
> make[2]: Leaving directory `/tmp/usr_src/modules/zaptel'
> make[1]: *** [binary-modules] Error 2
> make[1]: Leaving directory `/tmp/usr_src/modules/zaptel'
> make: *** [kdist_build] Error 2

> _______________________________________________
> Pkg-voip-maintainers mailing list
> Pkg-voip-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-maintainers


-- 
Tzafrir Cohen      sip:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com
-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## Makefile_kbuild.dpatch by Tzafrir Cohen <tzafrir.cohen at xorcom.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: use kbuild (the kernel build system) more extensively. This will
## DP: be useful for recursive builds.
## -- applied upstream in 1.2 branch

@DPATCH@
diff -urNad zaptel-1.2.6/Makefile /tmp/dpep.x8Bqi9/zaptel-1.2.6/Makefile
--- zaptel-1.2.6/Makefile	2006-06-22 13:14:41.994504042 +0300
+++ /tmp/dpep.x8Bqi9/zaptel-1.2.6/Makefile	2006-06-22 13:23:59.447070160 +0300
@@ -408,10 +408,14 @@
 	install -m 644 tonezone.h $(INC_DIR)
 	install -m 644 zaptel.h torisa.h $(INC_DIR)/linux
 
-install-modules: $(MODULES_BUILD)
+install-modules: install-$(BUILDVER)
+install-linux24: $(MODULES_BUILD)
 	install -d $(MOD_DIR)
 	install -m 644 $(MODULES_BUILD) $(MOD_DIR)
 
+install-linux26: $(MODULESKO)
+	$(KMAKE_INST)
+
 clean:
 	rm -f torisatool makefw tor2fw.h radfw.h
 	rm -f $(BINS)


More information about the Pkg-voip-maintainers mailing list