How to create a .patch file?

Möglichkeit 1)

diff -Pdpru Original-Path\ Geänderter-PATH\ > foobar.patch

Dann in spec:

Patch0: foobar.patch

und unter %prep nach %setup

%patch0 -p1 einfügen.

 

Möglichkeit 2):

-⁠ Make  a copy of the file to patch
cp file file.orig

-⁠ Modify the file
vim/⁠nano/⁠... file

-⁠ Create the patch with diff
diff -⁠u file.orig filetopach  > file.patch

und dann auch in spec einfügen.

 

Möglichkeit 3):

Or just let the files be managed by a half-SCM GUILT:   
http://users.suse.com/~agruen/quilt.pdf
http://hans.fugal.net/quilt.pdf
http://www.shakthimaan.com/downloads/glv/quilt-tutorial/quilt-doc.pdf
https://wiki.debian.org/UsingQuilt
https://wiki.openwrt.org/doc/devel/patches

Quick-Tutorial with OBS:
http://nordisch.org/2009/3/20/quilt-a-really-quick-howto

 

 

Bewertung der FAQ

0 (0 Abstimmungen)

Tags