Package: xtables-addons-source
Version: 1.5.7-2
Followup-For: Bug #504563

Using a kernel built from linux-source-2.6.26-10 the compiling of
xtables-addons-source failed because some paths were not adapted properly,
or they are not adaptable; cf. attachment.
Secondly there is a constriction on gcc-4.1 and an apparent dependency on
iptables-dev insofar as this package provides a suitable include file
xtables.h (the kernel-tree does not).

Besides, after that alternatively make-kpkg can be used for building
xtables-addons-source.

Cheers,
Matthias


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (980, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xtables-addons-source depends on:
ii  bzip2                         1.0.5-1    high-quality block-sorting file co
ii  debhelper                     7.0.17     helper programs for debian/rules
ii  make                          3.81-5     The GNU version of the "make" util
ii  module-assistant              0.10.11.0  tool to make module package creati

xtables-addons-source recommends no packages.

xtables-addons-source suggests no packages.

-- no debconf information
diff -ru ./debian/rules ../xtables-addons.new/debian/rules
--- ./debian/rules	2008-10-27 22:33:03.000000000 +0100
+++ ../xtables-addons.new/debian/rules	2008-11-11 16:24:45.000000000 +0100
@@ -95,7 +95,7 @@
 	dh_testdir
 
 	# Add here command to compile/build the package.
-	$(MAKE) kbuilddir=/lib/modules/$(KERNELVERSION)-$(ARCH)/build
+	$(MAKE) kbuilddir=/lib/modules/$(KVERS)/build
 	$(MAKE) xtables-addons.8
 
 	touch $@
@@ -143,7 +143,7 @@
 	rm -f build-arch-stamp build-indep-stamp 
 
 	# Add here commands to clean up after the build process.
-	[ ! -f Makefile ] || $(MAKE) kbuilddir=/lib/modules/$(KERNELVERSION)-$(ARCH)/build distclean
+	[ ! -f Makefile ] || $(MAKE) kbuilddir=/lib/modules/$(KVERS)/build distclean
 	rm -f config.sub config.guess
 	rm -f xtables-addons.8 extensions/matches.man extensions/targets.man
 
@@ -160,7 +160,7 @@
 	dh_installdirs -p$(psource)  usr/src/modules/$(sname)/debian
 
 	# Copy only the driver source to the proper location
-	$(MAKE) -C extensions kbuilddir=/lib/modules/$(KERNELVERSION)-$(ARCH)/build clean
+	$(MAKE) -C extensions kbuilddir=/lib/modules/$(KVERS)/build clean
 	cp -r mconfig extensions  debian/$(psource)/usr/src/modules/$(sname)
 	# Copy the needed debian/ pieces to the proper location
 	cp debian/*modules.in* debian/*.defs \
@@ -174,7 +174,7 @@
 	cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules
 
 	# Add here commands to install the package into debian/xtables-addons.
-	$(MAKE) DESTDIR=$(CURDIR)/debian/xtables-addons-common kbuilddir=/lib/modules/$(KERNELVERSION)-$(ARCH)/build install
+	$(MAKE) DESTDIR=$(CURDIR)/debian/xtables-addons-common kbuilddir=/lib/modules/$(KVERS)/build install
 	rm -rf $(CURDIR)/debian/xtables-addons-common/lib/modules
 
 	dh_install
diff -ru ./extensions/GNUmakefile ../xtables-addons.new/extensions/GNUmakefile
--- ./extensions/GNUmakefile	2008-10-27 22:33:03.000000000 +0100
+++ ../xtables-addons.new/extensions/GNUmakefile	2008-11-11 16:24:45.000000000 +0100
@@ -17,14 +17,14 @@
 libdir          := ${exec_prefix}/lib
 libexecdir      := /lib
 xtlibdir        := ${libexecdir}/xtables
-kbuilddir       := /lib/modules/2.6.26-1-amd64/build
+kbuilddir       := /lib/modules/$(KVERS)/build
 
-CC              := gcc-4.1
+CC              := gcc
 CCLD            := ${CC}
 CFLAGS          := -g -O2 -O2
 LDFLAGS         := 
 regular_CFLAGS  := -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 	-D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations 	-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes 	-Winline -pipe -DXTABLES_LIBDIR=\"${xtlibdir}\"
-kinclude_CFLAGS :=  -I /lib/modules/2.6.26-1-amd64/build/include
+kinclude_CFLAGS :=  -I /lib/modules/$(KVERS)/build/include
 xtables_CFLAGS  := 
 
 AM_CFLAGS      := ${regular_CFLAGS} -I${top_srcdir}/include ${xtables_CFLAGS} ${kinclude_CFLAGS}
diff -ru ./extensions/ipset/GNUmakefile ../xtables-addons.new/extensions/ipset/GNUmakefile
--- ./extensions/ipset/GNUmakefile	2008-10-27 22:33:03.000000000 +0100
+++ ../xtables-addons.new/extensions/ipset/GNUmakefile	2008-11-11 16:24:45.000000000 +0100
@@ -18,15 +18,15 @@
 libdir          := ${exec_prefix}/lib
 libexecdir      := /lib
 xtlibdir        := ${libexecdir}/xtables
-kbuilddir       := /lib/modules/2.6.26-1-amd64/build
+kbuilddir       := /lib/modules/$(KVERS)/build
 man8dir         := ${prefix}/share/man/man8
 
-CC              := gcc-4.1
+CC              := gcc
 CCLD            := ${CC}
 CFLAGS          := -g -O2 -O2
 LDFLAGS         := 
 regular_CFLAGS  := -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 	-D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations 	-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes 	-Winline -pipe -DXTABLES_LIBDIR=\"${xtlibdir}\"
-kinclude_CFLAGS :=  -I /lib/modules/2.6.26-1-amd64/build/include
+kinclude_CFLAGS :=  -I /lib/modules/$(KVERS)/build/include
 xtables_CFLAGS  := 
 
 AM_CFLAGS      := ${regular_CFLAGS} -I${top_srcdir}/include ${xtables_CFLAGS} ${kinclude_CFLAGS} -DXTABLES_LIBDIR=\"${xtlibdir}\"

Reply via email to