Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162914 - new feature for dev-util/netbeans-5.5: C/C++ support
Summary: new feature for dev-util/netbeans-5.5: C/C++ support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-20 11:36 UTC by Sergey Belyashov
Modified: 2007-08-25 17:31 UTC (History)
2 users (show)

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


Attachments
dev-util/netbeans-5.5-r1.ebuild with C/C++ support (netbeans-5.5-r1.ebuild,13.81 KB, text/plain)
2007-01-20 11:39 UTC, Sergey Belyashov
Details
patch which adds support C/C++ to dev-util/netbeans-5.5-r1.ebuild (netbeans-cnd.patch,2.33 KB, patch)
2007-01-20 13:56 UTC, Sergey Belyashov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Belyashov 2007-01-20 11:36:00 UTC
I add to dev-util/netbeans-5.5-r1.ebuild new USE flag "cnd" which installs C/C++ package to netbeans-5.5 at emerge time.

Reproducible: Always

Steps to Reproduce:
Comment 1 Sergey Belyashov 2007-01-20 11:39:49 UTC
Created attachment 107519 [details]
dev-util/netbeans-5.5-r1.ebuild with C/C++ support

C/C++ package is distributed as InstallShield selfextracting package with wizard. But it have some keys which I use to unpack and install from ebuild.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-01-20 13:49:02 UTC
(In reply to comment #1)
> Created an attachment (id=107519) [edit]
> dev-util/netbeans-5.5-r1.ebuild with C/C++ support
> 

It's usually better to attach patches against current ebuilds so that it's easy to see what you changed and comment on that.
Comment 3 Sergey Belyashov 2007-01-20 13:56:57 UTC
Created attachment 107527 [details, diff]
patch which adds support C/C++ to dev-util/netbeans-5.5-r1.ebuild
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-01-20 14:33:26 UTC
(In reply to comment #3)
> Created an attachment (id=107527) [edit]
> patch which adds support C/C++ to dev-util/netbeans-5.5-r1.ebuild
> 

It would probably be possible to make this a separate ebuild too so we need think how we want to do this. Is this open source? If so we should look into compiling it from source. New binary ebuilds can only be added to our overlays. 
Comment 5 Sergey Belyashov 2007-01-20 14:52:34 UTC
cnd is open source project http://cnd.netbeans.org/ 
But I cannot find source tarball there. There is only cvs access present.

It is impossible to make it as separate ebuild because installer changes /usr/share/netbeans-5.5/etc/netbeans.clusters (add's to the end "cnd1"). This file originally installed by netbeans ebuild.

Is it need to rewrite ebuild for fetch sources from cvs?
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2007-01-20 16:41:00 UTC
(In reply to comment #5)
> 
> Is it need to rewrite ebuild for fetch sources from cvs?
> 

We would package a snapshot of the CVS sources in that case.
Comment 7 Sergey Belyashov 2007-01-20 18:46:06 UTC
Ok. I view sources and think that I cannot write ebuild to build this plugin from sources.
Comment 8 Miroslav Šulc gentoo-dev 2007-01-21 20:08:48 UTC
I must have missed this bug somehow. I already created ebuild for C/C++ support for netbeans though it is binary atm. You can find it here: https://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/dev-util/netbeans-cnd
Comment 9 Miroslav Šulc gentoo-dev 2007-01-21 20:20:05 UTC
Please note that netbeans-cnd ebuild needs eclass from that overlay so you should either copy that too or add the whole overlay to your system (you can use layman for that)
Comment 10 MACHINE 2007-05-29 02:40:08 UTC
Feature wanted:

Some of linux users might want to use NetBeans for developing C/C++ software ONLY, so it would be appreciated if NetBeans ebuild could have a USE flag to let the users choose to integrate either JAVA IDE, C/C++ IDE, or both.

Thanks.
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2007-05-29 07:28:03 UTC
(In reply to comment #10)
> Feature wanted:
> 
> Some of linux users might want to use NetBeans for developing C/C++ software
> ONLY, so it would be appreciated if NetBeans ebuild could have a USE flag to
> let the users choose to integrate either JAVA IDE, C/C++ IDE, or both.
> 
> Thanks.
> 

I think fordfrog has something like this in the works in the java-experimental overlay.
Comment 12 Miroslav Šulc gentoo-dev 2007-05-29 07:54:01 UTC
I'm working on 6.0 these days, but will try to find some time to bump 5.5 to 5.5.1 and add support for C/C++ and other extra packs. Hopefully this weekend.
Comment 13 Miroslav Šulc gentoo-dev 2007-06-03 16:01:28 UTC
Sergey,

please, where did you get the info about installing c++ extra pack using setup.jar? I want as a first step install the extra packs using binary distributions (as I do not have enough time now to play with the sources and redistribution policy of bundled jars) but your patch works only for c++ and not for the other extra packs.

You can find the experimental ebuild here:
https://overlays.gentoo.org/proj/java/browser/java-experimental/dev-util/netbeans/netbeans-5.5.1.ebuild
Comment 14 Sergey Belyashov 2007-06-03 21:51:13 UTC
(In reply to comment #13)
> Sergey,
> 
> please, where did you get the info about installing c++ extra pack using
> setup.jar? I want as a first step install the extra packs using binary
> distributions (as I do not have enough time now to play with the sources and
> redistribution policy of bundled jars) but your patch works only for c++ and
> not for the other extra packs.
> 
Reverse engeneering and googling. ;-)
Comment 15 Miroslav Šulc gentoo-dev 2007-06-04 00:06:21 UTC
(In reply to comment #14)
> Reverse engeneering and googling. ;-)
> 

Uff, I hoped your answer will bring me easier solution :-)
Comment 16 Sergey Belyashov 2007-06-04 10:07:38 UTC
netbeans cnd package created by Install Shield soft. It accepts some keys, for example:
-is:tempdir </path/to/dir>
-is:extract
After extracting is possible to run wizard in unnatended mode, see my patch.
Comment 17 Miroslav Šulc gentoo-dev 2007-06-04 10:25:44 UTC
(In reply to comment #16)
> netbeans cnd package created by Install Shield soft. It accepts some keys, for
> example:
> -is:tempdir </path/to/dir>
> -is:extract
> After extracting is possible to run wizard in unnatended mode, see my patch.
> 

Yeah, that is exactly what I did, ie I used your patch. Unfortunately there are two problems with it:
- it works only with c++ pack, not with the other packs
- script does not die on installation failure

I would appreciate if you have some time and will if you could help me to make the other extra packs install too as you seem to be able to dig that info out from the invisible :-) I also sent an email to linux-packaging@installer.netbeans.org but no answer yet (if ever).

Maybe the solution would be obvious for you, but it's not for me.
Comment 18 Sergey Belyashov 2007-06-04 10:37:59 UTC
At this week I have no time. But you can begin from this:
http://helpnet.installshield.com/robo/projects/is10-5universalhelplibrary/topics/commandline_options_run.htm
Comment 19 Miroslav Šulc gentoo-dev 2007-06-20 14:04:17 UTC
Just a side note, I added netbeans 6.0 ebuild with cnd cluster (c++ support) in java-experimental overlay so anybody feel free to give it a try. If you need netbeans just for c++ stuff, run 'USE="apisupport cnd harness ide nb" emerge netbeans', otherwise you can turn on even more clusters (use flags).
Comment 20 Miroslav Šulc gentoo-dev 2007-06-20 14:06:32 UTC
hm, I think you should drop 'apisupport' from the use flags:
'USE="cnd harness ide nb" emerge netbeans'
Comment 21 Andrea 2007-06-23 20:07:04 UTC
I want know when netbeans 5.5 will be release as stable version....

i things that it's time to do....i dont understand why this version stay halt to unstable
Comment 22 Petteri Räty (RETIRED) gentoo-dev 2007-06-23 20:16:27 UTC
(In reply to comment #21)
> I want know when netbeans 5.5 will be release as stable version....
> 
> i things that it's time to do....i dont understand why this version stay halt
> to unstable
> 

Yes working on that. The thing is that it has quite a few ~arch deps that must be reviewed first.
Comment 23 Miroslav Šulc gentoo-dev 2007-08-25 17:31:26 UTC
Netbeans 5.5.1 with C/C++ Pack moved to tree, thanks for the hack to get C/C++ pack installed.