Well, I have never tried to set an alias from there...sfp-a7x wrote:Rather than making the alias for emerge in /etc/profile, why not add a file in /etc/env.d and run env-update?
Is /etc/env.d is only for environment variables?

If you do a "cfg-update -l" it'll show you which files have ._cfg0000_files and need to be updated. It will also show the status of these files (modified, unmodified, unknown, etc). The first priority of cfg-update is to let you safely update your system. This means that the status of a file has a direct effect on the way cfg-update handles that particular file. If a file has been changed after it was installed by portage, it probably means that you, a system process or a program have put settings in that file so cfg-update will never simply overwrite the current (modified) file with the ._cfg0000_file. It will force you to manually merge this file in the diff/merge tool of your choice!wolfbite_aus wrote:I would like to be able to do cfg-update -cfg and just make the _cfg file the new one automaticlly (usually if I've done a pile of emerge's.
If you have added such a line to the file cfg-update will see that it has changed and will ask you what to do with it. Just choose [n]o to skip this file and go to the next file... or choose [y]es and update it manually in the diff/merge tool. It will never overwrite a modified file with the ._cfg0000_file!is it possable to get cfg-update to ignore a particular file?
say edit the first line
#cfg-update false
and cfg-update would just ignore (because your always playing with it? or you do a manual diff but its an added precaution)
I will look into this... I'll keep you updated on the results.piavlo wrote:it seems like the cfg-update is not respecting CONFIG_PROTECT_MASK
could it be fixed?


Hmm... after some thinking I came to this conclusion:xentric wrote:I will look into this... I'll keep you updated on the results.piavlo wrote:it seems like the cfg-update is not respecting CONFIG_PROTECT_MASK
could it be fixed?

Code: Select all
bash: emerge_with_indexing_for_cfg-update: command not foundI'm not sure but try to see if you have some alias... and check the /etc/profiles file....GeYe wrote:I unmerge cfg-update and now this:
when I try to emerge.Code: Select all
bash: emerge_with_indexing_for_cfg-update: command not found
How to solve this now, because I can't emerge anything now.
Code: Select all
# cfg-update uses this alias to update it's checksum-index *before* emerging
alias emerge='emerge_with_indexing_for_cfg-update'Code: Select all
env-update Code: Select all
source /etc/profileActualy, the problem is that on updating a package, the new package is installed first, then the old package get's unmerged. So if I turn off the alias in the unmerge routine of the ebuild, the new script isn't using the alias anymore.GeYe wrote:Thanks for this hint. Maybe the unmerge-script need an update

Thanks for the tip, I didn't even think about that!Sheepdogj15 wrote:BTW, a tip for adding it to the KDE menu....


Well, I chose a different approach. It's not a good idea to ignore updates! I've made cfg-update auto-update all files that haven't been touched by you after they were installed. That way, you don't have to spend time on those files, but they do get updated.wolfbite_aus wrote:## You have requested to never modify this ????.conf
## Leaving the current ????.alone
That option is exactly what get's so many people into trouble with etc-update! I chose to force people to look at those files which NEED to be looked at before they can be updated. I will never implement an "update-all-without-asking" option, however the next version will have an option that "updates-all-unmodified-files" and leaves the rest for later...and what about an -new flag
just update ALL conf with the newer one (BUT cfg_never still overides)

Goodwolfbite_aus wrote:I dont ignore configs
Do you mean that you always have to manually merge files even though you haven't modified them at all? This sounds like cfg-update isn't working properly.the configs that affect me, I note.
The ones that dont i have to go through manually going y r y r y r r r r r r r r r y r (cli
Code: Select all
root@gentoo 852MHz 64C xentric # emerge -uDpv world
________________________________________________________________________________
cfg-update 1.8.0 : No new packages have been emerged, checksum index OK...
________________________________________________________________________________
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[ebuild U ] sys-apps/util-linux-2.12q-r3 [2.12i-r1] +crypt +nls -old-crypt +pam +perl (-selinux) -static 2,107 kB
[ebuild U ] dev-lang/perl-5.8.6-r6 [5.8.6-r5] +berkdb -build -debug -doc +gdbm -ithreads -minimal -perlsuid 9,465 kB
[ebuild U ] x11-libs/qt-3.3.4-r8 [3.3.4-r3] +cups -debug -doc -examples -firebird +gif -immqt -immqt-bc +ipv6 +mysql -nas -odbc +opengl -postgres -sqlite +xinerama 14,101 kB
[ebuild U ] app-portage/mirrorselect-1.1.7 [0.89] 7 kB
[ebuild NS ] dev-php/mod_php-4.4.0-r3 +X -apache2 +berkdb +crypt +curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix +ipv6 +java +jpeg -kerberos +ldap -mcal -memlimit -mssql +mysql +nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
Total size of downloads: 25,681 kB
root@gentoo 852MHz 60C xentric #
