public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] emerge with interacitve use
@ 2003-04-29 17:03 Panard
  2003-04-29 17:34 ` Tony Clark
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Panard @ 2003-04-29 17:03 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]

Hello,

	After some experiencies with emerge, it could be great that to do an emerge 
with USE interactive :

$ emerge -I php
>>> ...
Use Java [Y/n]?
Use X[y/N] ?
....

I found, that there are too many errors due to USE vars that we forget  to 
disable or enable...

So I have taken my hands and my vim, and tried to do this, it gave a good 
result.

I join the script, its name is emerge-interactive, this is in fact the emerge 
script with my modifications (line  1840 to 1877)... place it in the 
directory
/usr/lib/portage/bin
then
ln -s /usr/lib/portage/bin/emerge-interactive /usr/bin


To use the interactive mide, use
$ emerge-interactive -I or --interactive ....

This is my first gentoo and linux contribution so I'm waiting for some 
feedback, impression, and sure critiques and amelioration (this is the first 
time I script in python, so be indulgent !!)

Thanks!

Panard


-- 
________________________________________________________
         panard@inzenet.org                http://www.inzenet.org

"Computers are like air-conditioners, they stop working properly when you open 
Windows."



[-- Attachment #2: emerge-interactive.bz2 --]
[-- Type: application/x-bzip2, Size: 17581 bytes --]

[-- Attachment #3: Type: text/plain, Size: 37 bytes --]

--
gentoo-dev@gentoo.org mailing list

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: [gentoo-dev] emerge with interacitve use
@ 2003-04-29 18:34 Joshua Brindle
  2003-04-29 18:53 ` Henti Smith
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Joshua Brindle @ 2003-04-29 18:34 UTC (permalink / raw
  To: gentoo-dev, Kuleshov, Sergey

>Hey, I really like this feature! It really helps (anyway it's better that 
>looking in the .ebuild file and sort out what are the optional dependencies.)
>
>The thing I did not get is why is it sometimes dispalying the Disabled ..... 
>text ans sometimes not?
>
>P.S. What about enchancing it with some ncurses interface to make it really 
>intteractive?
>
>On Tuesday 29 April 2003 17:03, Panard wrote:
>> Hello,
>>
>> 	After some experiencies with emerge, it could be great that to do an
>> emerge with USE interactive :
>>
>> $ emerge -I php
>>
>> >>> ...
>>
>> Use Java [Y/n]?
>> Use X[y/N] ?
>> ....
>>
>> I found, that there are too many errors due to USE vars that we forget  to
>> disable or enable...
>>
>> So I have taken my hands and my vim, and tried to do this, it gave a good
>> result.
>>
>> I join the script, its name is emerge-interactive, this is in fact the
>> emerge script with my modifications (line  1840 to 1877)... place it in the
>> directory
>> /usr/lib/portage/bin
>> then
>> ln -s /usr/lib/portage/bin/emerge-interactive /usr/bin
>>
>>
>> To use the interactive mide, use
>> $ emerge-interactive -I or --interactive ....
>>
>> This is my first gentoo and linux contribution so I'm waiting for some
>> feedback, impression, and sure critiques and amelioration (this is the
>> first time I script in python, so be indulgent !!)
>>

This solution doesn't scale well, it would be impossible to emerge system
and expect this to be sane, additionally the lack of sticky use vars means
you can have unexpected support/lack of support after upgrading..

and digging through ebuilds? have you ever looked at emerge -h?

tachyon root # emerge -vp vim     

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N   ] app-editors/vim-core-6.2_pre2  -gnome +gpm -gtk -gtk2 +ncurses +nls +perl +python -ruby +X 
[ebuild  N   ] app-editors/vim-6.2_pre2  -gnome +gpm -gtk -gtk2 +ncurses +nls +perl +python -ruby +X 

look, tells you exactly how your use flags are going to affect the build

USE="-X" emerge -vp vim and observe...

additionally, we now have this great program for managing the plethora of USE vars called 'ufed' (app-admin/ufed).. that way you don't forget which are enabled/disabled, you can look through them all and turn on/off the support you desire.. it's a nice program, well worth emerging..

Cheers

Joshua Brindle

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2003-05-12 22:57 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-29 17:03 [gentoo-dev] emerge with interacitve use Panard
2003-04-29 17:34 ` Tony Clark
2003-04-29 17:30   ` Henti Smith
2003-04-29 20:03 ` Eric Noack
2003-04-29 20:27   ` Panard
2003-05-01 16:18     ` Mark Bainter
2003-04-29 20:49 ` Sergey Kuleshov
2003-04-29 21:31   ` Camille HUOT
2003-05-01  8:59 ` Nick Jones
2003-05-12 22:50 ` [gentoo-dev] [update] " Panard
  -- strict thread matches above, loose matches on Subject: below --
2003-04-29 18:34 [gentoo-dev] " Joshua Brindle
2003-04-29 18:53 ` Henti Smith
2003-04-29 19:12 ` Panard
2003-04-29 20:12   ` Vano D
     [not found]     ` <200304292236.07561.panard@inzenet.org>
2003-04-29 23:26       ` Vano D
2003-04-29 23:31     ` Panard
2003-04-30  0:31       ` Todd Berman
2003-04-30  0:39       ` Vano D
2003-04-30  0:18     ` Daniel Armyr
2003-04-29 20:15 ` Vano D

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox