Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578748 - dev-java/netbeans-java-8.0.2-r4 broken symlink to /usr/share/jtidy/lib/Tidy.jar (Netbeans IDE does not start)
Summary: dev-java/netbeans-java-8.0.2-r4 broken symlink to /usr/share/jtidy/lib/Tidy.j...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
: 581454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-04-01 12:05 UTC by Stefan Gast
Modified: 2016-04-28 17:02 UTC (History)
3 users (show)

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


Attachments
Patch against dev-java/netbeans-java-8.0.2-r4.ebuild (netbeans-java-fix-jtidy.patch,978 bytes, patch)
2016-04-01 12:05 UTC, Stefan Gast
Details | Diff
~/.netbeans/8.0.2/var/log/messages.log (messages.log,10.00 KB, text/plain)
2016-04-13 10:05 UTC, Stefan Gast
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gast 2016-04-01 12:05:23 UTC
Created attachment 429414 [details, diff]
Patch against dev-java/netbeans-java-8.0.2-r4.ebuild

Bug #568288 reported the same issue for =dev-java/netbeans-java-8.1-r1, which was fixed in commit 6071a565acf3ebc659fd28ca3f48c4f821485ee6. However, the current stable version =dev-java/netbeans-java-8.0.2-r4 needs a similar fix, too, otherwise the Netbeans IDE won't start.

I've attached a patch against the ebuild that fixes the problem for me.
Comment 1 mike 2016-04-05 17:25:52 UTC
> I've attached a patch against the ebuild that fixes the problem for me.

Nice, works for me.
Comment 2 Stefan Gast 2016-04-13 10:05:03 UTC
Created attachment 430308 [details]
~/.netbeans/8.0.2/var/log/messages.log

Netbeans log file after trying to start netbeans-8.0 with the unpatched ebuild. Only the splash screen is shown for a while and then netbeans quits. Note that there is no console output, but the log file in the .netbeans directory clearly shows what is wrong.

If the symlink to jtidy is fixed (by using the patched ebuild or manually), then netbeans starts just fine.

If there is something else I can do to get this fixed in the tree, please let me know.
Comment 3 Stefan Gast 2016-04-26 16:02:09 UTC
Still no update on this? Please bear in mind that, due to this bug, stable-users get a Netbeans installation that does not even start. As per Gentoo Bugzilla Guide (from the Wiki-Pages), I raise the severity from "normal" to "major".
Comment 4 James Le Cuirot gentoo-dev 2016-04-26 19:16:56 UTC
This was already fixed in 8.1 but it wasn't applied to 8.0. Fixed in -r5.
Comment 5 Stefan Gast 2016-04-27 08:10:33 UTC
Thanks, now Netbeans starts fine again. :)

However, the only (minor) problem I see is following warning in the install phase, which I did not get with my patch:

>>> Install netbeans-java-8.0.2-r5 into /var/tmp/portage/dev-java/netbeans-java-8.0.2-r5/image/ category dev-java
 * java-pkg_ensure-dep: The ebuild is attempting to use jtidy, which is not declared with a SLOT in DEPEND.
>>> Completed installing netbeans-java-8.0.2-r5 into /var/tmp/portage/dev-java/netbeans-java-8.0.2-r5/image/

Apart from that, it works perfectly well. :)
Comment 6 James Le Cuirot gentoo-dev 2016-04-27 09:01:44 UTC
(In reply to Stefan Gast from comment #5)
> However, the only (minor) problem I see is following warning in the install
> phase, which I did not get with my patch:
> 
> >>> Install netbeans-java-8.0.2-r5 into /var/tmp/portage/dev-java/netbeans-java-8.0.2-r5/image/ category dev-java
>  * java-pkg_ensure-dep: The ebuild is attempting to use jtidy, which is not
> declared with a SLOT in DEPEND.
> >>> Completed installing netbeans-java-8.0.2-r5 into /var/tmp/portage/dev-java/netbeans-java-8.0.2-r5/image/

Aaah, it's in RDEPEND but not DEPEND. I used fordfrog's approach from 8.1 as that will not break (short of a rebuild) on subsequent renames but it needs to go in DEPEND too. I'll let him deal with that in his own time, it's not a major issue.
Comment 7 James Le Cuirot gentoo-dev 2016-04-28 17:02:23 UTC
*** Bug 581454 has been marked as a duplicate of this bug. ***