* [gentoo-dev] something like debconf for gentoo?
@ 2003-08-15 13:19 thomas weidner
2003-08-16 3:29 ` Matt Thrailkill
0 siblings, 1 reply; 10+ messages in thread
From: thomas weidner @ 2003-08-15 13:19 UTC (permalink / raw
To: gentoo-dev
Hi,
debian has a nice system for packages displaying messages or asking
questions, or even to store package spezific informations. There are
CLI, textmode GUI, and even X11 frontends. I think this would also be a
good idea for gentoo. what do the others think?
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] something like debconf for gentoo?
2003-08-15 13:19 [gentoo-dev] something like debconf for gentoo? thomas weidner
@ 2003-08-16 3:29 ` Matt Thrailkill
2003-08-16 4:18 ` Jon Portnoy
0 siblings, 1 reply; 10+ messages in thread
From: Matt Thrailkill @ 2003-08-16 3:29 UTC (permalink / raw
To: gentoo-dev
Something like this would be handy. Even in FreeBSD, they have sort of
an interactive questionaire thing when you build something from Ports.
For example, when you try to build Samba in Ports, it brings up a text
dialog with a bunch of checkboxes for all the Samba options like ACLs
and LDAP support, and you check off the ones you want; obviously then it
adds those to the ./configure line it uses in the Makefile.
I know Gentoo relies on USE flags and they are all magical and stuff,
but you can't have a USE flag for *everything*.
On Fri, 15 Aug 2003 15:19:15 +0200
thomas weidner <yasea@gmx.net> wrote:
> Hi,
>
> debian has a nice system for packages displaying messages or asking
> questions, or even to store package spezific informations. There are
> CLI, textmode GUI, and even X11 frontends. I think this would also be
> a good idea for gentoo. what do the others think?
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] something like debconf for gentoo?
2003-08-16 3:29 ` Matt Thrailkill
@ 2003-08-16 4:18 ` Jon Portnoy
2003-08-16 6:33 ` Philippe Lafoucrière
0 siblings, 1 reply; 10+ messages in thread
From: Jon Portnoy @ 2003-08-16 4:18 UTC (permalink / raw
To: Matt Thrailkill; +Cc: gentoo-dev
On Fri, Aug 15, 2003 at 08:29:22PM -0700, Matt Thrailkill wrote:
> Something like this would be handy. Even in FreeBSD, they have sort of
> an interactive questionaire thing when you build something from Ports.
> For example, when you try to build Samba in Ports, it brings up a text
> dialog with a bunch of checkboxes for all the Samba options like ACLs
> and LDAP support, and you check off the ones you want; obviously then it
> adds those to the ./configure line it uses in the Makefile.
>
> I know Gentoo relies on USE flags and they are all magical and stuff,
> but you can't have a USE flag for *everything*.
Sure you can - that's what local USE flags are for.
/usr/portage/profiles/use.local.desc
--
Jon Portnoy
avenj/irc.freenode.net
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] something like debconf for gentoo?
2003-08-16 4:18 ` Jon Portnoy
@ 2003-08-16 6:33 ` Philippe Lafoucrière
2003-08-16 6:46 ` Mike Frysinger
2003-08-16 9:26 ` [gentoo-dev] " Georgi Georgiev
0 siblings, 2 replies; 10+ messages in thread
From: Philippe Lafoucrière @ 2003-08-16 6:33 UTC (permalink / raw
To: Jon Portnoy; +Cc: Matt Thrailkill, Gentoo-dev
> Sure you can - that's what local USE flags are for.
Yes, but it would simpler to have an interface than to looking in use.local.desc file every
time you emerge a package.
BTW, this interface would be easy to create ! The emerge process should look if the current emerged
package is in the file, and would provide some tunable options before compiling.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] something like debconf for gentoo?
2003-08-16 6:46 ` Mike Frysinger
@ 2003-08-16 6:44 ` donnie berkholz
2003-08-16 7:11 ` Philippe Lafoucrière
0 siblings, 1 reply; 10+ messages in thread
From: donnie berkholz @ 2003-08-16 6:44 UTC (permalink / raw
To: gentoo-dev
On Sat, 2003-08-16 at 02:46, Mike Frysinger wrote:
> On Saturday 16 August 2003 02:33, Philippe Lafoucrière wrote:
> > > Sure you can - that's what local USE flags are for.
> >
> > Yes, but it would simpler to have an interface than to looking in
> > use.local.desc file every time you emerge a package.
>
> i'm not argueing against the idea of gentooconf, but you could do:
> `emerge pkg -pv`, look at the list of useflags utilized, and then go from
> there ...
The problem is, emerge should be non-interactive, meaning I could walk
away for 12 hours and have it be done when I come back, not have some
silly gentooconf screen waiting on the second of 250 packages. That's
why USE flags are nice. Of course, if one could go through gentooconf
all at once before starting, that might work too.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] something like debconf for gentoo?
2003-08-16 6:33 ` Philippe Lafoucrière
@ 2003-08-16 6:46 ` Mike Frysinger
2003-08-16 6:44 ` donnie berkholz
2003-08-16 9:26 ` [gentoo-dev] " Georgi Georgiev
1 sibling, 1 reply; 10+ messages in thread
From: Mike Frysinger @ 2003-08-16 6:46 UTC (permalink / raw
To: gentoo-dev
On Saturday 16 August 2003 02:33, Philippe Lafoucrière wrote:
> > Sure you can - that's what local USE flags are for.
>
> Yes, but it would simpler to have an interface than to looking in
> use.local.desc file every time you emerge a package.
i'm not argueing against the idea of gentooconf, but you could do:
`emerge pkg -pv`, look at the list of useflags utilized, and then go from
there ...
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] something like debconf for gentoo?
2003-08-16 6:44 ` donnie berkholz
@ 2003-08-16 7:11 ` Philippe Lafoucrière
2003-08-16 16:23 ` [gentoo-dev] " thomas weidner
0 siblings, 1 reply; 10+ messages in thread
From: Philippe Lafoucrière @ 2003-08-16 7:11 UTC (permalink / raw
To: spyderous; +Cc: Gentoo-dev
> The problem is, emerge should be non-interactive, meaning I could walk
> away for 12 hours and have it be done when I come back, not have some
> silly gentooconf screen waiting on the second of 250 packages. That's
> why USE flags are nice. Of course, if one could go through gentooconf
> all at once before starting, that might work too.
Like debconf is only called when all packages are fetched, gentooconf
should be called between fetching files and compiling.
It's similar to the grouped log in emerge (display all messages in 1
shot at the end of emerging).
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] something like debconf for gentoo?
2003-08-16 6:33 ` Philippe Lafoucrière
2003-08-16 6:46 ` Mike Frysinger
@ 2003-08-16 9:26 ` Georgi Georgiev
2003-08-16 17:04 ` Fred Van Andel
1 sibling, 1 reply; 10+ messages in thread
From: Georgi Georgiev @ 2003-08-16 9:26 UTC (permalink / raw
To: Gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]
On 16/08/2003 at 08:33:06(+0200), Philippe Lafoucrière used 0.4K just to say:
> > Sure you can - that's what local USE flags are for.
>
> Yes, but it would simpler to have an interface than to looking in use.local.desc file every
> time you emerge a package.
What about ufed? It is already done and has the required capability (checkboxes
and stuff). The only thing ufed needs before becoming what you want is the
capability to let you choose what flags you want to configure.
For example if ufed has the capability to be run as:
# ufed ssl pam ipv6
and then only let you configure the three flags "ssl", "pam" and "ipv6", then,
you could configure your packages before emerging them with this.
Example. You want to configure the following command:
# emerge -pvU samba proftpd
You configure it with this:
# emerge -pvU samba proftpd |
grep '^\[ebuild' |
cut -f2- -d] |
cut -f3- -d\ |
sed -e 's/[-+]//g' |
xargs ufed
I actually even coded the changes I had in mind. You may want to use the shell
script I attach for configuring though since the code above is a little too
long to type every time by hand.
Please test and if the devs like it -- apply.
--
( Georgi Georgiev ( BOFH Excuse #88: Boss' kid fucked up the (
) chutz@gg3.net ) machine )
( +81(90)6266-1163 ( (
[-- Attachment #2: emerge-config.sh --]
[-- Type: application/x-sh, Size: 149 bytes --]
[-- Attachment #3: ufed.diff --]
[-- Type: text/plain, Size: 911 bytes --]
--- /usr/sbin/ufed 2003-08-16 18:01:27.000000000 +0900
+++ /usr/sbin/ufed 2003-08-16 18:19:16.000000000 +0900
@@ -26,6 +26,7 @@
my $All;
my %use_desc_flags;
+my %command_line_use_flags;
my $PortageBase = '/usr/portage';
@@ -646,6 +647,9 @@
@use_defaults_flags = get_use_defaults_flags();
$make_conf_flags = CleanUpFlags(get_make_conf_flags());
+ foreach my $i (@ARGV)
+ { $command_line_use_flags{$i} = $i }
+
#special case. If make.conf contains -* it compleatly ignores make.defaults
if($make_conf_flags =~ m!\-\*!)
{
@@ -703,6 +707,12 @@
for $i (@use_mask_flags)
{ delete $use_desc_flags{$i}; }
+ if (scalar(%command_line_use_flags)) {
+ foreach my $i (keys %use_desc_flags) {
+ delete $use_desc_flags{$i} unless defined $command_line_use_flags{$i}
+ }
+ }
+
# End of steps
@combined_flags = split (m![ ]+!, $Results);
[-- Attachment #4: Type: text/plain, Size: 37 bytes --]
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-dev] Re: something like debconf for gentoo?
2003-08-16 7:11 ` Philippe Lafoucrière
@ 2003-08-16 16:23 ` thomas weidner
0 siblings, 0 replies; 10+ messages in thread
From: thomas weidner @ 2003-08-16 16:23 UTC (permalink / raw
To: gentoo-dev
On Sat, 16 Aug 2003 09:11:21 +0200, Philippe Lafoucrière wrote:
>
>> The problem is, emerge should be non-interactive, meaning I could walk
>> away for 12 hours and have it be done when I come back, not have some
>> silly gentooconf screen waiting on the second of 250 packages. That's
>> why USE flags are nice. Of course, if one could go through gentooconf
>> all at once before starting, that might work too.
>
> Like debconf is only called when all packages are fetched, gentooconf
> should be called between fetching files and compiling.
> It's similar to the grouped log in emerge (display all messages in 1
> shot at the end of emerging).
that's a good idea,scan all packages first for gentooconf things,then do
the gentooconf stuff and then compile 250 packages non-interactively for
12h. (there aren't only useflags things to do with gentooconf)
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] something like debconf for gentoo?
2003-08-16 9:26 ` [gentoo-dev] " Georgi Georgiev
@ 2003-08-16 17:04 ` Fred Van Andel
0 siblings, 0 replies; 10+ messages in thread
From: Fred Van Andel @ 2003-08-16 17:04 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On August 16, 2003 02:26 am, Georgi Georgiev wrote:
> What about ufed? It is already done and has the required
> capability (checkboxes and stuff). The only thing ufed needs
> before becoming what you want is the capability to let you choose
> what flags you want to configure.
<snip>
There is allready a command line tool for manipulating use flags
called euse. Its part of the gentoolkit package.
I think it would be better to use euse for this type of application.
- --
Fred Van Andel
fava@gentoo.org
GPG KeyID: 76526AD599455482
GPG fingerprint: 64E4 4BAB 9C99 D565 3E3C F5D0 7652 6AD5 9945 5482
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/PmQQdlJq1ZlFVIIRAt7GAJ4rx8kjdBTqULLUqCsSqp4Q2PZrwACdGTXS
mNJ9XAuN8a7lXHVZgXunxYA=
=tiE3
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-08-16 17:04 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 13:19 [gentoo-dev] something like debconf for gentoo? thomas weidner
2003-08-16 3:29 ` Matt Thrailkill
2003-08-16 4:18 ` Jon Portnoy
2003-08-16 6:33 ` Philippe Lafoucrière
2003-08-16 6:46 ` Mike Frysinger
2003-08-16 6:44 ` donnie berkholz
2003-08-16 7:11 ` Philippe Lafoucrière
2003-08-16 16:23 ` [gentoo-dev] " thomas weidner
2003-08-16 9:26 ` [gentoo-dev] " Georgi Georgiev
2003-08-16 17:04 ` Fred Van Andel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox