On Fri, Sep 07, 2007 at 12:28:45AM +1000, Darren Freeman wrote: > I have been getting away with "patch <file.diff" and entering the > filenames manually. However in that one case, it decided to use the > Makefile.am in a higher directory than the one it should have, hence not > finding the section to modify.
That's error prone. You have to look at the paths in the patch file and count how many path elements must be elided (number of slashes /) such that the file can be accessed from your current dir. Then, you should specify this number using the -p option. Most patches you find on this list should be applied using -p0, so the command should be patch -p0 < file.diff You can later revert the patch by patch -R -p0 < file.diff > See below, but it failed again. Please, post the result of the following command grep -A10 fontconfig <builddir>/config.log where you should replace <builddir> with the directory from where you launched the configure command. -- Enrico