On Fri, 18 Nov 2005, Rob Landley wrote:

was going on.  (And #2 was the case: once I found out it was the 0 length
files, I could fix that.  I didn't expect 0 length files screwing up the
#include search paths.  The #include search paths are confusing, I'm still a
bit fuzzy on the difference between include and include2, actually...)

0-length files after patching is generally due to slightly incorrectly formatted patches, and can screw up a lot of things.

From the patch man page:

  you can remove a file by sending out a context diff that compares
  the file to be deleted with an empty file dated the Epoch.  The
  file will be removed unless patch is conforming to POSIX and the
  -E or --remove-empty-files option is not given.

A few other formats also works, but what is said above is the safest patch format for removal of files.

If you find patches which removes files using a format not complying with the above then it may be wise to ask the person who published the patch to change his routines to make correctly formatted patches. On the sad side there is a number of widespread tools not generating such patches correctly (CVS is one.. have a cleanpatch script at devel.squid-cache.org fixing this and a few other CVS diff -u stupidities)

Regarding the include path, Compliers, make etc just searches their paths until a file is found, no attempt in verifying the validity of the file is made. If the found file is empty then in the input at that stage is empty, and if the actual file which was supposed to be found is in a later element in the search path then you get screwed.

Regards
Henrik


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to