


Code: Select all
enigma justin # cfg-update -u
(1/123) /etc/ssl/misc/CA.pl [modified]
Update file : /etc/ssl/misc/CA.pl ? [y|n|q|?] y
(GUI tool) : when done, use the save button with the M on it !
(GUI tool) : you have not saved your selections as /etc/ssl/misc/CA.pl.merge !
Update cancelled...
(2/123) /etc/ssl/openssl.cnf [modified]
Update file : /etc/ssl/openssl.cnf ? [y|n|q|?] q
I have never noticed that... Thanks for telling me this!yuza wrote:I've just discovered a little problem with etc-update. Since it sets an alias
for emerge in /etc/profile, you won't be able to set enviromental variables
for portage anymore.
Things like
USE="something" emerge or
ACCEPT_KEYWORDS="~x86"
won't work anymore (at least with cfg-update-1.5)
Code: Select all
cfg-update --off
source /etc/profileCode: Select all
cfg-update --on
source /etc/profile
Yes, the problem lies in the use of the alias. It doesn't handle variablesyuza wrote:Yes the problem is only when you are trying to set variables on the command line. I don't think it could have side effects on anything else...
Code: Select all
--- cfg-update.pl 2004-02-13 02:20:47.000000000 +0900
+++ /usr/bin/cfg-update 2004-02-22 20:01:31.337632101 +0900
@@ -239,7 +239,7 @@
}
sub build_big{
- `cat /var/db/pkg/*/*/CONTENTS | grep '^obj ' | awk '{ print \$2" "\$3 }' >>$index`;
+ `cat /var/db/pkg/*/*/CONTENTS | awk '/^obj / { print \$2" "\$3 }' >>$index`;
}
sub build_small{Code: Select all
# date; cfg-update --index; date
Sun Feb 22 19:54:57 JST 2004
Use of uninitialized value in pattern match (m//) at /usr/bin/cfg-update line 271.
________________________________________________________________________________
cfg-update 1.6 : Building checksum index... (takes a few seconds) done!
________________________________________________________________________________
Sun Feb 22 19:54:59 JST 2004Code: Select all
date; cfg-update --index; date
Sun Feb 22 19:56:04 JST 2004
Use of uninitialized value in pattern match (m//) at /usr/bin/cfg-update line 271.
________________________________________________________________________________
cfg-update 1.6 : Building checksum index... (takes a few seconds) done!
________________________________________________________________________________
Sun Feb 22 20:01:54 JST 2004Code: Select all
--- /var/tmp/portage/cfg-update-1.6/work/cfg-update-1.6/cfg-update.pl 2004-02-13 02:20:47.000000000 +0900
+++ /usr/lib/cfg-update/cfg-update.pl 2004-02-22 20:08:20.993712690 +0900
@@ -239,12 +239,12 @@
}
sub build_big{
- `cat /var/db/pkg/*/*/CONTENTS | grep '^obj ' | awk '{ print \$2" "\$3 }' >>$index`;
+ `cat /var/db/pkg/*/*/CONTENTS | awk '/^obj / { print \$2" "\$3 }' >>$index`;
}
sub build_small{
for (my $i = 0; $i < @dir; ++$i) {
- `cat /var/db/pkg/*/*/CONTENTS | grep '^obj $dir[$i]' | awk '{ print \$2" "\$3 }' >>$index`;
+ `cat /var/db/pkg/*/*/CONTENTS | awk '/^obj $dir[$i]/ { print \$2" "\$3 }' >>$index`;
}
}
@@ -279,7 +279,7 @@
if (-f "$index") {
my $md5sum_file = `md5sum $file1 2>/dev/null | awk '{ print \$1 }' 2>/dev/null`;
chomp $md5sum_file;
- my $md5sum_index = `cat $index | grep $file1 | awk '{ print \$2 }' 2>/dev/null`;
+ my $md5sum_index = `cat $index | awk '/$file1/ { print \$2 }' 2>/dev/null`;
chomp $md5sum_index;
if ($md5sum_index =~ /.+/) {
if ($md5sum_index !~ $md5sum_file) {Code: Select all
root@xentric 56C xentric $ time cfg-update --index
________________________________________________________________________________
cfg-update 1.6 : Building checksum index... (takes a few seconds) done!
________________________________________________________________________________
real 0m12.558s
user 0m1.461s
sys 0m0.737sThanks for reporting this. I have updated the ebuild but I have no wayyngwin wrote:Just a note: textutils is now part of coreutils, you should update the ebuild!
The warnings just show that a (s///) replace and a (m//) match are donendbruin wrote:The program works, but I am not sure if it will work properly.
Code: Select all
190 $_ = $ENV{'CONFIG_PROTECT'};
191 s/"//g; # strip " chars
192 until ($_ =~ /^$/) {Code: Select all
root@gentoo 45C xentric $ grep -H "CONFIG_PROTECT" /etc/*
/etc/csh.env:setenv CONFIG_PROTECT '/usr/X11R6/lib/X11/xkb
/usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown
/usr/share/config'
/etc/csh.env:setenv CONFIG_PROTECT_MASK '/etc/terminfo'
/etc/make.globals:CONFIG_PROTECT="/etc /var/qmail/control
/usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
/etc/make.globals:CONFIG_PROTECT_MASK="/etc/gconf"
/etc/profile.env:export CONFIG_PROTECT='/usr/X11R6/lib/X11/xkb
/usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown
/usr/share/config'
/etc/profile.env:export CONFIG_PROTECT_MASK='/etc/terminfo'
Code: Select all
root@gentoo 43C xentric $ env | grep "CONFIG_PROTECT"
CONFIG_PROTECT_MASK=/etc/terminfo
CONFIG_PROTECT=/usr/X11R6/lib/X11/xkb /usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown /usr/share/config
Code: Select all
sys-apps/cfg-updateYou can check the status of this package here (or possiblyGranted, plenty of ebuilds sit in there and never make it into the tree.
This is not the fault of bugzilla, however. It is more a problem with our
process. Ebuilds make it into the tree when a developer cares about them.
If no developer cares about them, they tend not to make it into the tree.
For right or wrong, that's how things work today.