nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Problem mit diff und windows-patches

Von: Stephan Manske (usenet-reply@stephan.manske-net.de) [Profil]
Datum: 26.06.2007 14:15
Message-ID: <GgR+DMD530Daez3@stephan-uucp.manske-net.de>
Newsgroup: de.comp.gnu
[diff ist zwar gnu, mein patch weist aber nix dergleichen vor - wenn
ich hier also flasch sein sollte, so wäre ich über den Hinweis auf
eine passendere Gruppe dankbar.]


Hallo,

vielleicht weiß hier ja jemand einen Rat für mein Problem mit
diff/patch:


Für ein Blog-System erstelle ich unter Windows mit CSDiff diff-files
und lade die auf http://phpfi.com/ hoch.

Nun sagt der Maintainer, daß meine Diffs Probleme machen! :-(

| File to patch: functions_images.inc.php
| patching file functions_images.inc.php
| Hunk #1 FAILED at 1.
| 1 out of 11 hunks FAILED -- saving rejects to file functions_images.inc.php.rej


auf meinem Uni-Account hingegen gab es keine Probleme:


| (~/patch-dir/patch-test): wget
"http://svn.berlios.de/viewcvs/*checkout*/serendipity/trunk/include/functions_images.
inc.php"
| Warning: wildcards not supported in HTTP.
| 19:05:42 (519.17 KB/s) - `functions_images.inc.php' saved [123043]
|
| (~/patch-dir/patch-test): wget "http://phpfi.com/242534?download"
| --19:05:59--  http://phpfi.com/242534?download
|            => `242534?download'
| 19:05:59 (27.43 MB/s) - `242534?download' saved [2186/2186]
|
| (~/patch-dir/patch-test): patch functions_images.inc.php < 242534\?download
| (Stripping trailing CRs from patch.)
| patching file functions_images.inc.php


ich habe es dann noch auf einem andern unix-Account versucht, da
konnte ich die Probleme nachvollziehen:

| $ patch functions_images.inc.php < 242534\?download
| Hmm...  Looks like a normal diff to me...
| The text leading up to this was:
| --------------------------
| |File difference report generated by CSDiff by ComponentSoftware on 17.06.2007 16:25
| |
| |Base file: \s9y-diff\Alt\functions_images.inc.php
| |Compared file: \s9y-diff\neu\functions_images.inc.php
| |
| --------------------------
| Patching file functions_images.inc.php using Plan A...
| Hunk #1 failed at 1.
| Hunk #2 succeeded at 3106.
| Hunk #3 failed at 3122.
| Hunk #4 failed at 3153.
| Hunk #5 failed at 3155.
| Hunk #6 failed at 3169.
| Hunk #7 succeeded at 3198.
| Hunk #8 failed at 3209.
| Hunk #9 failed at 3220.
| Hunk #10 failed at 3231.
| Hunk #11 failed at 3240.
| 9 out of 11 hunks failed--saving rejects to functions_images.inc.php.rej
| Hmm...  Ignoring the trailing garbage.
| done

aber ein "dos2unix" des Patches bzw. das öffnen und speichern mit
pico ließ es dann aber auch dort funktionieren.


Leider half das aber nur bei mir:

| wget "http://phpfi.com/242534?download"
| dos2unix 242534\?download
| patch functions_images.inc.php < 242534\?download
|
| for me still results in:
|
| Code:
| Hunk #1 FAILED at 1.
| 1 out of 11 hunks FAILED -- saving rejects to file functions_images.inc.php.rej


alles komplett siehe
http://board.s9y.org/viewtopic.php?t™39&start0


Hat jemand eine Idee, was das sein könnte bzw. was man machen kann?





Ciao, Stephan

--
E-Mail: stephan@manske-net.de - WWW: http://stephan.manske-net.de/     //
PGP 2.6.3i \X/
Famous last words des
Putzfrau:             Ich putz nur noch eben das Balkongelaender..

[ Auf dieses Posting antworten ]

Antworten