Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94190 - netbeans-4.1.ebuild (Update)
Summary: netbeans-4.1.ebuild (Update)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Development Tools Team
URL:
Whiteboard:
Keywords:
: 93025 (view as bug list)
Depends on: 75224 79816
Blocks:
  Show dependency tree
 
Reported: 2005-05-27 08:22 UTC by Nicolas Boichat
Modified: 2006-11-04 11:34 UTC (History)
7 users (show)

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


Attachments
netbeans-4.1.ebuild (netbeans-4.1.ebuild,10.68 KB, text/plain)
2005-05-27 08:25 UTC, Nicolas Boichat
Details
files/antbuild-4.1.xml.patch (antbuild-4.1.xml.patch,1.29 KB, patch)
2005-05-27 08:26 UTC, Nicolas Boichat
Details | Diff
files/startscript-4.1.sh (startscript-4.1.sh,410 bytes, patch)
2005-05-27 08:28 UTC, Nicolas Boichat
Details | Diff
Netbeans 4.1 Ebuild w/ Bundled Jars (netbeans-4.1.ebuild,2.47 KB, text/plain)
2005-06-04 07:14 UTC, Danny Brain
Details
NetBeans Profiler Milestone 7 (v2) (netbeans-profiler-0.7.ebuild,1.20 KB, text/plain)
2005-07-21 08:09 UTC, Sven Wehner
Details
NetBeans Mobility Pack (netbeans-mobility-4.1.ebuild,1.44 KB, text/plain)
2005-07-21 08:11 UTC, Sven Wehner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Boichat 2005-05-27 08:22:43 UTC
Here is an ebuild for NetBeans 4.1, I had to modify several things in comparison with netbeans-4.0.ebuild :

- BASELOCATION changed.
- Add "-Xmx1g" to ANT_OPTS (otherwise ant failed to build netbeans with an OutOfMemoryError)
- Some directories were renamed in NetBeans 4.1 (ide4 -> ide5, platform4 -> platform5).
Comment 1 Nicolas Boichat 2005-05-27 08:25:04 UTC
Created attachment 59953 [details]
netbeans-4.1.ebuild

FYI, diff against 4.0 :
--- /usr/portage/dev-util/netbeans/netbeans-4.0.ebuild	2005-05-24
08:35:33.000000000 +0200
+++ netbeans-4.1.ebuild 2005-05-27 17:18:53.000000000 +0200
@@ -38 +38 @@
-BASELOCATION="http://www.netbeans.org/download/${MY_PV}/fcs/200412081800/d5a0f13566068cb86e33a46ea130b207"

+BASELOCATION="http://www.netbeans.org/download/${MY_PV}/fcs/200505031930/66083d474e5fdfc80a1443fb851bd9d5"

@@ -48 +48 @@
-SLOT="4.0"
+SLOT="4.1"
@@ -123 +123 @@
-	epatch ${FILESDIR}/antbuild.xml.patch
+	epatch ${FILESDIR}/antbuild-4.1.xml.patch
@@ -211,2 +211,5 @@
-	# Sun JDK doesnt like that very much, so lets pleasure them too ;-)
-	export ANT_OPTS="${ANT_OPTS} -Djava.awt.headless=true"
+	# -Xmx1g: Increase Java maximum heap size, otherwise ant will die with
+	#	  an OutOfMemoryError while building.
+	# -Djava.awt.headless=true: Sun JDK doesnt like that very much, so
+	#			    lets pleasure them too ;-)
+	export ANT_OPTS="${ANT_OPTS} -Xmx1g -Djava.awt.headless=true"
@@ -230 +233 @@
-	cd ${BUILDDESTINATION}/ide4/docs
+	cd ${BUILDDESTINATION}/ide5/docs
@@ -239 +242 @@
-	cd ${BUILDDESTINATION}/ide4/ant
+	cd ${BUILDDESTINATION}/ide5/ant
@@ -257 +260 @@
-		   ${DESTINATION}/platform4/lib/nbexec
+		   ${DESTINATION}/platform5/lib/nbexec
@@ -260 +263 @@
-	newbin ${FILESDIR}/startscript.sh netbeans-${SLOT}
+	newbin ${FILESDIR}/startscript-4.1.sh netbeans-${SLOT}
@@ -263 +266 @@
-	local ANTDIR="${DESTINATION}/ide4/ant"
+	local ANTDIR="${DESTINATION}/ide5/ant"
@@ -317 +320 @@
-	cd ${1}/ide4/modules/ext
+	cd ${1}/ide5/modules/ext
@@ -325 +328 @@
-	cd ${1}/ide4/modules/autoload/ext
+	cd ${1}/ide5/modules/autoload/ext
@@ -337 +340 @@
-	cd ${1}/ide4/config/TagLibraries/JSTL11
+	cd ${1}/ide5/config/TagLibraries/JSTL11
@@ -341 +344 @@
-	cd ${1}/platform4/modules/ext
+	cd ${1}/platform5/modules/ext
Comment 2 Nicolas Boichat 2005-05-27 08:26:56 UTC
Created attachment 59954 [details, diff]
files/antbuild-4.1.xml.patch

ant build.xml structure changed a little.
Comment 3 Nicolas Boichat 2005-05-27 08:28:12 UTC
Created attachment 59955 [details, diff]
files/startscript-4.1.sh

Diff against startscript.sh :
--- startscript.sh	2005-05-17 20:17:40.000000000 +0200
+++ startscript-4.1.sh	2005-05-27 16:52:27.000000000 +0200
@@ -12,10 +12,10 @@
 }

-NBDIR="/usr/share/netbeans-4.0"
+NBDIR="/usr/share/netbeans-4.1"

-check_symlinks ${NBDIR}/ide4/modules/ext
-check_symlinks ${NBDIR}/ide4/modules/autoload/ext
-check_symlinks ${NBDIR}/ide4/config/TagLibraries/JSTL11
-check_symlinks ${NBDIR}/platform4/modules/ext
+check_symlinks ${NBDIR}/ide5/modules/ext
+check_symlinks ${NBDIR}/ide5/modules/autoload/ext
+#check_symlinks ${NBDIR}/ide5/config/TagLibraries/JSTL11
+check_symlinks ${NBDIR}/platform5/modules/ext

 ${NBDIR}/bin/netbeans
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-05-27 08:31:45 UTC
*** Bug 93025 has been marked as a duplicate of this bug. ***
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2005-05-27 09:50:30 UTC
It is not as simple as this, but thanks for the effort. The names of the packed
jars have to be adjusted to new releases and there is also new packed stuff
usually. But I am going to work on this (I made the 4.0 ebuild). 
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2005-05-31 14:15:35 UTC
I just came up with a nice problem with the scrambler. 4.0 didn't have problems
because the the scrambled files were dated to last year. But the files in the
4.1 tarball are very fresh. This means that the jars the user has installed are
older than the scrambled files. Because the files are older, the Scrambler tries
to unscramble files over the symlinks resulting in a sandbox violation. I will
probably use xslt/sed/own script to rewrite the build.xml files to skip the
unscrambling on the files already in the system. For the future I will try to
find time to enhance the Netbeans build process so that it can use jars in the
system. This patch will be accepted upstream if I will be able to make it.
Comment 7 Danny Brain 2005-06-04 07:14:07 UTC
Created attachment 60585 [details]
Netbeans 4.1 Ebuild w/ Bundled Jars

Not sure if anyone is wanting this, but here is an ebuild for 4.1 using the
bundled jars/tomcat etc. So no dependencys.
Created this after I got sick and tired of trying to build alot of the
dependencies of the above ebuild when using JDK 1.5.
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2005-06-05 14:06:10 UTC
As with 4.0 the ebuild is under development in the experimental tree:
https://gentooexperimental.org/svn/java/gentoo-java-experimental/dev-util/netbeans
The ebuild can't go into the tree before Tomcat 5.5* and it still has a couple
of issues. I have only tested that it starts. The Tomcat ebuild in experimental
should get some fixes by luckyduck in during the next week.
Comment 9 Andre Kloth 2005-06-22 10:32:14 UTC
DaNIsH,

thanks for your ebuild. I just installed it and going to try your "netbeans
distribution" this week. Maybe you should add an einfo at the end of your
ebuild, pointing the user to /usr/share/netbeans-4.1/bin/netbeans, at least :-)

I am not a java developer, but what about a kind of "netbeans-devel-dist" and
"eclipse-devel-dist" ebuild? This should contain an IDE and some of the most
common/used java packages, so that programmers do not have to care about every
single package ...
Comment 10 Sven Wehner 2005-07-21 08:09:29 UTC
Created attachment 63996 [details]
NetBeans Profiler Milestone 7 (v2)

Ebuild for the NetBeans Profiler for NetBeans 4.1; Please, review it! It uses
an ugly installer...
Comment 11 Sven Wehner 2005-07-21 08:11:54 UTC
Created attachment 63997 [details]
NetBeans Mobility Pack

Ebuild for the NetBeans Mobility Pack, needed to write J2ME-/Java
ME-applications; please, review it! It uses an ugly installer
Comment 12 Petteri Räty (RETIRED) gentoo-dev 2005-07-21 11:54:43 UTC
Swoon: 
You should use text/plain ase the mime type so that browsers are able to show
the ebuilds. They also don't belong to this bug. They should have their own
separate bugs. Feel free to open those. I will then take a look. I agree that it
would be great to have them as ebuilds in the tree. 
Comment 13 Justin 2005-08-07 08:28:51 UTC
Has anyone had any success with this ebuild? I keep getting:

Calculating dependencies  ...done!
>>> emerge (1 of 1) dev-util/netbeans-4.1 to /
>>> md5 files   ;-) netbeans-4.1.ebuild
>>> md5 files   ;-) files/antbuild-4.1.xml.patch
>>> md5 files   ;-) files/startscript-4.1.sh
>>> md5 files   ;-) files/digest-netbeans-4.1
>>> md5 src_uri ;-) netbeans-4_1-src-ide_sources.tar.bz2
>>> md5 src_uri ;-) netbeans-4_1-docs-javadoc.tar.bz2
>>> Unpacking source...
>>> Unpacking netbeans-4_1-src-ide_sources.tar.bz2 to
/var/tmp/portage/netbeans-4.1/work
tar: A lone zero block at 452800
>>> Unpacking netbeans-4_1-docs-javadoc.tar.bz2 to
/var/tmp/portage/netbeans-4.1/work/javadoc
 * Applying antbuild-4.1.xml.patch ...                                    [ ok ]
!!! ERROR: dev-util/netbeans-4.1 failed.
!!! Function java-pkg_jar-from, Line 295, Exitcode 1
!!! failed too find servlet-2.2.jar
!!! If you need support, post the topmost build error, NOT this status message.
Comment 14 Petteri Räty (RETIRED) gentoo-dev 2005-08-07 12:36:42 UTC
(In reply to comment #13)
> Has anyone had any success with this ebuild? I keep getting:
> 

Ah sorry. I have been waiting for Tomcat 5.5 and haven't been testing my stuff
in experimental for a while. When devs change stuff in the offical tree they
don't usually check that the experimental tree is still working. I already
corrected servletapi and will test that there are not other issues.
Comment 15 Sven Wehner 2005-08-17 05:47:33 UTC
Comment on attachment 63996 [details]
NetBeans Profiler Milestone 7 (v2)

new version has it own bug-report:
https://bugs.gentoo.org/show_bug.cgi?id=102821
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2005-08-17 08:58:10 UTC
*** Bug 102821 has been marked as a duplicate of this bug. ***
Comment 17 Nicolas Boichat 2006-07-09 02:32:59 UTC
I don't think it has sense to keep this bug open, as Netbeans 5.0 has been released for a long time... (see #109068)