Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 109068

Summary: Request for Netbeans 5.0 ebuild.
Product: Gentoo Linux Reporter: Alexander J Lee <zander>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: enhancement CC: abraham, andre.hinrichs, correo, cvig, eikke, john.mcfarlane, ngk, paulmedic555, rusxakep, sven, wolf31o2
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-util/netbeans-bin/ChangeLog
dev-util/netbeans-bin/Manifest
dev-util/netbeans-bin/metadata.xml
dev-util/netbeans-bin/netbeans-bin-4.1.ebuild
dev-util/netbeans-bin/netbeans-bin-5.0_beta.ebuild
dev-util/netbeans-bin/files/digest-netbeans-bin-4.1
dev-util/netbeans-bin/files/digest-netbeans-bin-5.0_beta
dev-util/netbeans-bin/files/icon/netbeans-bin-4.1.desktop
dev-util/netbeans-bin/files/icon/netbeans-bin-5.0_beta.desktop
dev-utils/netbeans/netbeans-5.0_rc2.ebuild
dev-util/netbeans/files/5.0/startscript.sh
ebuild for netbeans-bin-5.0
dev-util/netbeans/netbeans-5.0.ebuild
Access violation log
dev-util/netbeans-bin/netbeans-bin-5.0.ebuild
dev-util/netbeans-bin/files/digest-netbeans-bin-5.0

Description Alexander J Lee 2005-10-12 16:15:14 UTC
Since the arrival of Java 1.5, many libraries still cannot compile with it and
Java-related stuff got somewhat messy in Gentoo. Therefore, I'd like to propose
a simple netbeans-bin ebuild that gets NetBeans to "just work". This submission
contains the ebuilds for the latest 4.1 production version and the 5.0 beta.
It's a great improvement over the official dev-util/netbeans, since it seems to
be stuck at version 4.0. It has some limitations, however (doesn't recognize an
existing Tomcat 5 or ant, for instance), but it, again, "just works".

Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS=~x86 emerge netbeans-bin
2.
3.

Actual Results:  
netbeans is installed.
Comment 1 Alexander J Lee 2005-10-12 16:17:55 UTC
Created attachment 70501 [details]
dev-util/netbeans-bin/ChangeLog
Comment 2 Alexander J Lee 2005-10-12 16:18:30 UTC
Created attachment 70502 [details]
dev-util/netbeans-bin/Manifest
Comment 3 Alexander J Lee 2005-10-12 16:19:01 UTC
Created attachment 70503 [details]
dev-util/netbeans-bin/metadata.xml
Comment 4 Alexander J Lee 2005-10-12 16:19:33 UTC
Created attachment 70504 [details]
dev-util/netbeans-bin/netbeans-bin-4.1.ebuild
Comment 5 Alexander J Lee 2005-10-12 16:19:57 UTC
Created attachment 70505 [details]
dev-util/netbeans-bin/netbeans-bin-5.0_beta.ebuild
Comment 6 Alexander J Lee 2005-10-12 16:20:49 UTC
Created attachment 70506 [details]
dev-util/netbeans-bin/files/digest-netbeans-bin-4.1
Comment 7 Alexander J Lee 2005-10-12 16:21:05 UTC
Created attachment 70507 [details]
dev-util/netbeans-bin/files/digest-netbeans-bin-5.0_beta
Comment 8 Alexander J Lee 2005-10-12 16:21:23 UTC
Created attachment 70508 [details]
dev-util/netbeans-bin/files/icon/netbeans-bin-4.1.desktop
Comment 9 Alexander J Lee 2005-10-12 16:21:40 UTC
Created attachment 70509 [details]
dev-util/netbeans-bin/files/icon/netbeans-bin-5.0_beta.desktop
Comment 10 Petteri Räty (RETIRED) gentoo-dev 2005-10-13 00:18:51 UTC
I will not be adding binary ebuilds to the tree as it is possible to compile
Netbeans from source, but thanks for the contribution. Hopefully people will
find your ebuilds here useful. There is already a bug for Netbeans 4.1 (#94190).
I apologize that I haven't given as much time for Netbeans lately as I should have.
You can find a working Netbeans 4.1 ebuild in our experimental tree:
http://gentoo-wiki.com/Experimental_Java_tree
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2005-10-13 00:24:42 UTC
In the future you do not need to attach ChangeLogs and Manifests. Those are
taken care of by the developers. Attaching .desktop entries is also useless
because they should be installed using make_desktop_entry from eutils.eclass.
Hopefully helps to improve your skills in the future.
Comment 12 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-10-13 15:25:57 UTC
As per the Gentoo Java policy, we are no longer supporting binary packages when
possible. Closing the bug therefore.
Comment 13 Petteri Räty (RETIRED) gentoo-dev 2005-10-13 23:33:16 UTC
I would like to keep this open as the request for Netbeans 5.0 bug because
people will want that and that bug is bound to come some day. We might as well
have unsupported binary ebuilds attached to the bug too, but of course I will
not support them in any way.
Comment 14 Abraham Marin Perez 2005-12-17 13:19:17 UTC
(In reply to comment #10)
> I will not be adding binary ebuilds to the tree as it is possible to compile
> Netbeans from source, but thanks for the contribution. Hopefully people will
> find your ebuilds here useful. There is already a bug for Netbeans 4.1 (#94190).
> I apologize that I haven't given as much time for Netbeans lately as I should have.
> You can find a working Netbeans 4.1 ebuild in our experimental tree:
> http://gentoo-wiki.com/Experimental_Java_tree

It is not my intention to contradict you, I guess you have very good reasons to apply this policy, but the thing is that there are other cases in Portage of packages having both binary and source versions. OpenOffice.org, various Mozilla  programs or java virtual machines can be obtained in their binary form although they can be compiled from source so, why not Netbeans?
Comment 15 Petteri Räty (RETIRED) gentoo-dev 2005-12-17 15:43:06 UTC
(In reply to comment #14)
> 
> It is not my intention to contradict you, I guess you have very good reasons to
> apply this policy, but the thing is that there are other cases in Portage of
> packages having both binary and source versions. OpenOffice.org, various
> Mozilla  programs or java virtual machines can be obtained in their binary form
> although they can be compiled from source so, why not Netbeans?
> 

Yes, there are these cases, but both of them take a very long time to compile. Netbeans does not take hours like OO. Also almost every upstream of the java packages does binary releases so if we do Netbeans why not Eclipse and so on. The java team is also understaffed so I really don't want to add extra maintenance. I might add netbeans-bin to experimental java overlay but let's see.
Comment 16 Tobias Minich 2006-01-22 12:08:21 UTC
Created attachment 77853 [details]
dev-utils/netbeans/netbeans-5.0_rc2.ebuild

Really quick'n'dirty ebuild for 5.0rc2. Couple of uncritical errors during install. Might also lack a dependency for ant-contrib.
Comment 17 Tobias Minich 2006-01-22 12:09:04 UTC
Created attachment 77854 [details]
dev-util/netbeans/files/5.0/startscript.sh
Comment 18 Nicolai Guido Klausen 2006-02-02 06:31:29 UTC
NetBeans 5.0 final is released

http://www.netbeans.org/community/releases/50/index.html
Comment 19 Matthias Langer 2006-02-07 05:26:52 UTC
Created attachment 79113 [details]
ebuild for netbeans-bin-5.0

updated the bata version to work with netbeans-5.0. Seems to work at least for me.
Comment 20 Daniel Drake (RETIRED) gentoo-dev 2006-02-09 11:35:46 UTC
Roman Strobl at Sun has offered to place a link on the netbeans website saying that Gentoo provides netbeans 5.0 in our package tree when this gets into portage. Java people: if you'd like to see that happen, please mail roman.strobl at sun.com when this happens :)
Comment 21 Chester Chee 2006-02-12 06:28:18 UTC
Created attachment 79567 [details]
dev-util/netbeans/netbeans-5.0.ebuild

This is a mod from 5.0_rc2 and added an addition lines to create the needed symbolic link to /usr/bin for official release 5.0

I have tested the installation and it works fine.
Running the app after install is also working.
Comment 22 Chester Chee 2006-02-12 06:30:09 UTC
Comment on attachment 79567 [details]
dev-util/netbeans/netbeans-5.0.ebuild

Just a mod to 5.0_rc2 to handle 5.0 official release
Comment 23 Ikke 2006-03-07 15:35:31 UTC
Created attachment 81651 [details]
Access violation log

Got an access violation after netbeans-5.0 compiled, during install phase...
Comment 24 Andre Hinrichs 2006-03-25 09:19:15 UTC
Confirmed. Same access violation here.
Fortunately, there is a binary release, which works.

Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15.1 i686)
=================================================================
System uname: 2.6.15.1 i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -mfpmath=sse -mmmx -msse -maccumulate-outgoing-args -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -mfpmath=sse -mmmx -msse -maccumulate-outgoing-args -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.du.se/pub/os/gentoo"
LINGUAS="de en jp"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X a52 aac accessibility acl alsa apache2 arts artswrappersuid audiofile avi berkdb bidi big-tables binfilter bitmap-fonts browserplugin bzip2 cairo cdda cdparanoia cdr chroot cli corba crypt ctype cups curl daap dba dri dts dv dvb dvd dvdread eds emacs emboss encode examples exif expat fam fame fastbuild ffmpeg firefox flac flash font-server foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp glut gmp gnome gnutls gpm gs gstreamer gtk gtk2 guile hpn idn ieee1394 imagemagick imap imlib java jbig jpeg junit kde kdeenablefinal kerberos lcms ldap leim libg++ libwww live lua lzo mad mailwrapper matroska memlimit mhash mikmod ming mjpeg mmx mng motif mozdevelop mozilla moznocompose moznoirc moznomail mp3 mpeg mysql ncurses network nls nptl nsplugin objc ogg openal openexr opengl pam pcmcia pcre pdf pdflib perl php png posix povray ppds profile python qt quicktime readline real recode rle rtc ruby samba sasl scanner session simplexml slp sndfile soap sockets speex spell spl sse ssl stream subversion svg svga tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb utf8 v4l v4l2 vcd vlm vorbis win32codecs wmf wxwindows xanim xml xml2 xmms xosd xscreensaver xsl xv xvid yv12 zlib linguas_de linguas_en linguas_jp userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2006-04-05 11:09:30 UTC
*** Bug 128941 has been marked as a duplicate of this bug. ***
Comment 26 Chris Gianelloni (RETIRED) gentoo-dev 2006-04-12 08:20:29 UTC
I had it die on me while trying to build (using the latest ebuild above):

jar-prep:

jar:
[jarwithmoduleattributes] Building jar: /var/tmp/portage/netbeans-5.0/work/netbeans-src/nbbuild/netbeans/ide6/modules/org-apache-tools-ant-module.jar
  [nbmerge] Failed to build target: all-ant
java.lang.NoClassDefFoundError: org/apache/tools/ant/util/DateUtils
        at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:276)        at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:156)
        at org.apache.tools.ant.Project.fireBuildFinished(Project.java:1848)
        at org.apache.tools.ant.Main.runBuild(Main.java:688)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
org/apache/tools/ant/util/DateUtils

!!! ERROR: dev-util/netbeans-5.0 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  netbeans-5.0.ebuild, line 254:   Called die

!!! Compiling failed!
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 27 Alexander J Lee 2006-05-02 18:51:13 UTC
Created attachment 86037 [details]
dev-util/netbeans-bin/netbeans-bin-5.0.ebuild

The ebuild for the NetBeans IDE 5.0, binary .tar.bz2 package.
Comment 28 Alexander J Lee 2006-05-02 18:54:31 UTC
Created attachment 86038 [details]
dev-util/netbeans-bin/files/digest-netbeans-bin-5.0

This digest file goes with the attachment (id=86037), from Comment #27. It's a NetBeans IDE binary .tar.bz2 package.
Comment 29 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-30 14:09:17 UTC
By the way, my friend (the Java developer that actually uses this stuff) has been using the netbeans-bin with a slightly modified version of the netbeans-bin beta (I made it work with the non-beta by changing tarball info) ebuild posted here.  Anyway, the modifications shouldn't matter much.  Perhaps we could get a netbeans-bin version in the tree?  I'm willing to offer up any help that I can give with my very limited Java experience.
Comment 30 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-05-30 14:22:42 UTC
We are trying to keep bin packages out of portage as much as possible. More so when a bin file can easily be downloaded, installed to any location. Not to mention removed all with bundled installer/uninstaller.

Now beyond that work has been done to get netbeans to compile from source. At one point 4.x versions did. Not sure about them currently. I started a bit of work on 5.0 ebuild after someone else in java experimental. I recently created a 5.5 beta ebuild that lives in migration-packages overlay. It does actually compile, install, and run. A few issues to be resolved still. The major one being that the IDE is pretty much unusable. Allot of missing modules, features etc. So along way to go still before the ebuild from source is the basic equivalent of the bin release versions.

I don't have allot of time to devote to this, but do use Netbeans pretty much daily, most all day long. At some point I will work on it some more to figure out what's missing. Or screwed up with compile, install etc. To get all of the fuctionality working. However Netbeans has a ton of deps. With regard to 5.5 allot have not been released. So likely to be many more versions of this ebuild. I doubt I will focus or work with ebuilds for older versions at all.
Comment 31 Sven Wehner 2006-09-22 01:56:59 UTC
Hi,

does anybody work on netbeans?
The -bin.ebuilds are not working anymore and the src-version hadn't change for a long time...

Sven 'Swoon' Wehner
Comment 32 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-09-22 06:47:08 UTC
There is not package maintainer for Netbeans. I have started working on one for Netbeans 5.5 beta. I have not updated it for beta 2 and just the other day had to recreate some missing stuff for that ebuild. I might become the maintainer just lack time right now.

All my focus will be toward furture Netbeans versions. I do not think I will spend much time if any with < 5.5. The 5.5 beta ebuild is in the java migration overlay.
Comment 33 Jakub Moc (RETIRED) gentoo-dev 2006-10-30 23:10:40 UTC
*** Bug 153515 has been marked as a duplicate of this bug. ***
Comment 34 Miroslav Šulc gentoo-dev 2006-10-31 00:22:36 UTC
You can find netbeans 5.5 release ebuild in overlay: http://overlays.gentoo.org/proj/java/browser/migrated-java-experimental-overlay/dev-util/netbeans
Comment 35 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-11-04 09:52:47 UTC
Netbeans 5.5 has been committed to tree. Since this is the current version of Netbeans. Work will not be done on older versions. There is already a pre-alpha 6.0 ebuild in java-migration-overlay that fordfrog has re-bumped from 5.0, and addressed the new deps and etc. Closing this bug.