Bug#305193: zaptel-source: Patch applied that does not mess with upstream source

Tzafrir Cohen tzafrir.cohen@xorcom.com
Sun, 29 May 2005 23:04:23 +0300


On Sat, May 28, 2005 at 05:56:33PM +0200, Jonas Smedegaard wrote:
> Package: zaptel-source
> Version: 1:1.0.7-4.1
> Followup-For: Bug #305193
> 
> The below patch works as well, and don't mess with upstream source - if
> that happens to be the reason for not applying the other patch.
> 
>  - Jonas
> 
> 
> *** rules.diff
> --- rules.orig
> +++ rules
> @@ -37,7 +37,7 @@
>  	dh_testdir
>  	dh_testroot
>  	dh_clean -k
> -	make modules KERNEL_SOURCES=$(KSRC) MODVERSIONS=detect KERNEL=linux-$(KVERS)
> +	make modules KERNEL_SOURCES=$(KSRC) MODVERSIONS=detect KERNEL=linux-$(KVERS) ZAPTELDIR="$(CURDIR)"
>  	make install-modules  DESTDIR=$(CURDIR)/debian/$(PKGNAME)

Just note that DESTDIR was added in the debian patch, and replicates the
functionality of INSTALL_PREFIX of the original makefile.

Also, IIRC you should pass ZAPTELDIR in the environment and not as a
make parameter. IIRC it only worked when I passed it in the environment.

And ZAPTELDIR is actually only needed for other modules from the
bristuff patch. Otherwise it is . or PWD. In my current makefile I
simply copy them to the current directory and avoid the need for tons of
makefiles patching.

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen@xorcom.com  http://www.xorcom.com