Bug 163793

Summary: Patching java/netbeans-devel in order to run stable
Product: Ports & Packages Reporter: Tino Engel <tino.engel>
Component: Individual Port(s)Assignee: Pietro Cerutti <gahr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Tino Engel 2012-01-03 07:50:08 UTC
netbeans-devel cannot start more than once.
If started, it is very unstable.

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:
How-To-Repeat: just install netbeans-devel and try to use it.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-01-03 09:04:19 UTC
Responsible Changed
From-To: freebsd-bugs->gahr

make this a ports PR, fix Synopsis, and assign.
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-01-04 16:05:00 UTC
gahr        2012-01-04 16:04:46 UTC

  FreeBSD ports repository

  Modified files:
    java/netbeans-devel  Makefile 
  Added files:
    java/netbeans-devel/files patch-netbeans 
  Log:
  - Better determination of run time memory constraints
  
  PR:                             ports/163793
  Submitted by:  Tino Engel <tino.engel@porno-muenchen.de>
  
  Revision  Changes    Path
  1.9       +1 -1      ports/java/netbeans-devel/Makefile
  1.1       +22 -0     ports/java/netbeans-devel/files/patch-netbeans (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Pietro Cerutti freebsd_committer freebsd_triage 2012-01-04 16:05:41 UTC
State Changed
From-To: open->closed

I have added a patch to determine the heap size in FreeBSD, and I have 
augmented MaxPermSize to 512 MB, as you suggested. However, I see no 
reason for disabling the splash screen.