You are not logged in.
I lost my modification to /etc/fonts/conf.avail/65-nonlatin.conf after system upgrade. Any ideas?
$ pacman -Fs 65-nonlatin.conf
extra/fontconfig 2.12.6+5+g665584a-1
etc/fonts/conf.avail/65-nonlatin.conf
etc/fonts/conf.d/65-nonlatin.conf
Offline
Pacman normally replaces any configuration files when it upgrades the package that contains that file. So, if you want your changes to not be overwritten, just copy the file to the conf.d directory and make your changes to that file. Or, you can always just make the change in ~/.config/fontconfig/fonts.conf.
Offline
Pacman normally replaces any configuration files when it upgrades the package that contains that file.
No pacman will not replace any file in the backup array which would normally contains configuration files meant for user alteration.
The PKGBUILD for fontconfig contains no backup array so all files will be overwritten on package update.
So, if you want your changes to not be overwritten, just copy the file to the conf.d directory and make your changes to that file.
If the file is still named 65-nonlatin.conf then it will be replaced by a symlink on package upgrade.
If you copy 65-nonlatin.conf to 99-nonlatin.conf then make your modifications as that file is not provided by the package it should not be overwritten.
Offline
If the file is still named 65-nonlatin.conf then it will be replaced by a symlink on package upgrade.
If you copy 65-nonlatin.conf to 99-nonlatin.conf then make your modifications as that file is not provided by the package it should not be overwritten.
Are you sure the file will be overwritten if it is in the /etc/fonts/conf.d folder? I thought only the files in conf.avail would be replaced, and if you copied one of those files to conf.d then it would not be overwritten by the upgrade. Of course I could be wrong, I'm no expert with fontconfig.
Offline
pacman -Qo /etc/fonts/conf.d/65-nonlatin.conf
Offline
$ cd cd /etc/fonts/conf.d/
$ stat 65-nonlatin.conf
File: 65-nonlatin.conf -> /etc/fonts/conf.avail/65-nonlatin.conf
Size: 38 Blocks: 0 IO Block: 4096 symbolic link
Device: fd00h/64768d Inode: 9568526 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-04-23 10:29:45.975376853 +0000
Modify: 2018-03-17 17:44:18.000000000 +0000
Change: 2018-04-23 10:29:45.915375371 +0000
Birth: -
$ sudo rm 65-nonlatin.conf
$ stat 65-nonlatin.conf
stat: cannot stat '65-nonlatin.conf': No such file or directory
$ sudo cp /etc/fonts/conf.avail/65-nonlatin.conf .
$ stat 65-nonlatin.conf
File: 65-nonlatin.conf
Size: 8170 Blocks: 16 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 9568262 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-04-23 19:14:33.574455447 +0000
Modify: 2018-04-23 19:14:30.901394676 +0000
Change: 2018-04-23 19:14:30.901394676 +0000
Birth: -
$ sudo pacman -S fontconfig
warning: fontconfig-2.13.0+10+g58f5285-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) fontconfig-2.13.0+10+g58f5285-1
Total Installed Size: 1.96 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [#############################################################################] 100%
(1/1) checking package integrity [#############################################################################] 100%
(1/1) loading package files [#############################################################################] 100%
(1/1) checking for file conflicts [#############################################################################] 100%
(1/1) checking available disk space [#############################################################################] 100%
:: Processing package changes...
(1/1) reinstalling fontconfig [#############################################################################] 100%
Rebuilding fontconfig cache... done.
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
$ stat 65-nonlatin.conf
File: 65-nonlatin.conf -> /etc/fonts/conf.avail/65-nonlatin.conf
Size: 38 Blocks: 0 IO Block: 4096 symbolic link
Device: fd00h/64768d Inode: 9568454 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-04-23 19:14:54.995942996 +0000
Modify: 2018-03-17 17:44:18.000000000 +0000
Change: 2018-04-23 19:14:54.931941538 +0000
Birth: -
Offline
I do see what both of you are saying, but you are also working with a symlink. What I meant was to copy the contents of an actual file, not a symlink, to the conf.d folder and edit that. Am I still mistaken that that will not work either?
Offline
but you are also working with a symlink
$ sudo cp /etc/fonts/conf.avail/65-nonlatin.conf
stat /etc/fonts/conf.avail/65-nonlatin.conf
Offline
I guess I have some reading to do then
doraemon, sorry for hijacking your thread. Please listen to the experts like seth and loqs, they are obvioulsy right as you can see from their commands.
Offline