Currently, Gentoo is stuck at netbeans-8.2 while latest releast as of today is from April 4th (Apache Netbeans 11.0). It also requires >=ant-1.10 which solves some current issues like #678536 Release announce url: https://netbeans.apache.org/download/nb110/nb110.html
i have created dirty ebuild for 11.1 and latest code in my overay. the ebuild is meant to give you a way to install netbeans in gentoo the gentoo way. it builds the whole netbeans, there is no way to turn on/off selected clusters. and because netbeans downloads a lot of dependencies during the build process, you need to disable network-sandbox for this ebuild. you can find the ebuilds in my overlay (fordfrog, https://gitweb.gentoo.org/dev/fordfrog.git/tree/dev-util/netbeans-standalone). to emerge it, use one of these commands: FEATURES="-network-sandbox" emerge -va netbeans-standalone:11 or FEATURES="-network-sandbox" emerge -va netbeans-standalone:9999 i named it netbeans-standalone to not conflict with current netbeans, though as you might already notice, netbeans is in the process of being removed from the main tree. if you come across any issue, please file a bug and and InOverlay keyword to the bug.
Created attachment 587046 [details] netbeans-standalone-11.1.ebuild - added QA_PREBUILT - moved KEYWORDS only on versioned package - removed all binary and libraries not needed Remains only a QA warning: * QA Notice: Symbolic link /usr/share/netbeans-standalone-11/etc points to /var/tmp/portage/dev-util/netbeans-standalone-11.1/etc/netbeans-standalone-11 which does not exist. but the link seems ok
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/dev/fordfrog.git/commit/?id=9deff9f98b7d982c0e331e3627f6ab11751323d5 commit 9deff9f98b7d982c0e331e3627f6ab11751323d5 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2019-08-16 15:49:32 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2019-08-16 15:50:00 +0000 dev-util/netbeans-9999: ebuild cleanup and fixes * cleanup and fixes provided by Marco Genasci <fedeliallalinea@gmail.com> * added some minor improvements in wording Bug: https://bugs.gentoo.org/685782 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-util/netbeans-standalone/Manifest | 4 +- .../netbeans-standalone-9999.ebuild | 57 ++++++++++++++++++---- 2 files changed, 50 insertions(+), 11 deletions(-)
(In reply to Marco Genasci from comment #2) > Created attachment 587046 [details] > netbeans-standalone-11.1.ebuild > > - added QA_PREBUILT > - moved KEYWORDS only on versioned package > - removed all binary and libraries not needed > > Remains only a QA warning: > > * QA Notice: Symbolic link /usr/share/netbeans-standalone-11/etc points to > /var/tmp/portage/dev-util/netbeans-standalone-11.1/etc/netbeans-standalone- > 11 which does not exist. > > but the link seems ok thank you for the cleanup and fixes. wrt that symlink, i noticed that too but the link is correct so i have no idea what should be wrong.
Created attachment 587404 [details, diff] netbeans-standalone-9999.patch - removed *.cmd and *.bat files - changed permission on *.so files - changed permission on maven and ant bundled programs (this caused permission denied error)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/dev/fordfrog.git/commit/?id=4bcaffee10ec958d40fa0e101e4110716bd698d2 commit 4bcaffee10ec958d40fa0e101e4110716bd698d2 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2019-08-19 12:26:02 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2019-08-19 12:26:10 +0000 dev-util/netbeans-9999: some fixes (by Marco Genasci <fedeliallalinea@gmail.com>) Bug: https://bugs.gentoo.org/685782 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-util/netbeans-standalone/Manifest | 4 ++-- dev-util/netbeans-standalone/netbeans-standalone-9999.ebuild | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-)
What do you think about adding two local use flags for system-ant and system-maven?
(In reply to Marco Genasci from comment #7) > What do you think about adding two local use flags for system-ant and > system-maven? what would be the purpose? removing the bundled maven and ant?
(In reply to Miroslav Šulc from comment #8) > what would be the purpose? removing the bundled maven and ant? Yes, if one system-* use flag is enabled then in src_install you remove related bundle program. The problem is how set system program in some config file for not set it manually in Options menu.
for ant it should be easy i guess. we can just replace the directory with symlink to ant. in case of maven we have several slots and up to that, netbeans wants maven home directory, so we cannot use just the symlink in /usr/bin/mvn. netbeans would also have to depend on that slot so maven does not get uninstalled. that's too complicated imo. unless we find an easy solution, which i cannot see atm, i would drop that idea for maven.
(In reply to Miroslav Šulc from comment #10) > in case of maven we have several slots and up to that, netbeans wants maven > home directory, so we cannot use just the symlink in /usr/bin/mvn. netbeans > would also have to depend on that slot so maven does not get uninstalled. > that's too complicated imo. unless we find an easy solution, which i cannot > see atm, i would drop that idea for maven. I see the problem then only for ant I think not worth it.
Package removed.