[Pkg-lirc-maint] Bug#447172: More tracing, found the problem

Matthew "Cheetah" Gabeler-Lee cheetah at fastcat.org
Fri Nov 16 23:39:53 UTC 2007

Did some more thoughtful watching of the build process, and I think I 
found the issue.

This code in the install rule in debian/rules:

        for file in `find debian/tmp/usr/src/modules/lirc -name Makefile`; \
                do sed -e'/configure\.in/,/CONFIG_HEADERS/D' \
                        -e'/^CC *=/d' -e '/^KERNEL_LOCATION *=/d' \
                                $$file >$$file.tmp && \
                        cp $$file.tmp $$file; \

especially the first delete command in the sed call.  That matches most 
of the Makefile and removes it!  It looks like in older versions of 
lirc, that matched a much smaller segment of the makefile that was 
concerned with updating the makefile, and had not been quite accurate as 
it was.

Looking at the Makefile, using am__depfiles_maybe in place of 
CONFIG_HEADERS should work for the intended function.

... tests ...

It produces a proper looking makefile, and was able to build my lirc 
modules (stremzap) against linux

"Reality is that which, when you stop believing in it, doesn't go away".
                -- Philip K. Dick
GPG pubkey fingerprint: A57F B354 FD30 A502 795B 9637 3EF1 3F22 A85E 2AD1

More information about the Pkg-lirc-maint mailing list