Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152448 - dev-java/sun-j2me-bin stable on x86
Summary: dev-java/sun-j2me-bin stable on x86
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-22 16:33 UTC by Sérgio Luís
Modified: 2010-04-16 17:51 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sérgio Luís 2006-10-22 16:33:33 UTC
Please mark sun-j2me-bin stable on x86
Comment 1 Denilson Sá Maia 2006-12-12 18:03:33 UTC
I disagree.

Reason 1: There are still some dependencies marked as ~x86. So, first they need to be stable.
Reason 2: ktoolbar can't create or open projects, because it ALWAYS use the <j2me-path>/apps/ for storing them.

I don't think this app should be removed from portage, (at least not now), but leave it as ~x86 or even masked.
Comment 2 Michael S Costello 2007-02-25 22:15:52 UTC
FYI Related Bug: 168387 encountered on amd64, but not necessarily known that it will occur on x86.
Comment 3 Daniel Perniš 2007-06-14 18:26:35 UTC
(In reply to comment #1)

> Reason 2: ktoolbar can't create or open projects, because it ALWAYS use the
> <j2me-path>/apps/ for storing them.

This can be solved in ebuild by creating a directory <j2me-path>/apps/ (or a symlink to some directory) with proper access rights (rights like /tmp has, mainly sticky bit) and maybe create a special group "j2me" for users who want to use the package.
Comment 4 Daniel Perniš 2007-06-14 19:19:14 UTC
diff sun-j2me-bin-2.2-r3.ebuild*
82c82,87
<       use examples && cp -r apps ${D}/${DIR}
---
>       if use examples; then
>               cp -r apps ${D}/${DIR}
>       else
>               dodir ${D}/${DIR}/apps
>               fperms 1777 ${D}/${DIR}/apps
>       fi
Comment 5 Denilson Sá Maia 2007-06-15 02:12:37 UTC
(In reply to comment #3)
> This can be solved in ebuild by creating a directory <j2me-path>/apps/ (or a
> symlink to some directory) with proper access rights (rights like /tmp has,
> mainly sticky bit) and maybe create a special group "j2me" for users who want
> to use the package.

This is a quick and dirty workaround for a badly written program.

If this ever gets into ebuild, then also add a big fat warning about this, and also why this is dangerous (giving write-access to such directory to untrusted people is not good).
Comment 6 Daniel Perniš 2007-06-15 09:37:50 UTC
(In reply to comment #5)
I agree with you, it is risky. But what do you suggest? Write our own Ktoolbar? I would be interested :)
Comment 7 Denilson Sá Maia 2007-06-15 15:44:29 UTC
Maybe keep this marked as unstable or even mask this! If this is masked, gentoo devs can add a little explanation about why this is masked, and this will be shown when you try to emerge (Try this to see what I'm talking about: emerge -pv nethack or emerge -pv unreal).

Personally, I uncompress this software on my own home dir and use it from there, but I know this is not a multi-user solution (Damn, that software has not been written for multi-user use! Not even Windows version!). Another idea is to use NetBeans or Eclipse toolkits for Java ME. Yes, I know, these two are very big.
Comment 8 Daniel Rindt 2007-06-17 18:30:12 UTC
Hello,

i try to work with that software, background is that i begin to develop applications for j2me. currently it is not possible to use the installation via this ebuild - right? (without the dirty solution)
Comment 9 Daniel Perniš 2007-06-17 21:14:52 UTC
(In reply to comment #8)
> Hello,
> 
> i try to work with that software, background is that i begin to develop
> applications for j2me. currently it is not possible to use the installation via
> this ebuild - right? (without the dirty solution)
> 
It is possible to use the ebuild providing you do not use ktoolbar. In fact, ktoolbar is not the important part of the WTK, you can write your own Makefile and you are ok. You only need classes from WTK (and maybe the emulator which AFAIK does not cause problem) for developing j2me apps. However, it would be better if we provide some easy to use enviroment for users.
Comment 10 Nicolas Bonnefon 2007-10-13 11:56:25 UTC
I tried the new version from Sun (WTK-2.5.2) and it now works very well. It is now multi-user friendly (no need to change permissions in /opt), the applets are installed in ~/j2mewtk/2.5.2/ by default and /opt/WTK2.5.2 can be kept owned/writable by root only.
Maybe we should package this version?

I use it with eclipseme, I haven't tested Sun toolbar.
Comment 11 Thomas Kahle (RETIRED) gentoo-dev 2010-04-16 17:51:05 UTC
Is stable on x86, closing.