Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wie erstellt man einen Patch?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Aug 03, 2008 9:26 am    Post subject: Wie erstellt man einen Patch? Reply with quote

Hallo Zusammen,

eigentlich steht ja schon alles im Titel. :lol:

Spass beiseite, mir geht es eigentlich darum:

Ich habe hier ein HowTo für den Einbau einer reel eHD gepostet, nun würde ich gerne ein install Script dazu basteln. Leider kenne ich mich mit der Erstellung von *.diff Files überhaut nicht aus.

Konkret stelle ich mir das so vor:

Ich nehme ein original file und erstelle einen Kopie davon cp file.foo file.foo.oirg
Dann modifiziere ich file.foo und vergleiche diese dann mit diff.

So, oder so ähnlich müsste das doch gehen, - oder?

Leider habe ich diesbezüglich noch keinen vernünftige Anleitung im Netz gefunden, auch man diff ist in diesem Fall nicht besonders hilfreich.

Währe echt toll, wenn mir einer von den Experten hier im Board einen Schupps in die richtige Richtung geben könnte.
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Sun Aug 03, 2008 9:28 am    Post subject: Reply with quote

Hi,

das sollte machen was du möchtest:

Code:

diff -u file1 file2 > patch.diff


MfG. Stefan
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Aug 03, 2008 9:45 am    Post subject: Reply with quote

Danke @ bbgermany,

für die schnelle Antwort.
Ich habe es mal an folgendem file getestet:

Quote:
Die /usr/local/src/VDR/osd.h anpassen

Code:
mcedit usr/local/src/VDR/osd.h


das zweite tArea vidWin; löschen. (Zeile 451]

Quote:
.....
///< Set the path of an image to be user later with DrawImage().
tArea vidWin;
#ifdef USE_PINPLUGIN
static bool pinValid;
#endif /* PINPLUGIN */
#ifdef USE_YAEPG
tArea vidWin; <-- Diese Zeile Löschen!
#endif /* YAEPG */
};
.....



Ein:
Code:
vdr02 ~ # cd /usr/local/src/vdr-1.7.0-hdtv
vdr02 vdr-1.7.0-hdtv # diff -u osd.h.orig osd.h > /tmp/osd.h.patch.diff
ergab folgendes:
Code:
--- osd.h.orig   2008-08-02 16:05:53.000000000 +0200
+++ osd.h   2008-08-02 16:05:36.000000000 +0200
@@ -448,7 +448,7 @@
   static bool pinValid;
 #endif /* PINPLUGIN */
 #ifdef USE_YAEPG
-  tArea vidWin;

 #endif /* YAEPG */
   };


Wenn ich das nun richtig verstanden habe, dann könnte ich das diff file nun auch direkt verwenden?

z.B. so:

Code:
patch -p1 < /tmp/osd.h.patch.diff
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Sun Aug 03, 2008 9:49 am    Post subject: Reply with quote

hi,

genau :)

MfG. Stefan
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Aug 03, 2008 10:06 am    Post subject: Reply with quote

bbgermany wrote:
hi,

genau :)

MfG. Stefan


1000 Dank nochmal, das habe ich schon lange gesucht. :D :D :D
Back to top
View user's profile Send private message
samsonus
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 225
Location: Siegen

PostPosted: Mon Aug 04, 2008 6:31 am    Post subject: Reply with quote

vielleicht hilft dir auch der
link hier.

gruss samsonus
Back to top
View user's profile Send private message
69719
l33t
l33t


Joined: 20 Sep 2004
Posts: 865

PostPosted: Mon Aug 04, 2008 7:28 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-696593-highlight-patch.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum