[oe] [PATCH 6/6] flash-plugin: add 10.0.12.36

Phil Blundell pb at reciva.com
Thu Feb 12 20:27:28 UTC 2009


On Thu, 2009-02-12 at 14:38 -0200, Otavio Salvador wrote:
> +pkg_postinst() {
> +	test -n "$D" && exit 1
> +	mkdir -p ${libdir}/X11/fonts/misc
> +	cat >> ${libdir}/X11/fonts/misc/fonts.alias <<_PUNT
> +-*-*-medium-r-normal-*-10-*              -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
> +-*-helvetica-medium-r-normal-*-10-*      -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
> +-*-serf-medium-r-normal-*-10-*           -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
> +-*-*-*-*-*-*-*-*-*-*-*-*-big5-*          -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
> +-*-*-*-*-*-*-*-*-*-*-*-*-gb2312.1980-*   -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
> +-*-*-medium-r-normal-*-14-*-*-*-*-*-*-*  -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
> +-*-fixed-*--14-*                         -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
> +_PUNT
> +}

This seems altogether pretty weird.  I'm not quite sure what you are
trying to accomplish but I am fairly sure that this can't be the right
way to do it :-)

For one thing, the fonts.alias file will be appended to every time the
package is installed (or, at least, configured) but won't be removed
when it is uninstalled.  For another thing, these changes will be wiped
out when font-alias is upgraded or reinstalled.  And, finally, you seem
to be aliasing a whole load of fonts of various different sizes (and
even different encodings!) to the same thing, which doesn't seem like it
can be generally good news.

If this is a workaround for some craving that the flash plugin has for
server-side fonts, and the intention is to allow you to run it without
crashing if you don't have the fonts in question, then it would probably
be better to put those bits in some appropriate package of their own so
that distribution people (and/or end users) can decide what they want to
do about it.  I guess there might be an argument for distributing a
dummy-server-fonts package that just ships one font and aliases
everything else to it for the purpose of keeping legacy applications
happy.

p.






More information about the Openembedded-devel mailing list