David Dawes wrote:

On Fri, Sep 19, 2003 at 02:01:00PM -0400, Harold L Hunt II wrote:

Matthieu (and Matthias),


Matthias Scheler wrote:



On Thu, Sep 18, 2003 at 10:58:19PM +0200, Matthieu Herrb wrote:


It seems to me that the C langage version of ucs2any.pl developped by
Ben Collver and other NetBSD developpers is now stable enough to be
included in XFree86.


Two comments:
1.) While it is stable enough it is quite slow due to excessive and
   ineffecient use of regular expressions.
2.) A while ago I reported the fonts get build twice. We could confirm
   that problem in the meantime and found out that it was related
   to using a C version of "ucs2any". Tatoku Ogaito finally fixed
   it by adding "includes :: ucs2any" to "xc/fonts/util/Imakefile".

Fonts get built twice on Cygwin as well. In fact, they probably get built twice on all platforms.


The xc/fonts/util/Imakefile already has "includes:: ucs2any" in it in the version that I am compiling; yet, ucs2any is still run for each font during both the "includes" step and later during the "all" step.


Maybe removing the includes part of MakeTruncatedUCSBdfFont and
MakeBdfFontFromUCSMaster would be sufficient?  I don't remember why the
conversion was done in the includes phase instead of the all phase, but
removing the includes part from those rules worked here when I just
tested it.

David,


Hmm... I don't know enough about how the fonts are built to say whether or not that is a good idea.

However, I can say that changing SimpleProgramTarget(ucs2any) to the following stops ucs2any from being rebuilt when the DEPLIBS are built:

NormalProgramTarget(ucs2any, ucs2any.o, , , )

ucs2any doesn't depend on any X libs so this seems to be fine.

I build tested this on Cygwin without problems and confirmed that the fonts were only passed through ucs2any once.

If it does need to be done in the includes phase, for example, because
a host version of ucs2any is needed to do the conversion when
cross-compliling, but a target version of ucs2any needs to get built
later for installation, then I'd just remove $(UCS2ANY) as a dependency
in MakeBdfFontFromUCSMaster().  If a dependency is still desired, make
it be the source rather than the binary.

BTW, how are things like host vs target imake binaries handled when
cross-compiling?

I think this are questions for Matthieu, right?


Harold

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to