Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685782 - dev-util/netbeans-11.0 version bump
Summary: dev-util/netbeans-11.0 version bump
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 678536
  Show dependency tree
 
Reported: 2019-05-13 05:59 UTC by David Carlos Manuelda
Modified: 2019-09-14 15:38 UTC (History)
7 users (show)

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


Attachments
netbeans-standalone-11.1.ebuild (netbeans-standalone-11.1.ebuild,4.37 KB, text/plain)
2019-08-16 13:34 UTC, Marco Genasci
Details
netbeans-standalone-9999.patch (netbeans-standalone-9999.patch,1.88 KB, patch)
2019-08-19 12:11 UTC, Marco Genasci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2019-05-13 05:59:54 UTC
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
Comment 1 Miroslav Šulc gentoo-dev 2019-08-15 06:47:54 UTC
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.
Comment 2 Marco Genasci 2019-08-16 13:34:50 UTC
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
Comment 3 Larry the Git Cow gentoo-dev 2019-08-16 15:52:09 UTC
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(-)
Comment 4 Miroslav Šulc gentoo-dev 2019-08-16 15:54:15 UTC
(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.
Comment 5 Marco Genasci 2019-08-19 12:11:59 UTC
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)
Comment 6 Larry the Git Cow gentoo-dev 2019-08-19 12:26:42 UTC
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(-)
Comment 7 Marco Genasci 2019-08-19 12:59:17 UTC
What do you think about adding two local use flags for system-ant and system-maven?
Comment 8 Miroslav Šulc gentoo-dev 2019-08-19 13:15:07 UTC
(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?
Comment 9 Marco Genasci 2019-08-19 13:36:50 UTC
(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.
Comment 10 Miroslav Šulc gentoo-dev 2019-08-19 13:49:29 UTC
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.
Comment 11 Marco Genasci 2019-08-19 14:45:46 UTC
(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.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-14 15:38:12 UTC
Package removed.