FS#53280 - [xorg-mkfontdir] Deletes files owned by another package

Attached to Project: Arch Linux
Opened by ctxfi-user (ctxfi-user) - Sunday, 12 March 2017, 21:22 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 16 March 2017, 19:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The hook /usr/share/libalpm/scripts/xorg-mkfontdir calls mkfontscale that deletes the following files which are owned by xorg-fonts-encodings:
- /usr/share/fonts/encodings/encodings.dir
- /usr/share/fonts/encodings/large/encodings.dir


Additional info:
* noted with xorg-mkfontdir 1.0.7-7 and xorg-fonts-encodings 1.0.4-4
* show missing files with pacman -Qkq


Steps to reproduce:
Get the hook triggered, for example:
pacman -S xorg-fonts-encodings


Dirty (?) solved using blacklisting:

--- xorg-mkfontdir 2017-03-12 22:06:08.750149116 +0100
+++ /usr/share/libalpm/scripts/xorg-mkfontdir 2017-03-12 22:18:57.210176017 +0100
@@ -2,6 +2,7 @@

sort -r | while read -r d; do
[[ -d $d ]] || continue
+ [[ $d =~ /encodings/.*$ ]] && continue
mkfontscale "$d"
mkfontdir "$d"
find "$d"fonts.{scale,dir} -maxdepth 0 -size -3c -delete
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Thursday, 16 March 2017, 19:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  xorg-mkfontdir 1.0.7-8
Comment by ctxfi-user (ctxfi-user) - Sunday, 12 March 2017, 21:26 GMT
Patch attached, more readable...

Loading...