Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159600 - javatoolkit-0.2.0-r1 patch fails
Summary: javatoolkit-0.2.0-r1 patch fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-31 15:31 UTC by Wilbur Pan
Modified: 2006-12-31 17:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wilbur Pan 2006-12-31 15:31:38 UTC
When trying to upgrade to javatoolkit-0.2.0-r1, the patching fails.

Here's the output from the patch attempt:

>>> Unpacking javatoolkit-0.2.0.tar.bz2 to /var/tmp/portage/dev-java/javatoolkit-0.2.0-r1/work
 * Applying 0.2.0-use-sax.patch ...

 * Failed Patch: 0.2.0-use-sax.patch !
 *  ( /usr/portage/dev-java/javatoolkit/files/0.2.0-use-sax.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/dev-java/javatoolkit-0.2.0-r1/temp/0.2.0-use-sax.patch-20685.out


!!! ERROR: dev-java/javatoolkit-0.2.0-r1 failed.
Call stack:
  ebuild.sh, line 1593:   Called dyn_unpack
  ebuild.sh, line 731:   Called src_unpack
  javatoolkit-0.2.0-r1.ebuild, line 22:   Called epatch '/usr/portage/dev-java/javatoolkit/files/0.2.0-use-sax.patch'
  eutils.eclass, line 341:   Called die

!!! Failed Patch: 0.2.0-use-sax.patch!
!!! If you need support, post the topmost build error, and the call stack if relevant

# cat /var/tmp/portage/dev-java/javatoolkit-0.2.0-r1/temp/0.2.0-use-sax.patch-20685.out
***** 0.2.0-use-sax.patch *****

===============================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-java/javatoolkit/files/0.2.0-use-sax.patch

===============================
patching file src/bsfix/xml-rewrite-2.py
Hunk #1 FAILED at 3.
Hunk #2 succeeded at 28 with fuzz 1.
1 out of 6 hunks FAILED -- saving rejects to file src/bsfix/xml-rewrite-2.py.rej
===============================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-java/javatoolkit/files/0.2.0-use-sax.patch

===============================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/bsfix/xml-rewrite-2.py
|===================================================================
|--- src/bsfix/xml-rewrite-2.py (revision 3421)
|+++ src/bsfix/xml-rewrite-2.py (revision 3432)
--------------------------
No file to patch.  Skipping patch.
6 out of 6 hunks ignored
===============================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-java/javatoolkit/files/0.2.0-use-sax.patch

===============================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/bsfix/xml-rewrite-2.py
|===================================================================
|--- src/bsfix/xml-rewrite-2.py (revision 3421)
|+++ src/bsfix/xml-rewrite-2.py (revision 3432)
--------------------------
No file to patch.  Skipping patch.
6 out of 6 hunks ignored
===============================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-java/javatoolkit/files/0.2.0-use-sax.patch

===============================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/bsfix/xml-rewrite-2.py
|===================================================================
|--- src/bsfix/xml-rewrite-2.py (revision 3421)
|+++ src/bsfix/xml-rewrite-2.py (revision 3432)
--------------------------
No file to patch.  Skipping patch.
6 out of 6 hunks ignored
===============================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-java/javatoolkit/files/0.2.0-use-sax.patch

===============================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/bsfix/xml-rewrite-2.py
|===================================================================
|--- src/bsfix/xml-rewrite-2.py (revision 3421)
|+++ src/bsfix/xml-rewrite-2.py (revision 3432)
--------------------------
No file to patch.  Skipping patch.
6 out of 6 hunks ignored
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-12-31 17:50:20 UTC
Fixed in CVS. The patch was ok until mangled by CVS because it contained $Header: and $Version: fields, which were rewritten. I've readded the patch with some cvs -ko magic that suppresses this.