]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/patcher/files/freebsd_gpatch.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / patcher / files / freebsd_gpatch.patch
1 On FreeBSD the default patch program has a different command line
2 interface than GNU patch. Make patcher use the GNU patch.
3
4
5 --- patcher/patcher.py.old      Mon Sep 13 21:59:05 2004
6 +++ patcher/patcher.py  Sun Jul 17 14:24:50 2005
7 @@ -631,8 +631,8 @@
8         my $res;
9  
10         # ... then we look if the patch would apply cleanly ...
11 -       print "DEBUG: patch --dry-run $opt\n" if $debug > 1;
12 -       $res = system("patch --dry-run $opt >$patchlog 2>/dev/null");
13 +       print "DEBUG: gpatch --dry-run $opt\n" if $debug > 1;
14 +       $res = system("gpatch --dry-run $opt >$patchlog 2>/dev/null");
15         if ($res != 0) {
16                 unless ($do_force) {
17                         unlink($patchlog);
18 @@ -669,8 +669,8 @@
19         # Finally we apply the patch. No need to create backup copies with -b,
20         # that has been done by PutIntoPatch()
21         $opt = "-f $opt" if $do_force;
22 -       print  "DEBUG: patch $opt\n" if $debug > 1;
23 -       $res = system("patch $opt >$patchlog");
24 +       print  "DEBUG: gpatch $opt\n" if $debug > 1;
25 +       $res = system("gpatch $opt >$patchlog");
26         unlink($patchlog);
27         $res = 0 if $do_force && $res == 256;
28         if ($res != 0) {