PATCH: makefile bug in 2.1.81-pre1

C. Scott Ananian (cananian@lcs.mit.edu)
Thu, 22 Jan 1998 19:07:40 -0500 (EST)


A line was added to the Makefile of 2.1.81-pre1 to remove zero-length
files. Zero-length *.ver files are included by some files; my compile
fails in kernel/signal.c with:
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
[...more compile options...]
signal.c
In file included from /usr/src/linux/include/linux/module.h:19,
from signal.c:9:
/usr/src/linux/include/linux/modversions.h:4:
linux/modules/adlib_card.ver: No such file or directory
[etc, etc: af_ax25.ver, af_netlink.ver, ...]

The following patch deletes the offending Makefile line and fixes the bug.
Note that this shows up only if you do 'make dep; make clean' as 'make
config' recommends; if you don't 'make clean' after 'make dep' then your
zero-length version files won't be deleted.
--Scott
@ @
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-(_)-OOo-=-=-=-=-=
C. Scott Ananian: cananian@lcs.mit.edu / Declare the Truth boldly and
Laboratory for Computer Science/Crypto / without hindrance.
Massachusetts Institute of Technology /META-PARRESIAS AKOLUTOS:Acts 28:31
-.-. .-.. .. ..-. ..-. --- .-. -.. ... -.-. --- - - .- -. .- -. .. .- -.
PGP key available via finger and from http://www.pdos.lcs.mit.edu/~cananian

--- linux/Makefile.orig Thu Jan 22 19:04:43 1998
+++ linux/Makefile Thu Jan 22 19:04:58 1998
@@ -338,7 +338,6 @@
rm -f core `find . -name '*.[oas]' ! -regex '.*lxdialog/.*' -print`
rm -f core `find . -type f -name 'core' -print`
rm -f core `find . -name '.*.flags' -print`
- rm -f core `find . -size 0`
rm -f vmlinux System.map
rm -f .tmp*
rm -f drivers/char/consolemap_deftbl.c drivers/char/conmakehash