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.
Created attachment 70501 [details] dev-util/netbeans-bin/ChangeLog
Created attachment 70502 [details] dev-util/netbeans-bin/Manifest
Created attachment 70503 [details] dev-util/netbeans-bin/metadata.xml
Created attachment 70504 [details] dev-util/netbeans-bin/netbeans-bin-4.1.ebuild
Created attachment 70505 [details] dev-util/netbeans-bin/netbeans-bin-5.0_beta.ebuild
Created attachment 70506 [details] dev-util/netbeans-bin/files/digest-netbeans-bin-4.1
Created attachment 70507 [details] dev-util/netbeans-bin/files/digest-netbeans-bin-5.0_beta
Created attachment 70508 [details] dev-util/netbeans-bin/files/icon/netbeans-bin-4.1.desktop
Created attachment 70509 [details] dev-util/netbeans-bin/files/icon/netbeans-bin-5.0_beta.desktop
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
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.
As per the Gentoo Java policy, we are no longer supporting binary packages when possible. Closing the bug therefore.
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.
(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?
(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.
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.
Created attachment 77854 [details] dev-util/netbeans/files/5.0/startscript.sh
NetBeans 5.0 final is released http://www.netbeans.org/community/releases/50/index.html
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.
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 :)
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 on attachment 79567 [details] dev-util/netbeans/netbeans-5.0.ebuild Just a mod to 5.0_rc2 to handle 5.0 official release
Created attachment 81651 [details] Access violation log Got an access violation after netbeans-5.0 compiled, during install phase...
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
*** Bug 128941 has been marked as a duplicate of this bug. ***
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.
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.
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.
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.
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.
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
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.
*** Bug 153515 has been marked as a duplicate of this bug. ***
You can find netbeans 5.5 release ebuild in overlay: http://overlays.gentoo.org/proj/java/browser/migrated-java-experimental-overlay/dev-util/netbeans
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.