makedepend assumes that the source file has a one character suffix, for example '.c'. This enhancement instead assumes that the suffix is everything after the last '.' in the source file name. This allows files to have a suffix such as '.cpp'. Here is a patch that works against XFree86-4.0.1-1 and XFree86-4.0.2-1. I apply this patch to XFree86-4.0.2-1 as 'Patch20' with '%patch20 -p1 -b .makedepend'. *** XFree86-4.0/xc/config/util/mdepend.cpp.orig Mon Apr 17 09:27:09 2000 --- XFree86-4.0/xc/config/util/mdepend.cpp Mon Apr 17 12:11:17 2000 *************** *** 174,180 **** { ! ofile = substr ($1, 1, length ($1) - 2) "'"$objsuffix"'" print ofile, $4 } }' | sort -u | awk ' --- 174,185 ---- { ! ofile = ""; ! na = split($1, a, "."); ! ofile = a[1]; ! for (i=2; i<na; i++) ! ofile = ofile "." a[i]; ! ofile = ofile "'"$objsuffix"'" print ofile, $4 } }' | sort -u | awk '
Created attachment 8070 [details] Patch applied with '%patch20 -p1 -b .makedepend' in XFree86.spec
Deferring for future consideration.
We do not ship this script anymore.