public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Georgi Georgiev <chutz@gg3.net>
To: Gentoo-dev <gentoo-dev@gentoo.org>
Subject: Re: [gentoo-dev] something like debconf for gentoo?
Date: Sat, 16 Aug 2003 18:26:20 +0900	[thread overview]
Message-ID: <20030816092619.GB14180%chutz@gg3.net> (raw)
In-Reply-To: <1061015586.16765.16.camel@biproc>

[-- 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

  parent reply	other threads:[~2003-08-16  9:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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       ` Georgi Georgiev [this message]
2003-08-16 17:04         ` [gentoo-dev] " Fred Van Andel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030816092619.GB14180%chutz@gg3.net \
    --to=chutz@gg3.net \
    --cc=chutz-dated-1062235582.849a99d5f484@gg3.net \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox