misc/163793: Patching netbeans-devel in order to run stable

Tino Engel tino.engel at porno-muenchen.de
Tue Jan 3 07:50:08 UTC 2012


>Number:         163793
>Category:       misc
>Synopsis:       Patching netbeans-devel in order to run stable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 03 07:50:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Tino Engel
>Release:        9.0-RC3
>Organization:
Porno München
>Environment:
FreeBSD localhost 9.0-RC3 FreeBSD 9.0-RC3 #0: Sun Dec  4 08:56:36 UTC 2011     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
netbeans-devel cannot start more than once.
If started, it is very unstable.
>How-To-Repeat:
just install netbeans-devel and try to use it.
>Fix:
patchfile to put to files-directory is attached to PR.
Patch for Makefile is below the line as follows:
========================================================

-- Makefile    2011-10-27 11:00:06.000000000 +0200
+++ Makefile    2012-01-03 08:42:32.000000000 +0100
@@ -29,11 +29,13 @@
 do-patch:
        @${REINPLACE_CMD} -i "" -e '19s|#||;19s|/path/to/jdk|${JAVA_HOME}|' \
            ${WRKSRC}/etc/netbeans.conf
+       @${PATCH} -s <${PATCHDIR}/freebsd-support.patch

 do-install:
        @${MKDIR} ${PREFIXDIR}
        @(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${PREFIXDIR})
        @${CHMOD} ${BINMODE} ${PREFIXDIR}/bin/netbeans
+       @${CHMOD} ${BINMODE} ${PREFIXDIR}/java/maven/bin/mvn
        @${LN} -sf ${PREFIXDIR}/bin/netbeans ${PREFIX}/bin/netbeans-${PORTVERSION}

 .include <bsd.port.mk>



Patch attached with submission follows:

--- work/netbeans/bin/netbeans	2011-09-26 01:36:52.000000000 +0200
+++ work/netbeans/bin/netbeans	2012-01-03 07:40:48.000000000 +0100
@@ -118,7 +118,7 @@
 fi
 
 heap_size () {
-    mem=640
+    mem=1024
     case "`uname`" in
         Linux*)
         mem=`cat /proc/meminfo | grep MemTotal | tr -d [:space:][:alpha:]:`
@@ -158,7 +158,7 @@
 if grep -v -- "-J-XX:MaxPermSize" >/dev/null <<EOF ; then
 ${netbeans_default_options}
 EOF
-	netbeans_default_options="-J-XX:MaxPermSize=384m ${netbeans_default_options}"
+	netbeans_default_options="-J-XX:MaxPermSize=512m ${netbeans_default_options}"
 fi
 
 launchNbexec() {
@@ -176,9 +176,9 @@
         sh=/bin/bash
     fi
     if [ "${founduserdir}" = "yes" ]; then
-        exec $sh "$nbexec" "$@"
+        exec $sh "$nbexec" --nosplash "$@"
     else
-        exec $sh "$nbexec" --userdir "${userdir}" "$@"
+        exec $sh "$nbexec" --nosplash --userdir "${userdir}" "$@"
     fi
 }
 


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list