[edit - I moved to Other Things Gentoo after thinking about it a little more clearly..
You can turn off the backup function with "cfg-update -c"Is there any easy way to turn off or clean up the creation of oldcfg and newcfg files?
Example:Also, it would be nice to have the option to either replace the original or remove the update after the editor is closed. Sometimes I just need to see what's going on with the new update. As it is now I have to kill the program and restart it.
Code: Select all
Update file: /etc/test [y|n|o|q|?] ?Code: Select all
Delete file: /etc/._cfg0000_test [y|n|q|?] ?Code: Select all
xentric@gentoo / $ su
password: **********
root@gentoo / $ cd /usr/local/bin
root@gentoo bin $ wget http://people.zeelandnet.nl/xentric/cfg-update/1.1/cfg-update
root@gentoo bin $ chmod 755 cfg-update
root@gentoo bin $ emerge perl
root@gentoo bin $ emerge gentoolkit
root@gentoo bin $ emerge xxdiff
Code: Select all
root@gentoo bin $ cfg-update --on
Code: Select all
bash: cfg-update: command not found
Code: Select all
root@gentoo bin $ perl cfg-update -i
Code: Select all
Portage Logdir: not found... Edit /etc/make.conf !
Code: Select all
PORT_LOGDIR=/var/log/portageCode: Select all
Portage Logdir: "/var/log/portage" not found... Edit /etc/make.conf !
Code: Select all
## Quick fix to set up environment when su'ed to root:
[ -f /etc/profile ] && source /etc/profileCode: Select all
XTerm*loginShell: truexentric, add the following in your "sub check_index", after parsing PORT_LOGDIR:xentric wrote:Hi canibuz,
That error message means that you probably don't have a logdir
specified in /etc/make.conf
Just enable this line and add a directory in /etc/make.conf:Code: Select all
PORT_LOGDIR=/var/log/portage
Code: Select all
kyron root # diff -Nau cfg-update.1 cfg-update
--- cfg-update.1 2003-11-04 14:47:05.000000000 -0500
+++ cfg-update 2003-11-07 19:08:51.000000000 -0500
@@ -141,6 +141,7 @@
sub check_index{
$logdir = `cat /etc/make.conf | grep '^PORT_LOGDIR='`;
$logdir =~ s/^PORT_LOGDIR\s*=\s*//;
+ $logdir =~ s/"//g;
chomp $logdir;
if (!-e $logdir) { print "Portage Logdir: $logdir not found... Edit /etc/make.conf !\n\n"; exit; }
$log_pkg = `ls -t $logdir`;
I have overlooked the fact that some people might use " quotes in thekyron wrote:xentric, add the following in your "sub check_index", after parsing PORT_LOGDIR:
$logdir =~ s/"//g;
The double quotes weren't filtered out and that is why your script didn't recognise the path as valid.
Needless to say I had the same problem...and it's now fixed with that added line
Change the following line in /etc/make.conf:dabi_du wrote:I get the folowing reply after "cfg-update --check"I have no idea what to change in make.conf.Code: Select all
matt bin # cfg-update --check Portage Logdir: not found... Edit /etc/make.conf !
Any sugestion please.
Code: Select all
#PORT_LOGDIR=Code: Select all
PORT_LOGDIR=/var/log/portageCode: Select all
xentric@gentoo / $ su
password: ******
root@gentoo / $ emerge cfg-update
root@gentoo / $ cfg-update --check # quickfix for root environment
root@gentoo / $ cfg-update --on # to integrate with emerge
root@gentoo / $ source /etc/profile # to load /etc/profile again
root@gentoo / $ cfg-update --index # create the checksum index
Code: Select all
xentric@gentoo / $ xhost +localhost # run as user who started XFree!
Code: Select all
root@yourbox / # cd /usr/lib/cfg-update
root@yourbox cfg-update # rm cfg-update.pl
root@yourbox cfg-update # wget http://people.zeelandnet.nl/xentric/cfg-update/1.2/cfg-update
root@yourbox cfg-update # mv cfg-update cfg-update.pl
root@yourbox cfg-update # chmod 755 cfg-update.pl
Code: Select all
use of uninitialized value in concatenation (.) or string at cfg-update line 643 I don't have any variable on line 643 so your best bet is to download the latest versionsmith wrote:I still get this message at start up.. any ideas?
Thanks for notifying me, fixed it...btw: Just to let you know... I think the changelog dates in the other thread might be out of order.. not trying to be picky just thought you would want to check it.