On Thu, 7 Dec 2000, Chad W. Skinner wrote:
> I am trying to make a SPEC file, but need to patch the source files before
> building the RPM. I have unpacked the source files into two folders package
> and package.orig. I ran diff -ruHp (orig source dir) (modified source dir) >
> patch.file to make the patch. Then I copied the patch file to the SOURCES
> folder.
>
> In my spec file I have the %setup command and then %patch -p0 -b .orig, but
> when I try to build the package the system always asks what file I am trying
> to patch. Does anyone have any idea what I am missing.
>
> I don't know if this will help and I can not get to the file at the moment,
> but my patch starts with two lines similar to the following:
>
> --- jabber-1.2.orig/configure <dates>
> +++ jabber-1.2/configure <dates>
>
> I thought this would tell RPM what files to patch, but I must have missed
> something.
>
> Thanks,
> Chad
>
>
You need to use -p1, not -p0. This will remove the jabber-1.2.orig from
the file names in your diff file. man patch for more information.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list