Hello!

* Matthew Dempsky on Fri, May 04, 2012 at 02:57:22PM -0700:
> Please let me know if you find anything that doesn't work correctly.

I've just tried building it and actually get a long way towards the end,
but not quite.

> Attached is a port for Eclipse SDK 4.1.2.  I've only tested it on
> amd64, but it should (might?) work on i386 too. 

I've stumbled over some things along the way:

You have missed a build dependency on 'archivers/unzip'.

Also, the makefile for the native libraries (the make_openbsd.mak) makes
problems and fails to get the libxul libraries correctly.

If I substitute line 96 onward:
| MOZILLA_INCLUDES = `pkg-config --cflags libxul19`
| MOZILLA_LIBS = `pkg-config --libs libxul19`
| 
| XULRUNNER_INCLUDES = `pkg-config --cflags libxul19-embedding nspr`
| XULRUNNER_LIBS = `pkg-config --libs libxul19-embedding`

with:
| MOZILLA_INCLUDES = `pkg-config --cflags libxul`
| MOZILLA_LIBS = `pkg-config --libs libxul`
| 
| XULRUNNER_INCLUDES = `pkg-config --cflags libxul-embedding nspr`
| XULRUNNER_LIBS = `pkg-config --libs libxul-embedding`

Then everything at least builds fine.



However, even if everything seems to build, it still fails at the end
when trying to install it. It seems as if there is some JAR file
missing, but I don't understand the build process well enough to guess
what might be failing here. I've unpacked all the distfiles to see
whether there's just some problem in picking the JAR up, but it isn't
there anywhere in the ports directory.

See the log snippet below.
If needed, I can also provide a full log.

| ===>  Looking for eclipse4-sdk-4.1.2.tgz in $PKG_PATH - not found
| *** Error code 1
| 
| Stop in /usr/ports/devel/eclipse4/sdk (line 1663 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
| ===>  Faking installation for eclipse4-sdk-4.1.2
| rm -rf /usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local/eclipse4
| tar -zxf /usr/ports/distfiles/eclipse-SDK-4.1.2-linux-gtk.tar.gz -C 
/usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local
| mv /usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local/eclipse 
/usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local/eclipse4
| rm 
/usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local/eclipse4/libcairo-swt.so
| cp 
/usr/ports/pobj/eclipse4-sdk-4.1.2/natives/launcher/bundles/org.eclipse.equinox.executable/library/gtk/eclipse
  /usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local/eclipse4/eclipse
| cp 
/usr/ports/pobj/eclipse4-sdk-4.1.2/natives/launcher/bundles/org.eclipse.equinox.executable/library/gtk/eclipse_1503.so
  
/usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local/eclipse4/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505/eclipse_1407.so
| /usr/local/jdk-1.7.0/bin/jar -uf 
/usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local/eclipse4/plugins/org.eclipse.core.net.linux.x86_1.1.0.I20110331-0827.jar
  -C 
/usr/ports/pobj/eclipse4-sdk-4.1.2/natives/libgnomeproxy/bundles/org.eclipse.core.net/natives/unix/openbsd
 libgnomeproxy-1.0.0.so
| java.io.FileNotFoundException: 
/usr/ports/pobj/eclipse4-sdk-4.1.2/fake-i386/usr/local/eclipse4/plugins/org.eclipse.core.net.linux.x86_1.1.0.I20110331-0827.jar
 (No such file or directory)
|       at java.io.FileInputStream.open(Native Method)
|       at java.io.FileInputStream.<init>(FileInputStream.java:138)
|       at sun.tools.jar.Main.run(Main.java:214)
|       at sun.tools.jar.Main.main(Main.java:1212)
| *** Error code 1
| 
| Stop in /usr/ports/devel/eclipse4/sdk (line 122 of Makefile).
| *** Error code 1
| 
| Stop in /usr/ports/devel/eclipse4/sdk (line 2512 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
| *** Error code 1
| 
| Stop in /usr/ports/devel/eclipse4/sdk (line 1671 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
| *** Error code 1
| 
| Stop in /usr/ports/devel/eclipse4/sdk (line 1671 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
| *** Error code 1
| 
| Stop in /usr/ports/devel/eclipse4/sdk (line 2214 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
| *** Error code 1
| 
| Stop in /usr/ports/devel/eclipse4/sdk (line 1689 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
| *** Error code 1
| 
| Stop in /usr/ports/devel/eclipse4/sdk (line 2197 of 
/usr/ports/infrastructure/mk/bsd.port.mk).


One last thing:

> For the time being, there's no upstream for the "eclipse-natives"
> distfile, so just add the attached copy directly to your distfiles
> directory.

Since I didn't really know where this 'eclipse-natives' file is supposed
to go I have put it onto my local mirror:
-> http://mirror.aleturo.com/pub/OpenBSD/distfiles/

Maybe it's useful for someone...


Thanks in the meantime for your effort. :o)
    s//un

-- 
Diplomacy is being able to tell people to go to hell in such a way that
they actually look forward to the trip.

Attachment: pgpnM98pXPCKf.pgp
Description: PGP signature

Reply via email to