Code: Select all
diff="tkdiff %s %s"Code: Select all
diff_command="tkdiff %file1 %file2"Code: Select all
diff="tkdiff %s %s"Code: Select all
diff_command="tkdiff %file1 %file2"yep. this was a bug in the last portage update that has been fixed. re-emerge portage and it should start working again. there's a bugzilla number for it but i'm way too lazy tonite to look it up.Duty wrote:I get this error trying to run dispatch-conf:
Anyone have an idea?Code: Select all
Traceback (most recent call last): File "/usr/sbin/dispatch-conf", line 309, in ? d.grind (portage.settings ['CONFIG_PROTECT']) File "/usr/sbin/dispatch-conf", line 145, in grind confs = filter (f, confs) File "/usr/sbin/dispatch-conf", line 135, in f self.replace(newconf, conf['current']) File "/usr/sbin/dispatch-conf", line 222, in replace os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.config["log-file"]) AttributeError: dispatch instance has no attribute 'config'
Thanks for the help, but that applies to the standard diff executable and not to the tkdiff program (which doesn't have a man page eitherdirtyepic wrote:nihilo:
is that how you mean or was it something else? i haven't used tkdiffb.robmoss wrote:Oh, and don't let dispatch-conf try to diff binary files (that's the -a flag in your diff line in dispatch-conf.conf). Take that flag out! Otherwise you'll get all sorts of interesting bugs showing up...
I would have expected a new release version to solve this, but that doesn't seem to be the case. I'm quite sure I have the latest version (the last few times I did "emerge sync" it didn't give me a newer version) and I also have this problem. The last time I did "emerge sync" was some 12 hours ago.dirtyepic wrote:yep. this was a bug in the last portage update that has been fixed. re-emerge portage and it should start working again. there's a bugzilla number for it but i'm way too lazy tonite to look it up.Duty wrote:I get this error trying to run dispatch-conf:
Anyone have an idea?Code: Select all
Traceback (most recent call last): File "/usr/sbin/dispatch-conf", line 309, in ? d.grind (portage.settings ['CONFIG_PROTECT']) File "/usr/sbin/dispatch-conf", line 145, in grind confs = filter (f, confs) File "/usr/sbin/dispatch-conf", line 135, in f self.replace(newconf, conf['current']) File "/usr/sbin/dispatch-conf", line 222, in replace os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.config["log-file"]) AttributeError: dispatch instance has no attribute 'config'

Code: Select all
# Disables the magic-sysrq key
#kernel.sysrq = 0
<<<<<<< /etc/sysctl.conf
# set kernel to re-use RAM rather than swap
vm.swappiness = 25
=======
# When the kernel panics, automatically reboot in 3 seconds
#kernel.panic = 3
# Allow for more PIDs (cool factor!); may break some programs
#kernel.pid_max = 999999
# TCP Port for lock manager
#sys.fs.nfs.nlm_tcpport = 0
# UDP Port for lock manager
#sys.fs.nfs.nlm_udpport = 0
>>>>>>> /etc/._cfg0000_sysctl.conf
You answered your own question you're using Gentoo, a noncommercial distribution of Linux, and expecting commercial level perfection. There are many threads on this board that discuss why Gentoo is not great for a production environment. IMO dispatch-conf works very well, I've personally never had any problems.mallchin wrote:Well, dispatch-conf has started to fsck up my config files, mearly running it is enough to break things...
The diff variants (stored in rcs) are making there way into /etc and, naturally, Gentoo spits feathers when it boots....
Has anyone else had this?
*edit*
Just seen your post markandrew, same problem here.
This kinda sux; I use Gentoo in a production enviroment and had I have been using dispatch-conf (as planned) it would have caused me a load of grief....
How come things aren't tested
If you still haven't solved this, the solution is to change self.config to self.options on line 222 of the dispatch-conf script, which is the last line quoted in that stack trace you posted ("os.system((DIFF_CONTENTS .... ))").Light wrote:I would have expected a new release version to solve this, but that doesn't seem to be the case. I'm quite sure I have the latest version (the last few times I did "emerge sync" it didn't give me a newer version) and I also have this problem. The last time I did "emerge sync" was some 12 hours ago.dirtyepic wrote:yep. this was a bug in the last portage update that has been fixed. re-emerge portage and it should start working again. there's a bugzilla number for it but i'm way too lazy tonite to look it up.Duty wrote:I get this error trying to run dispatch-conf:
Anyone have an idea?Code: Select all
Traceback (most recent call last): File "/usr/sbin/dispatch-conf", line 309, in ? d.grind (portage.settings ['CONFIG_PROTECT']) File "/usr/sbin/dispatch-conf", line 145, in grind confs = filter (f, confs) File "/usr/sbin/dispatch-conf", line 135, in f self.replace(newconf, conf['current']) File "/usr/sbin/dispatch-conf", line 222, in replace os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.config["log-file"]) AttributeError: dispatch instance has no attribute 'config'
But I guess I would have to do "emerge portage" to solve this? I might have to give that a try then
Thanksnihilo wrote:
If you still haven't solved this, the solution is to change self.config to self.options on line 222 of the dispatch-conf script, which is the last line quoted in that stack trace you posted ("os.system((DIFF_CONTENTS .... ))").
hth...

Why was it fixed in such a way as to require a remerge?dirtyepic wrote:yep. this was a bug in the last portage update that has been fixed. re-emerge portage and it should start working again. there's a bugzilla number for it but i'm way too lazy tonite to look it up.Duty wrote:I get this error trying to run dispatch-conf:
Anyone have an idea?Code: Select all
Traceback (most recent call last): File "/usr/sbin/dispatch-conf", line 309, in ? d.grind (portage.settings ['CONFIG_PROTECT']) File "/usr/sbin/dispatch-conf", line 145, in grind confs = filter (f, confs) File "/usr/sbin/dispatch-conf", line 135, in f self.replace(newconf, conf['current']) File "/usr/sbin/dispatch-conf", line 222, in replace os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.config["log-file"]) AttributeError: dispatch instance has no attribute 'config'
Code: Select all
Traceback (most recent call last):
File "/usr/sbin//dispatch-conf", line 309, in ?
d.grind (portage.settings ['CONFIG_PROTECT'])
File "/usr/sbin//dispatch-conf", line 200, in grind
os.system(os.environ['EDITOR'] + ' ' + newconf)
File "/usr/lib/python2.3/UserDict.py", line 19, in __getitem__
def __getitem__(self, key): return self.data[key]
KeyError: 'EDITOR'
Code: Select all
echo $EDITORdirtyepic wrote:what doesturn up and can you run that from the command line?Code: Select all
echo $EDITOR
Code: Select all
/bin/nanoCode: Select all
CONFIG_PROTECT_MASK="/usr/X11R6"I agree, it should at least be an menu option.dhurt wrote:one thing I miss from etc-update is the list of files that need to be modified. I know which files on my system I have modified, and so I would change those and then just scan the list of files one more time and then have etc-update nuke/update all the rest of the files.
I stole the first bit of code from dispatch-conf and modified it like sogmtl3 wrote:According to the make.conf man page, I can set CONFIG_PROTECT_MASK to a space delimeted list of directories that you want to exempt from config file protection. Here's mine:So, how come dispatch-conf is still asking me about updating files under /usr/X11R6/lib/*?Code: Select all
CONFIG_PROTECT_MASK="/usr/X11R6"
Code: Select all
#!/usr/bin/python -O
#
# dispatch-conf-debug-CONFIG_PROTECT_MASK
# - figure out why dispatch-conf ingores CONFIG_PROTECT_MASK
#
# Jeremy Wohl (http://igmus.org)
#
#
from stat import *
from random import *
import os, shutil, sys, string, re, commands, atexit
sys.path = ["/usr/lib/portage/pym"]+sys.path
import portage, dispatch_conf
print portage.settings ['CONFIG_PROTECT_MASK']Code: Select all
$ ./cfgProtMaskTest
/etc/gconf /etc/terminfo /usr/X11R6/lib /etc/env.d
$
Yup. You can hose your system just as easyly with dispatch-conf.Stiffler wrote:Can someone please explain the differences between etc-update and dispatch-conf? I've hosed my box using etc-update and I really don't want to do that again. The best way to not screw something up is understanding how it works...

00tux wrote:I'm totally confused by the output that I am given. So if I know that I have edited the config file what do I do. The - and + everywhere are confuzling the newby.
Yup. You can hose your system just as easyly with dispatch-conf.[/quote]Stiffler wrote:Can someone please explain the differences between etc-update and dispatch-conf? I've hosed my box using etc-update and I really don't want to do that again. The best way to not screw something up is understanding how it works...

Its save.bvrom wrote:My / (root) partition is getting too full and I'm seeing where I can delete some data. My /etc/config-archive (dispatche-conf's archive that is) has become quite big. Is it safe to remove the contents of this directory? I know my current config files are OK and I have made backups before, so there is currently no need to revert to older /etc files. The manpage and wiki page don't seem to give any info on this.