Mailinglist Archive: opensuse-factory (507 mails)

< Previous Next >
Re: [opensuse-factory] status distribution
  • From: Dave Plater <dave.plater@xxxxxxxxxxx>
  • Date: Fri, 17 Jul 2009 10:58:18 +0200
  • Message-id: <4A603D2A.6010908@xxxxxxxxxxx>
Dominique Leuenberger wrote:
On 7/17/2009 at 10:03, Dave Plater <dave.plater@xxxxxxxxxxx> wrote:

Hi, where can I find info on creating patch files for use with osc?


Dave,

It's the typical patch files created using diff and applied using patch.
What I normally do:

tar xf foo-1.0.tar.bz2 (extracts in the folder foo-1.0)
cp -r foo-1.0 foo-1.0.patched

change all the things needed for my patch in foo-1.0.patched

then
diff -urN foo-1.0 foo-1.0.patched > foo-1.0.patch

The so created patch can be used in a spec file with
%patch -p1

hope this helps you a bit.
Dominique




Thanks Dominique, I had everything right except for the u and N in diff
-urN, I will scour the man page for a better explanation of those
options but the format matches other patch files now.
Thanks
Dave P
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >