

Hi Matthias,SpineBuster wrote:When I log into my non-X system (with ssh+Xforwarding), cfg-update won't start the GUI diffs although I'm locally running an X server.
I looked into the script and it uses "xhost" to check if an X server is running but of course this file doesn't even exist on the server, so it never tries to start e.g. xxdiff.

I just ran across this bug and came searching the forums for a solution. For me, I just emerged xhost, even on the non-X systems. It has a couple X library dependencies, but it doesn't drag in all of X.SpineBuster wrote:Hi guys!
Found a bug.
When I log into my non-X system (with ssh+Xforwarding), cfg-update won't start the GUI diffs although I'm locally running an X server.
I looked into the script and it uses "xhost" to check if an X server is running but of course this file doesn't even exist on the server, so it never tries to start e.g. xxdiff.
regards
Matthias
Yeah. keep it around. Works flawlessly here. And, thanks for taking over maintainershiprich0 wrote:FYI - if anybody else is still using this I'm going to go ahead and keep it around. I copied the source to github and if anybody has any suggestions/etc let me know. Patches of course would be more appreciated still...
Always interested in suggestions. I'm not the world's greatest perl guru, so I can't promise the world here...ddriver wrote:I'd like you to keep this going if you can. I've been using it for years after trying the other tools and finding them lacking.
I have a small suggestion for an improvement if you're interested.
OK here goes.rich0 wrote: Always interested in suggestions. I'm not the world's greatest perl guru, so I can't promise the world here...
Code: Select all
* YOU ARE ABOUT TO UPDATE A CUSTOM FILE. YOU SHOULD ASK YOURSELF
* WHERE DOES IT COME FROM AND WHAT HAPPENDS WHEN YOU REPLACE IT?
* PORTAGE DID NOT INSTALL THE CURRENT FILE, MOST LIKELY IT HAS BEEN
* CREATED AFTER INSTALLATION AND IT MAY CONTAIN CUSTOM SETTINGS.
Press [y] - to merge the current file and the ._cfg0000_* file with vimdiff
Press [s] - to skip this update (to investigate first, and try again later)
Press [q] - to quit cfg-update immediatelyCode: Select all
Press [1] - to replace the current file with the ._cfg0000_* file
Press [2] - to keep the current file and remove the ._cfg0000_* fileThat makes sense to me, and without looking at the code it SEEMS like it should be straightforward to implement:ddriver wrote: Does this make sense?
That was my thinking as well.ddriver wrote:Agreed. In which case, can we have these options in both places?ppurka wrote:Well, then the option for restore/keep should not be removed from the old stage. This is because, it often happens that we view the diff first and then decide that the changes in the new file are not what we want.
Thanks! It works!rich0 wrote:I moved the update options earlier. You can download it at:
https://raw.github.com/rich0/cfg-update ... cfg-update
I'm interested in any testing feedback. You can just drop that one file in over /usr/bin/cfg-update if you're otherwise on the latest version in portage.
Since the auto-update feature is working so well I'm finding it tricky to test.
If feedback is generally positive I'll put that in the next release.
Just noticed your thread. I'm sure it could be done -cfg-update actually has a ton of code for managing remote hosts already. I'd probably start looking at that first to see if it can be adapted for your purpose. I'll probably accept patches if you get this to work.devsk wrote:I am building a very small custom OVA for an embedded product using ROOT functionality of the portage (you set ROOT=/home/myova, and emerge installs stuff in /home/myova). My major gripe is the unavailability of cfg-update in that context to manage configuration updates. I can chroot into this ROOT but its very minimal. There is no perl and no X.
I was wondering if cfg-update could be extended to allow to work on an arbitrary root instead of only on "/". Has anybody done any research/work on it?