From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20597 invoked by uid 1002); 16 Aug 2003 09:26:25 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 13539 invoked from network); 16 Aug 2003 09:26:24 -0000 Date: Sat, 16 Aug 2003 18:26:20 +0900 To: Gentoo-dev Message-ID: <20030816092619.GB14180%chutz@gg3.net> References: <20030815202922.466add00.xwred1@xwredwing.net> <20030816041821.GA9509@cerberus.oppresses.us> <1061015586.16765.16.camel@biproc> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1061015586.16765.16.camel@biproc> User-Agent: Mutt/1.5.4i-ja.1 From: Georgi Georgiev Mail-Followup-To: gentoo-dev@gentoo.org X-Delivery-Agent: TMDA/0.80 (Determine) X-Primary-Address: chutz@gg3.net Reply-To: Georgi Georgiev Subject: Re: [gentoo-dev] something like debconf for gentoo? X-Archives-Salt: 35a29537-7e82-4f93-b791-7839278ce0da X-Archives-Hash: 3e494da6ca1c44e309d7abedf4a61c29 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 ( ( --zYM0uCDKw75PZbzx Content-Type: application/x-sh Content-Disposition: attachment; filename="emerge-config.sh" Content-Transfer-Encoding: 8bit #!/bin/sh emerge $* | grep '^\[ebuild' | cut -f2- -d] | cut -f3- -d\ | sed -e 's/[-+]//g' | xargs ./ufed --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ufed.diff" Content-Transfer-Encoding: 8bit --- /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); --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii -- gentoo-dev@gentoo.org mailing list --zYM0uCDKw75PZbzx--