Package: ttf-arphic-ukai
Version: 0.1.20060928-1
Severity: important
Tags: patch
Hello,
In the process of upgrading ttf-arphic-ukai on my machines with a
(somewhat shared) /etc, I stumbled upon the following bug:
When postinstalling on the 'slave' machines, since the modifications to
/etc were already effective, this piece of code was executed:
if [ -d /etc/fonts/conf.d ] && [ -x /usr/bin/fc-cache ]; then
cp ${xdeltadir}/${package} /etc/fonts/conf.d/
ln -s /etc/fonts/conf.d/${package} /etc/fonts/conf.d/70-${package}.conf
/usr/bin/fc-cache update
[...else...]
fi
This is all fine, unless the /etc/fonts/conf.d/70-${package}.conf link
already exists. Which happend to be the case for me, since the /etc was
shared. Reading this code, I think it will also apply to next upgrades
of ttf-arphic-ukai, or could happen if the administrator already put
something of the same name in /etc/fonts/conf.d/.
My patch is trivial:
@@ -65,7 +65,9 @@
if [ -d /etc/fonts/conf.d ] && [ -x /usr/bin/fc-cache ]; then
cp ${xdeltadir}/${package} /etc/fonts/conf.d/
- ln -s /etc/fonts/conf.d/${package}
/etc/fonts/conf.d/70-${package}.conf
+ if [ ! -L /etc/fonts/conf.d/70-${package}.conf ]; then
+ ln -s /etc/fonts/conf.d/${package}
/etc/fonts/conf.d/70-${package}.conf+ fi
/usr/bin/fc-cache update
else
echo "You seem to have an old version of fontconfig installed."
Thank you.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages ttf-arphic-ukai depends on:
ii debconf [debconf-2.0] 1.5.6 Debian configuration management sy
ii defoma 0.11.10 Debian Font Manager -- automatic f
ii xutils 1:7.1.ds-1 X Window System utility programs
Versions of packages ttf-arphic-ukai recommends:
ii fontconfig 2.4.1-2 generic font configuration library
ii x-ttcidfont-conf 25 Configure TrueType and CID fonts f
ii xdelta 1.1.3-6.1 A diff utility which works with bi
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]