Bug 155725 - dev-java/swt-3.2.1 libswt-xpcomgcc4.patch fails to apply on amd64
Bug#: 155725 Product:  Gentoo Linux Version: 2006.1 Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: java@gentoo.org Reported By: richard.connon@gmail.com
Component: Ebuilds
URL: 
Summary: dev-java/swt-3.2.1 libswt-xpcomgcc4.patch fails to apply on amd64
Keywords:  
Status Whiteboard: 
Opened: 2006-11-19 14:46 0000
Description:   Opened: 2006-11-19 14:46 0000
patching swt fails with the following error:

 * Applying swt-3.2.1-libswt-xpcomgcc4.patch ...

 * Failed Patch: swt-3.2.1-libswt-xpcomgcc4.patch !
 *  ( /usr/portage/dev-java/swt/files/swt-3.2.1-libswt-xpcomgcc4.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *  
/var/tmp/portage/dev-java/swt-3.2.1/temp/swt-3.2.1-libswt-xpcomgcc4.patch-22703.out


!!! ERROR: dev-java/swt-3.2.1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  swt-3.2.1.ebuild, line 71:   Called epatch
'/usr/portage/dev-java/swt/files/swt-3.2.1-libswt-xpcomgcc4.patch'
  eutils.eclass, line 341:   Called die

!!! Failed Patch: swt-3.2.1-libswt-xpcomgcc4.patch!
!!! If you need support, post the topmost build error, and the call stack if
relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH=""
JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

------- Comment #1 From Richard Connon 2006-11-19 14:47:15 0000 -------
Created an attachment (id=102359) [details]
emerge --info

------- Comment #2 From Paul Taylor 2006-11-19 15:31:57 0000 -------
Created an attachment (id=102363) [details]
Failed patch output

I get the same error; here's my failed patch output (missing from the original
bug report.)

------- Comment #3 From Vlastimil Babka (Caster) 2006-11-19 16:56:44 0000 -------
Must be amd64 specific, can't reproduce on x86 and amd64 has different
distfile.

------- Comment #4 From Vlastimil Babka (Caster) 2006-11-19 17:08:11 0000 -------
As a quick workaround, the patch is now applied only on x86. Leaving the bug
open for Frederico or somebody with amd64 to take a look at porting the patch
there.

------- Comment #5 From Jorge Manuel B. S. Vicetto 2006-11-19 20:47:10 0000 -------
Created an attachment (id=102371) [details]
modified swt-3.2.1-libswt-xpcomgcc4.patch file

Updated patch file to fit the amd64 swt package.

------- Comment #6 From Jorge Manuel B. S. Vicetto 2006-11-19 20:50:53 0000 -------
Created an attachment (id=102372) [details]
modified swt-3.2.1-firefox.patch file

Updated patch file to fit the amd64 swt package.

------- Comment #7 From Jorge Manuel B. S. Vicetto 2006-11-19 20:53:38 0000 -------
I was able to patch the swt package and to complete the ebuild install process
with the modified patch files posted as comments #5 and #6.
I don't know enough of the swt library to know if it will work with these
patches or not.

------- Comment #8 From ron widler 2006-11-30 13:29:21 0000 -------
hi!
compiles and installs fine on my ~amd64
regards
ron

------- Comment #9 From Vlastimil Babka (Caster) 2006-11-30 16:43:53 0000 -------
The patches are now applied, thanks.
Now we need to adjust them for ppc too...

------- Comment #10 From Vlastimil Babka (Caster) 2006-12-06 04:02:32 0000 -------
*** Bug 156716 has been marked as a duplicate of this bug. ***

------- Comment #11 From Vlastimil Babka (Caster) 2006-12-06 04:07:03 0000 -------
David, can you check that the patches 30_x86_libswt-xpcomgcc4.patch,
31_x86_firefox.patch and 40_x86_cairo-signedness.patch fix the
build_with_seamonkey issue on ppc? They are located in
$PORTDIR/dev-java/swt/files/patches-3.2.1. Copy them so that x86 is replaced
with ppc in the filenames, redigest and try emerging. You should see the einfo
about them being applied, and see if the building was successful.

------- Comment #12 From David Gurvich 2006-12-06 06:57:43 0000 -------
Changing patches from x86 to ppc applies successfully and builds with no
trouble.

------- Comment #13 From Vlastimil Babka (Caster) 2006-12-06 13:23:25 0000 -------
Thanks for the testing. Just commited it to CVS. All arches are now taken care
of.