> patch -p1 -i khtml-fsdg.patch
[...]
> After changing the name of the command and issuing it in the directory
> kde4libs-whatever-version/khtml/html, the output is always this,
> whether on Brigantia or Toutatis:
>
> ----------------------------------
> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -ru kdelibs-4.8.0.orig/khtml/html/html_objectimpl.cpp
> kdelibs-4.8.0/khtml/html/html_objectimpl.cpp
> |--- kdelibs-4.8.0.orig/khtml/html/html_objectimpl.cpp  2012-01-30
> 19:46:27.684114289 +0100
> |+++ kdelibs-4.8.0/khtml/html/html_objectimpl.cpp       2012-01-30
> 19:47:47.222111046 +0100

The -p1 option tells patch to ignore the first component of the file
name, so it will look for khtml/html/html_objectimpl.cpp in the current
directory.  The solution is to run it in the kde4libs-whatever-version
directory.  (Patches can change multiple files, it's simpler to apply
all from the main package source directory.)

Attachment: pgpow1bmaGGVW.pgp
Description: PGP signature

Reply via email to