Hideki Yamane wrote:
Hi,
On Sat, 20 Jun 2009 11:52:26 +0200
Petr Vandrovec <[email protected]> wrote:
please do not apply these patches. Apparently Hideki built recently uploaded
ttf-kiloji, ttf-sawarabi-gothic, and ttf-dejima-mincho with these patches, and
so they are not installable unless "dpkg --configure --pending" is started from
/usr/bin:
NO, that was caused by mistake, that is removing postinst and prerm script.
And now it is okay, added to end of those scripts.
Because postinst does this:
#!/bin/sh
set -e
# Automatically added by dh_installdefoma
FILE='/etc/defoma/hints/ttf-kiloji.hints'
if [ "$1" = configure ]; then
test -x defoma-font && defoma-font reregister-all $FILE
fi
# End automatically added section
And -x defoma-font will fail if defoma-font is not in current directory.
No, if path is set correctly, it is not a problem.
Also as test is written now it causes breakage when defoma-font is not
installed.
I'm not sure that this is intentional.
No, if defoma-font is executable it would be execute.
Erm, which shell are you using? 2.1.0-9 is still broken. Not as badly
as before, but still broken - reregister is not invoked at all during
upgrades.
Verify there is a kiloji...
gwy:/# grep kiloji /var/lib/defoma/* | wc -l
341
341 of them. Great. Clear cache:
gwy:/# defoma-font unregister-all /etc/defoma/hints/ttf-kiloji.hints
No CIDSupplement specified for JamoNovel-Regular, defaulting to 0.
No CIDSupplement specified for Yetgul-Regular, defaulting to 0.
...
No CIDSupplement specified for Gulim-Regular, defaulting to 0.
No CIDSupplement specified for Shinmun-Regular, defaulting to 0.
Updating fontconfig cache for /usr/share/fonts/truetype/kiloji
Indeed no kiloji:
gwy:/# grep kiloji /var/lib/defoma/* | wc -l
0
Now let's reinstall package with pwd = '/':
gwy:/# dpkg -i
/mirrors/debian/pool/main/t/ttf-kiloji/ttf-kiloji_2.1.0-9_all.deb
(Reading database ... 509169 files and directories currently installed.)
Preparing to replace ttf-kiloji 1:2.1.0-9 (using
.../ttf-kiloji_2.1.0-9_all.deb) ...
Unpacking replacement ttf-kiloji ...
Setting up ttf-kiloji (1:2.1.0-9) ...
Processing triggers for fontconfig ...
Hmm, that was quick. What about defoma?
gwy:/# grep kiloji /var/lib/defoma/* | wc -l
0
Oops. No reinstall was run. Let's try again, from /usr/bin:
gwy:/# cd /usr/bin
gwy:/usr/bin# dpkg -i
/mirrors/debian/pool/main/t/ttf-kiloji/ttf-kiloji_2.1.0-9_all.deb
(Reading database ... 509169 files and directories currently installed.)
Preparing to replace ttf-kiloji 1:2.1.0-9 (using
.../ttf-kiloji_2.1.0-9_all.deb) ...
Unpacking replacement ttf-kiloji ...
Setting up ttf-kiloji (1:2.1.0-9) ...
No CIDSupplement specified for Pen-Regular, defaulting to 0.
No CIDSupplement specified for Headline-Regular, defaulting to 0.
...
No CIDSupplement specified for Graphic-Bold, defaulting to 0.
No CIDSupplement specified for Gulim-Regular, defaulting to 0.
Updating fontconfig cache for /usr/share/fonts/truetype/kiloji
Processing triggers for fontconfig ...
Now this looks much better. What about defoma?
gwy:/usr/bin# grep kiloji /var/lib/defoma/* | wc -l
341
Yup. No fonts unless installation is run from /usr/bin. If you do not
believe these tests, you can put some 'print STDERR "I was here.\n";'
into /usr/bin/defoma to see that it is not run unless installation
starts from /usr/bin.
Petr
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]