View previous topic :: View next topic |
Author |
Message |
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sat Jul 22, 2006 4:02 am Post subject: |
|
|
Thanks! xentric that vimdiff script works.
Btw, you asked me to change the script at /usr/lib/cfg-update/cfg-update. However, I found the same script at /usr/bin/cfg-update (diff shows no difference). I modified the script /usr/bin/cfg-update. I think, if the file at /usr/lib is the main file, then the file at /usr/bin should be a symlink to that. This should probably be handled by the ebuild. |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Sat Jul 22, 2006 8:01 am Post subject: |
|
|
ppurka wrote: | Thanks! xentric that vimdiff script works.
Btw, you asked me to change the script at /usr/lib/cfg-update/cfg-update. However, I found the same script at /usr/bin/cfg-update (diff shows no difference). | Sorry, my mistake... I should have told you to edit /usr/bin/cfg-update because the other file /usr/lib/cfg-update/cfg-update is a redundant copy. The next -r4 ebuild will only place the script in /usr/bin/.
Thanks! (I'll edit my last post) _________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Tue Feb 06, 2007 1:04 am Post subject: |
|
|
Comming from paludis support thread ....
Would it be possible to make cfg-update work with paludis? (maybe a paludis use flag or a special release which I can maintain, host ...)
I tried to incorporeate it with paludis using a hook install_pre or install_all_pre: | #!/bin/bash
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
einfo "cfg-update: indexing ..."
if [ -e "/usr/bin/cfg-update" ]; then
cfg-update --index
else
ewarn "cfg-update not found, is it installed?"
fi |
It didn't work because the paludis.log file should be used insted of emerge.log. They are quite different
emerge.log: | 1165200072: Started emerge on: Dec 04, 2006 03:41:12
1165200072: *** emerge nvidia-drivers
1165200075: >>> emerge (1 of 2) sys-kernel/gentoo-sources-2.6.18-r3 to /
1165200075: === (1 of 2) Cleaning (sys-kernel/gentoo-sources-2.6.18-r3::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.18-r3.ebuild)
1165200076: === (1 of 2) Compiling/Merging (sys-kernel/gentoo-sources-2.6.18-r3::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.18-r3.ebuild)
1165200080: *** terminating.
|
paludis.log: | 1170722805: starting install of targets net-misc/rsync
1170722807: starting install of package sys-apps/portage-2.1.2-r8::gentoo (1 of 2)
1170722845: finished install of package sys-apps/portage-2.1.2-r8::gentoo (1 of 2)
1170722845: starting clean of targets sys-apps/portage-2.1.2-r7::installed
1170722845: starting clean of package sys-apps/portage-2.1.2-r7::installed (1 of 2)
1170722847: finished clean of package sys-apps/portage-2.1.2-r7::installed (1 of 2)
1170722847: finished clean of targets sys-apps/portage-2.1.2-r7::installed
1170722847: starting install of package net-misc/rsync-2.6.9-r2::gentoo (2 of 2)
1170722896: finished install of package net-misc/rsync-2.6.9-r2::gentoo (2 of 2)
1170722897: finished install of targets net-misc/rsync
|
There are probably more things to change to make it work with paludis. Any ideas what must be changed?
I like cfg-update, I used it with portage, but now it doesn't work for me with paludis. I am prepared to help as much as I can to make it usable for paludis, too. But I am not close the cfg-update code, so I don't know where to start, ... etc.
I host an overlay, where etc-update was converted by jordan83 to etc-paludis, so it can be used with paludis. Maybe it can help in some way. The link to the overlay is in my signature (paludis-extras).
Maybe a new thread for paludis support should be created, because moderators could want to move it to unsupported software. I'm not sure how it goes... _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Tue Feb 06, 2007 2:07 am Post subject: |
|
|
About technical questions you can turn on #paludis on irc-freenode, the guys there know paludis inside out. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
STEDevil Apprentice
Joined: 24 Apr 2003 Posts: 156
|
Posted: Sun Mar 25, 2007 2:35 pm Post subject: |
|
|
I am also looking for full integration of cfg-update with Paludis. Reading about Paludis I really think its a huge step forward from what I for years have felt is a too stagnant portage, but cfg-update is such a great tool that I just dont want to make the move until it supports Paludis. |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Sun Mar 25, 2007 2:59 pm Post subject: |
|
|
STEDevil wrote: | I am also looking for full integration of cfg-update with Paludis. Reading about Paludis I really think its a huge step forward from what I for years have felt is a too stagnant portage, but cfg-update is such a great tool that I just dont want to make the move until it supports Paludis. | I'm working on support for Paludis at this moment...
I've installed Gentoo in a virtual machine and installed Paludis on it.
cfg-update will soon have support for Paludis! _________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Sun Mar 25, 2007 4:23 pm Post subject: |
|
|
xentric wrote: | I'm working on support for Paludis at this moment...
I've installed Gentoo in a virtual machine and installed Paludis on it.
cfg-update will soon have support for Paludis! |
xentric: you have a tester at your disposal... (/me) _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
XenoTerraCide Veteran
Joined: 18 Jan 2004 Posts: 1418 Location: MI, USA
|
Posted: Sat Apr 14, 2007 7:08 pm Post subject: |
|
|
I hate to sound confused but what do I have to do to get vimdiff to save my changes or not changes. I'm trying to save the update cfg-update thinks I have. in this case my custom cfg-upate.conf vs the "update" when I rebuilt the system. all I want to do is get it to realize that the one in the left pane is the one I want to use. _________________ I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help. |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Sun Apr 15, 2007 8:21 am Post subject: |
|
|
XenoTerraCide wrote: | I hate to sound confused... all I want to do is get it to realize that the one in the left pane is the one I want to use. |
A. If you have selected only lines from the left pane in vimdiff, the left file (current /etc/foo) will not change when you quit vimdiff with :wqa
B. If you do not select anything in vimdiff and just close vimdiff without saving, the left file (current /etc/foo) will also not change.
When you exit vimdiff, cfg-update continues by checking if the left (current /etc/foo) file has changed or not. (compares before and after checksum)
So in case A or B, cfg-update will prompt you:
Code: | No changes detected...
Press [1] - if you want replace the current file with the ._cfg????_ file
Press [2] - if you want to keep the current file and remove the ._cfg????_ file
Press [r] - if you want to re-try merging the files
Press [s] - to skip this update (to investigate first, and try again later)
Press [q] - to quit cfg-update immediately
How do you want to finish this update? [1|2|r|s|q] |
This is where you simply choose [2] to remove /etc/._cfg0000_foo and keep /etc/foo. _________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
legine Guru
Joined: 27 May 2004 Posts: 555 Location: Germany
|
Posted: Sun Apr 15, 2007 9:22 am Post subject: |
|
|
raising hand for testing paludis support.
At the moment cfg-update is quite annoying with paludis.
I am ready for test if you need more testers. _________________ quote from Spaceballs:
Dark Helmet:[...] we were told to comb the desert, so we're combing it! [puts down bullhorn] Find anything yet?!
Soldier: Nothing yet, sir. |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Mon Apr 16, 2007 10:40 pm Post subject: |
|
|
legine wrote: | raising hand for testing paludis support. |
Well, cfg-update is ready for release, supporting Paludis and all, but Paludis itself had a problem (now fixed) which causes some problems when using cfg-update. So I probably have to include a mandatory check for users with /usr/bin/paludis on their system. I'm still working on this issue
To explain it very short: Paludis <0.20.0 stored the wrong checksum in the CONTENTS file during installation. It'd put the checksum of the /etc/foo file in the CONTENTS file instead of the checksum of the /etc/._cfg0000_foo file. As far as I know cfg-update is the only tool that uses these CONTENTS files. I found this issue during testing with an older version of Paludis but in Paludis version 0.20.0 they changed that part of the sourcecode which effectively fixed this bug...
The problem is that cfg-update uses this checksum to determine if a configuration file has been modified or not. When it hasn't been modified after installation the cfg-update automatically overwrites the current file with the update. That's where the shit hits the fan... because the checksum of /etc/foo was written to the CONTENTS file, cfg-update sees the /etc/foo as unmodified and replaces it with /etc/._cfg0000_foo. So there is a possibility that custom settings are lost!
I wrote a subroutine that checks which packages have been installed with Paludis <0.20.0, for each of those it also checks if they have put files in one of the protected directories. These packages are potential cases where you can loose your custom settings so you should re-install those packages. You'll be presented with a list of packages which need to be re-installed with Paludis 0.20.0 or higher...
But I still have to test this properly and decide if I want to make this test mandatory or if it's gonna be used with an option like --paludis-check.
If you still want to test the ebuild including the check for packages that need to be re-installed, you can grab the ebuild and the tarball and join #paludis-extras on Freenode to share your findings with me _________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
legine Guru
Joined: 27 May 2004 Posts: 555 Location: Germany
|
Posted: Sat Apr 21, 2007 4:47 pm Post subject: |
|
|
Hej,
ebuild grabbed,
tarball grabbed.
As you can see I have a small problem on latency...
I am on weekdays without Internet (again ), my modem throws an odd error
So I am back to the habbit that I check all things on weekends where I usually have only view time.
I noted all and will report back, here or to freenode if I make it
I cya! _________________ quote from Spaceballs:
Dark Helmet:[...] we were told to comb the desert, so we're combing it! [puts down bullhorn] Find anything yet?!
Soldier: Nothing yet, sir. |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Sun Jun 10, 2007 8:03 pm Post subject: |
|
|
Does cfg-update still require Portage, because it needs "portageq" ?
I use Paludis, and the hook seems to work well, but 'cfg-update -l' doesn't report any '._cfg*' files.
I am using Paludis 0.24.2 and cfg-update 1.8.2-r1.
Thanks. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Mon Jun 11, 2007 12:15 am Post subject: |
|
|
Hypnos wrote: | Does cfg-update still require Portage, because it needs "portageq" ?
I use Paludis, and the hook seems to work well, but 'cfg-update -l' doesn't report any '._cfg*' files.
I am using Paludis 0.24.2 and cfg-update 1.8.2-r1.
Thanks. | Nope, when paludis is the package manager (which is determined by looking at the first line of the checksum index), cfg-update takes the protected directories from /var/db/pkg/.cache/all_CONFIG_PROTECT instead of using portageq.
Please check if that file contains the proper directories... _________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Jun 11, 2007 5:35 am Post subject: |
|
|
/var/db/pkg/.cache/all_CONFIG_PROTECT has the right directories, and /var/lib/cfg-update/checksum.index contains "Paludis" in the first line.
However, "cfg-update -s" doesn't report these directories, and "cfg-update -l" doesn't show any files to update, even though they are there. This is even with taking care to source root's bashrc.
Here is the first section of the debug info:
Code: | <show_debug_info>
version = 1.8.2-r1
merge_tool_name = xxdiff
merge_tool = /usr/bin/xxdiff
xxdiff_style = --style Keramik
index_file = /var/lib/cfg-update/checksum.index
hosts_file = /etc/cfg-update.hosts
portage_hook = /etc/portage/bashrc
paludis_hook = /usr/share/paludis/hooks/install_all_pre/cfg-update.bash
pkg_manager = Portage
pkg_db = /var/db/pkg
install_log = /var/log/emerge.log
find_string = ::: completed emerge
backup_path = /var/lib/cfg-update/backups
enable_backups = yes
enable_stage1 = yes
enable_stage2 = yes
enable_stage3 = yes
enable_stage4 = yes
enable_stage5 = yes
config_new = ._cfg????_*
rm_new = \._cfg...._
temp_new = ._temp-new-cfg_*
backup_new = ._new-cfg_*
restore_new = ._cfg0000_*
rm_old = \._old-cfg_
temp_old = ._temp-old-cfg_*
backup_old = ._old-cfg_*
restore_old = *
merged = *.merge
opt_i = 0
opt_f = 0
opt_s = 1
opt_l = 0
opt_u = 0
opt_b = 0
opt_r = 0
opt_a = 0
opt_m = 0
opt_d = 1
opt_p = 0
opt_v = 0
opt_h = novalue
opt_t = novalue
opt_help = 0
opt_test_code = 0
opt_ebuild = 0
opt_check_hosts = 0
opt_mount_hosts = 0
opt_unmount_hosts = 0
opt_check_packages = 0
opt_move_backups = 0
opt_disable_portage_hook = 0
opt_disable_paludis_hook = 0
opt_optimize_backups = 0
mount_count = 1
mount_first = 0
mount_last = 0
mount_point[0] = ""
</show_debug_info> |
It appears that cfg-update still thinks the package manager is Portage, despite what I wrote above. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Mon Jun 11, 2007 10:24 pm Post subject: |
|
|
Hypnos wrote: | /var/db/pkg/.cache/all_CONFIG_PROTECT has the right directories, and /var/lib/cfg-update/checksum.index contains "Paludis" in the first line. However, "cfg-update -s" doesn't report these directories, and "cfg-update -l" doesn't show any files to update, even though they are there. This is even with taking care to source root's bashrc.
It appears that cfg-update still thinks the package manager is Portage, despite what I wrote above. | This is weird...
The debug output you posted is printed before the correct pkg_manager is set, so it doesn't mean that it uses Portage further down the script too.
Can you post the output of "cfg-update -d -s", especially this part: Code: | <list_dirs>
<find_protected_dirs>
portageq config_protect # <-- this could be different in your case... if it doesn't print anything, pkg_manager is not Portage!
</find_protected_dirs> |
_________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Tue Jun 12, 2007 2:12 am Post subject: |
|
|
Here is the output:
Code: | <show_debug_info>
version = 1.8.2-r1
merge_tool_name = xxdiff
merge_tool = /usr/bin/xxdiff
xxdiff_style = --style Keramik
index_file = /var/lib/cfg-update/checksum.index
hosts_file = /etc/cfg-update.hosts
portage_hook = /etc/portage/bashrc
paludis_hook = /usr/share/paludis/hooks/install_all_pre/cfg-update.bash
pkg_manager = Portage
pkg_db = /var/db/pkg
install_log = /var/log/emerge.log
find_string = ::: completed emerge
backup_path = /var/lib/cfg-update/backups
enable_backups = yes
enable_stage1 = yes
enable_stage2 = yes
enable_stage3 = yes
enable_stage4 = yes
enable_stage5 = yes
config_new = ._cfg????_*
rm_new = \._cfg...._
temp_new = ._temp-new-cfg_*
backup_new = ._new-cfg_*
restore_new = ._cfg0000_*
rm_old = \._old-cfg_
temp_old = ._temp-old-cfg_*
backup_old = ._old-cfg_*
restore_old = *
merged = *.merge
opt_i = 0
opt_f = 0
opt_s = 1
opt_l = 0
opt_u = 0
opt_b = 0
opt_r = 0
opt_a = 0
opt_m = 0
opt_d = 1
opt_p = 0
opt_v = 0
opt_h = novalue
opt_t = novalue
opt_help = 0
opt_test_code = 0
opt_ebuild = 0
opt_check_hosts = 0
opt_mount_hosts = 0
opt_unmount_hosts = 0
opt_check_packages = 0
opt_move_backups = 0
opt_disable_portage_hook = 0
opt_disable_paludis_hook = 0
opt_optimize_backups = 0
mount_count = 1
mount_first = 0
mount_last = 0
mount_point[0] = ""
</show_debug_info>
<check_hooks>
Paludis hook is already enabled...
</check_hooks>
<check_tool>
**********************************************************************
Mergetool "/usr/bin/xxdiff" not found...
The recommended merge tool for cfg-update is xxdiff, a nice GUI tool.
Please install dev-util/xxdiff or change the MERGE_TOOL variable to
your own favorite tool. See /etc/cfg-update.conf for more details!
**********************************************************************
Switching to "sdiff" for now...
tool_supports_2way = yes
tool_supports_3way = no
stage3 disabled...
tool_saves_mergefile_when_aborted = no
tool_needs_gui = no
</check_tool>
<list_dirs>
<find_protected_dirs>
portageq config_protect
Can't exec "portageq": No such file or directory at /usr/bin/cfg-update line 992.
Use of uninitialized value in substitution (s///) at /usr/bin/cfg-update line 993.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfg-update line 995.
No protected directories found...
</find_protected_dirs>
These (localhost) directories are protected with CONFIG_PROTECT:
<find_masked_dirs>
portageq config_protect_mask
Can't exec "portageq": No such file or directory at /usr/bin/cfg-update line 1025.
Use of uninitialized value in substitution (s///) at /usr/bin/cfg-update line 1026.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfg-update line 1028.
No masked directories found...
</find_masked_dirs>
These (localhost) directories are excluded with CONFIG_PROTECT_MASK:
</list_dirs> |
Here is the head of /var/lib/checksum.index:
Code: | Paludis:1181503013
/etc/gconf/schemas/gnome-system-tools.schemas 34baaa6050e88222a026406f88621924
/etc/cron.daily/logrotate.cron cf1ca2cfa810abaefc504a76ca38b52a
/etc/logrotate.d/.keep_app-admin_logrotate-0 d41d8cd98f00b204e9800998ecf8427e
/etc/logrotate.conf 5692e613153f372df5b7510b39ba9c5c
/etc/conf.d/metalog ec30e8aa71d3b8fa92e0d6d1ca908797
/etc/init.d/metalog deb49ff3e6119491ebd80ff737001d89
/etc/metalog.conf 76343697f5384e96357e3249cb94d34b
/etc/sudoers 110e432ea6bd949b705b1758a0c0eaf7
/etc/ldap.conf.sudo 44bd73086280a11d3282d023acbb981c |
_________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Tue Jun 12, 2007 5:30 pm Post subject: |
|
|
First run: "cp /usr/bin/cfg-update /usr/bin/cfg-update.backup"
Then go to /usr/bin/cfg-update line 390: Code: | # If --index --paludis is used (in Paludis hook) then set the package manager to Paludis and check/build index... |
Insert the following code right above that line: Code: | # If the index does exist, take the correct pkg_manager from the first line (except when --ebuild option is used)...
if (($opt_ebuild == 0) && (-e "$index_file")) {
if ($opt_d >= 1) { print "$tab"." head -n1 $index_file\n"; }
my $first_line = `head -n1 $index_file $debug`;
chomp $first_line;
$_ = $first_line; /:/; $pkg_manager = $`; # take string to left of ":", that should be the pkg_manager
}
# If debug mode is detected show most important variables...
if ($opt_d >= 1) { &show_debug_info; } | Then try "cfg-update -d -s" again... _________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Tue Jun 12, 2007 6:07 pm Post subject: |
|
|
Seems to be working now. Here is the "-d -s" output:
Code: | <show_debug_info>
version = 1.8.2-r1
merge_tool_name = xxdiff
merge_tool = /usr/bin/xxdiff
xxdiff_style = --style Keramik
index_file = /var/lib/cfg-update/checksum.index
hosts_file = /etc/cfg-update.hosts
portage_hook = /etc/portage/bashrc
paludis_hook = /usr/share/paludis/hooks/install_all_pre/cfg-update.bash
pkg_manager = Portage
pkg_db = /var/db/pkg
install_log = /var/log/emerge.log
find_string = ::: completed emerge
backup_path = /var/lib/cfg-update/backups
enable_backups = yes
enable_stage1 = yes
enable_stage2 = yes
enable_stage3 = yes
enable_stage4 = yes
enable_stage5 = yes
config_new = ._cfg????_*
rm_new = \._cfg...._
temp_new = ._temp-new-cfg_*
backup_new = ._new-cfg_*
restore_new = ._cfg0000_*
rm_old = \._old-cfg_
temp_old = ._temp-old-cfg_*
backup_old = ._old-cfg_*
restore_old = *
merged = *.merge
opt_i = 0
opt_f = 0
opt_s = 1
opt_l = 0
opt_u = 0
opt_b = 0
opt_r = 0
opt_a = 0
opt_m = 0
opt_d = 1
opt_p = 0
opt_v = 0
opt_h = novalue
opt_t = novalue
opt_help = 0
opt_test_code = 0
opt_ebuild = 0
opt_check_hosts = 0
opt_mount_hosts = 0
opt_unmount_hosts = 0
opt_check_packages = 0
opt_move_backups = 0
opt_disable_portage_hook = 0
opt_disable_paludis_hook = 0
opt_optimize_backups = 0
mount_count = 1
mount_first = 0
mount_last = 0
mount_point[0] = ""
</show_debug_info>
head -n1 /var/lib/cfg-update/checksum.index
<show_debug_info>
version = 1.8.2-r1
merge_tool_name = xxdiff
merge_tool = /usr/bin/xxdiff
xxdiff_style = --style Keramik
index_file = /var/lib/cfg-update/checksum.index
hosts_file = /etc/cfg-update.hosts
portage_hook = /etc/portage/bashrc
paludis_hook = /usr/share/paludis/hooks/install_all_pre/cfg-update.bash
pkg_manager = Paludis
pkg_db = /var/db/pkg
install_log = /var/log/emerge.log
find_string = ::: completed emerge
backup_path = /var/lib/cfg-update/backups
enable_backups = yes
enable_stage1 = yes
enable_stage2 = yes
enable_stage3 = yes
enable_stage4 = yes
enable_stage5 = yes
config_new = ._cfg????_*
rm_new = \._cfg...._
temp_new = ._temp-new-cfg_*
backup_new = ._new-cfg_*
restore_new = ._cfg0000_*
rm_old = \._old-cfg_
temp_old = ._temp-old-cfg_*
backup_old = ._old-cfg_*
restore_old = *
merged = *.merge
opt_i = 0
opt_f = 0
opt_s = 1
opt_l = 0
opt_u = 0
opt_b = 0
opt_r = 0
opt_a = 0
opt_m = 0
opt_d = 1
opt_p = 0
opt_v = 0
opt_h = novalue
opt_t = novalue
opt_help = 0
opt_test_code = 0
opt_ebuild = 0
opt_check_hosts = 0
opt_mount_hosts = 0
opt_unmount_hosts = 0
opt_check_packages = 0
opt_move_backups = 0
opt_disable_portage_hook = 0
opt_disable_paludis_hook = 0
opt_optimize_backups = 0
mount_count = 1
mount_first = 0
mount_last = 0
mount_point[0] = ""
</show_debug_info>
<check_hooks>
Paludis hook is already enabled...
</check_hooks>
<check_tool>
**********************************************************************
Mergetool "/usr/bin/xxdiff" not found...
The recommended merge tool for cfg-update is xxdiff, a nice GUI tool.
Please install dev-util/xxdiff or change the MERGE_TOOL variable to
your own favorite tool. See /etc/cfg-update.conf for more details!
**********************************************************************
Switching to "sdiff" for now...
tool_supports_2way = yes
tool_supports_3way = no
stage3 disabled...
tool_saves_mergefile_when_aborted = no
tool_needs_gui = no
</check_tool>
<list_dirs>
<find_protected_dirs>
</find_protected_dirs>
These (localhost) directories are protected with CONFIG_PROTECT:
/etc
/usr/lib/mozilla/defaults/pref
/usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/
/usr/share/X11/xkb
<find_masked_dirs>
No masked directories found...
</find_masked_dirs>
These (localhost) directories are excluded with CONFIG_PROTECT_MASK:
</list_dirs> |
"cfg-update -l" now gives the right output as well.
Thanks! _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Tue Jun 12, 2007 6:32 pm Post subject: |
|
|
Hypnos wrote: | Seems to be working now...
"cfg-update -l" now gives the right output as well.
Thanks! | Great thanks for reporting this!
This bug will be fixed in the next release. _________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Wed Jul 04, 2007 12:09 am Post subject: |
|
|
Now cfg-update -u gives this warning:
Can't open file: /var/db/pkg/.cache/all_CONFIG_PROTECT!
Btw, I use portage, not paludis. Any idea?
The output of cfg-update -d -s
Code: |
<show_debug_info>
version = 1.8.2-r1
merge_tool_name = xxdiff
merge_tool = /usr/bin/xxdiff
xxdiff_style = --style Keramik
index_file = /var/lib/cfg-update/checksum.index
hosts_file = /etc/cfg-update.hosts
portage_hook = /etc/portage/bashrc
paludis_hook = /usr/share/paludis/hooks/install_all_pre/cfg-update.bash
pkg_manager = Portage
pkg_db = /var/db/pkg
install_log = /var/log/emerge.log
find_string = ::: completed emerge
backup_path = /var/lib/cfg-update/backups
enable_backups = yes
enable_stage1 = yes
enable_stage2 = yes
enable_stage3 = yes
enable_stage4 = yes
enable_stage5 = yes
config_new = ._cfg????_*
rm_new = \._cfg...._
temp_new = ._temp-new-cfg_*
backup_new = ._new-cfg_*
restore_new = ._cfg0000_*
rm_old = \._old-cfg_
temp_old = ._temp-old-cfg_*
backup_old = ._old-cfg_*
restore_old = *
merged = *.merge
opt_i = 0
opt_f = 0
opt_s = 1
opt_l = 0
opt_u = 0
opt_b = 0
opt_r = 0
opt_a = 0
opt_m = 0
opt_d = 1
opt_p = 0
opt_v = 0
opt_h = novalue
opt_t = novalue
opt_help = 0
opt_test_code = 0
opt_ebuild = 0
opt_check_hosts = 0
opt_mount_hosts = 0
opt_unmount_hosts = 0
opt_check_packages = 0
opt_move_backups = 0
opt_disable_portage_hook = 0
opt_disable_paludis_hook = 0
opt_optimize_backups = 0
mount_count = 1
mount_first = 0
mount_last = 0
mount_point[0] = ""
</show_debug_info>
<find_protected_dirs>
Can't open file: /var/db/pkg/.cache/all_CONFIG_PROTECT!
|
_________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
xentric Guru
Joined: 16 Mar 2003 Posts: 410 Location: Netherlands
|
Posted: Fri Jul 06, 2007 8:37 pm Post subject: |
|
|
keenblade wrote: | Now cfg-update -u gives this warning:
Can't open file: /var/db/pkg/.cache/all_CONFIG_PROTECT!
Btw, I use portage, not paludis. Any idea? |
I just had surgery on tuesday and I'm temporarily staying at my parents house.
I'll probably be back home next week. As soon as I get home I'll check into this. _________________ When all else fails, read the manual...
Registered Linux User #340626 |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Fri Jul 06, 2007 9:02 pm Post subject: |
|
|
xentric wrote: | keenblade wrote: | Now cfg-update -u gives this warning:
Can't open file: /var/db/pkg/.cache/all_CONFIG_PROTECT!
Btw, I use portage, not paludis. Any idea? |
I just had surgery on tuesday and I'm temporarily staying at my parents house.
I'll probably be back home next week. As soon as I get home I'll check into this. |
Hi, xentric. I hope the surgery was successful and you're well.
For the error I temporarily created the file /var/db/pkg/.cache/all_CONFIG_PROTECT
and run cfg-update. There were no errors. Then just to be sure I deleted the /var/db/pkg/.cache/ directory,
run cfg-update, everything was adequate. _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
placematts n00b
Joined: 15 Jul 2007 Posts: 2
|
Posted: Sun Jul 15, 2007 2:52 am Post subject: cfg-update, all_CONFIG_PROTECT, and Paludis |
|
|
xentric wrote: | keenblade wrote: | Now cfg-update -u gives this warning:
Can't open file: /var/db/pkg/.cache/all_CONFIG_PROTECT!
Btw, I use portage, not paludis. Any idea? |
I just had surgery on tuesday and I'm temporarily staying at my parents house.
I'll probably be back home next week. As soon as I get home I'll check into this. |
Hi Xentric,
Hope all is well since the surgery.
I just recently reinstalled Gentoo and decided to try Paludis.
Of course I wanted to keep cfg-update around, and I was pleased to find that it supports Paludis!
So, I finished the Gentoo install, emerged cfg-update (and a few other small utils), and then emerged Paludis!
Anyway, on to the point...
After installing Paludis I attempted to update the world, and received the following error from the cfg-hook:
Code: | cfg-update> *cfg-update:
cfg-update> Can't open file: /var/db/pkg/.cache/all_CONFIG_PROTECT! |
I understand that cfg-update (under Paludis) relies upon all_CONFIG_PROTECT as its list of protected directories.
I also understand that all_CONFIG_PROTECT is update by two install_post / install_all_post hooks.
The thing is, all_CONFIG_PROTECT is also initially generated by the above hooks, after Paludis installs its first package ever.
Since:
- cfg-update needs all_CONFIG_PROTECT
- I already had cfg-update installed before I installed Paludis
- all_CONFIG_PROTECT is not initially generated until after Paludis installs its first package ever
- The cfg-update hook runs as install_all_pre
Means: Paludis will not work until cfg-update is removed or until something like what I did (see below) is done.
So, to fix the problem, I:
Code: | mv -t /tmp /usr/share/paludis/hooks/install_all_pre/cfg-update.bash
paludis -i some_package
mv -t /usr/share/paludis/hooks/install_all_pre/ /tmp/cfg-update.bash |
and now things are as they should be for cfg-update and Paludis to work together.
I'm not familiar enough with Paludis to know why all_CONFIG_PROTECT is not initially generated upon install of Paludis, maybe there is a good reason.
Maybe Paludis actually *does* generate them, except in my case, I may have had an error I didn't see and they weren't generated (but I don't think that's the case). |
|
Back to top |
|
|
lngndvs n00b
Joined: 02 Jan 2006 Posts: 30
|
Posted: Tue Sep 04, 2007 3:04 am Post subject: OOPS. cfg-update error due to unused install of paludis |
|
|
[SOLVED: I had not removed paludis. Once I unmerged paludis, cfg-update ran fine, and cfg-update --check-packages found no problem. My apologies.]
Curiosity killed the cat. I installed paludis, uninstalled without using it (it was too complicated for me to get involved with at the time, maybe ever).
Recently cfg-update gives the following error:
Littlebird lngndvs # cfg-update --check-packages
Can't open file: /var/db/pkg/.cache/all_CONFIG_PROTECT!
You will notive that message even if I run cfg-update --check-packages.
I guess if one installed paludis and installed a package with it, then he can fix his system with this command? But I have NOT installed a single package and my cfg-update is borked.
What can I do to recover? Is there a config file somewhere that paludis touched?
Thank you,
Alan |
|
Back to top |
|
|
|