Bug 1399 - xfont_font-adobe-100dpi does not build
Summary: xfont_font-adobe-100dpi does not build
Status: RESOLVED WORKSFORME
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: 2010.05
Assignee: Paulius Zaleckas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 06:42 UTC by Paul Jones
Modified: 2010-06-25 10:29 UTC (History)
2 users (show)

See Also:
Host: X86_64
Target: ARM
Build: buildroot-git


Attachments
Build log (15.88 KB, text/plain)
2010-03-26 06:42 UTC, Paul Jones
Details
The output from make -n (8.74 KB, application/octet-stream)
2010-05-08 11:48 UTC, Paul Jones
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Jones 2010-03-26 06:42:20 UTC
Created attachment 1363 [details]
Build log

GEN    symb08.pcf.gz
  GEN    symb10.pcf.gz
  GEN    symb12.pcf.gz
  GEN    symb14.pcf.gz
  GEN    symb18.pcf.gz
  GEN    symb24.pcf.gz
  GEN    courB08-ISO8859-1.bdf
/bin/sh: courB08.bdf: command not found
make[1]: *** [courB08-ISO8859-1.bdf] Error 127
make[1]: *** Waiting for unfinished jobs....
  GEN    courB10-ISO8859-1.bdf
  GEN    courB12-ISO8859-1.bdf
/bin/sh: courB10.bdf: command not found
/bin/sh: courB12.bdf: command not found
make[1]: *** [courB10-ISO8859-1.bdf] Error 127
make[1]: *** [courB12-ISO8859-1.bdf] Error 127
make[1]: Leaving directory `/media/stuff/kisssroot/output/build/xfont_font-adobe-100dpi-1.0.1'
make: *** [/media/stuff/kisssroot/output/build/xfont_font-adobe-100dpi-1.0.1/.stamp_built] Error 2
Comment 1 Paul Jones 2010-03-26 08:42:08 UTC
Same problem occurs with xfont_font-adobe-75dpi-1.0.1

  GEN    timR24.pcf.gz
  GEN    symb12.pcf.gz
  GEN    symb10.pcf.gz
  GEN    symb14.pcf.gz
  GEN    symb18.pcf.gz
  GEN    symb24.pcf.gz
  GEN    courB08-ISO8859-1.bdf
/bin/sh: courB08.bdf: command not found
make[1]: *** [courB08-ISO8859-1.bdf] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/media/stuff/kisssroot/output/build/xfont_font-adobe-75dpi-1.0.1'
make: *** [/media/stuff/kisssroot/output/build/xfont_font-adobe-75dpi-1.0.1/.stamp_built] Error 2
Comment 2 Paulius Zaleckas 2010-04-11 22:07:08 UTC
Very strange... does any other font build OK?
I suspect that it may be some utility missing on the host.
Comment 3 Paul Jones 2010-04-11 22:14:29 UTC
There was one other font I tried that had the same trouble (Can't remember it's name right now). The build system is running Gentoo and it compiles the Gentoo-equivalent packages fine, so I'm at a loss to understand what's happening.
Comment 4 Paulius Zaleckas 2010-04-11 22:16:01 UTC
(In reply to comment #2)
> Very strange... does any other font build OK?
> I suspect that it may be some utility missing on the host.

I have checked Makefile and I think it may be bdftopcf missing on your host.
Comment 5 Thomas Petazzoni 2010-04-11 22:40:23 UTC
Then, we should build bdftopcf for the host, and install it in $(HOST_DIR).
Comment 6 Paul Jones 2010-04-12 09:35:31 UTC
I just tried to manually build the package without any cross compiling
make distclean
./configure

and this is the output I get:
checking for fc-cache... /usr/bin/fc-cache
checking for mkfontdir... /usr/bin/mkfontdir
checking for bdftopcf... /usr/bin/bdftopcf
checking font compression method... gzip
checking for gzip... /bin/gzip
checking for ucs2any... no
checking for MAPS... configure: error: Package requirements (fontutil) were not met:

No package 'fontutil' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MAPS_CFLAGS
and MAPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


I am sure I tried installing font-utils on the host which I remember didn't work so I uninstalled it.
I just reinstalled fontutils and now this builds ok so I assume this package isn't finding the buildroot fontutils.

I checked for bdftopcf on the host and it is there even without fontutils installed.
Comment 7 Paulius Zaleckas 2010-04-12 14:19:32 UTC
(In reply to comment #6)
> I checked for bdftopcf on the host and it is there even without fontutils
> installed.
> 

How you checked for it?
It should output usage documentation if you just type "bdftopcf -" in terminal.
And if it really is present on your host I have no idea why buildroot fails to compile fonts...
Comment 8 Thomas Petazzoni 2010-04-12 14:58:35 UTC
Anyway, Buildroot should *not* rely on xfont-utils to be installed on the host distribution, but should rather build it for the host.
Comment 9 Paul Jones 2010-04-12 21:31:16 UTC
(In reply to comment #7)
> It should output usage documentation if you just type "bdftopcf -" in terminal.

That's exactly what I did.

Comment 10 Thomas Petazzoni 2010-05-08 08:29:40 UTC
We recently committed things in the Git repo to fix issues with xfonts. Can you test again and see if your problem is fixed ?

At least here, I can't reproduce.
Comment 11 Paul Jones 2010-05-08 11:01:46 UTC
No, still happening with latest git.
Comment 12 Paul Jones 2010-05-08 11:48:21 UTC
Created attachment 1705 [details]
The output from make -n
Comment 13 Paul Jones 2010-05-09 06:38:04 UTC
I think I've found the problem - the configure script is cached with the wrong values - see below:

checking for mkfontdir... (cached) /usr/bin/mkfontdir
checking for bdftopcf... (cached) /usr/bin/bdftopcf
checking font compression method... gzip
checking for gzip... (cached) /bin/gzip
checking for ucs2any... (cached)


The ucs2any program is inserted into the makefile as a blank string therefore the shell tries to execute the arguments rather than the program, which obviously won't work.
Comment 14 Thomas Petazzoni 2010-06-24 10:28:17 UTC
Paul, can you attach a sample .config file that exhibits the problem ?
Comment 15 Paul Jones 2010-06-25 09:36:58 UTC
I can't seem to reproduce any more. I only had the problem on Gentoo systems but not on Ubuntu. Hopefully the problem is gone so marking as closed.
Comment 16 Mitch Davis 2010-06-25 10:29:00 UTC
>   GEN    courB08-ISO8859-1.bdf
> /bin/sh: courB08.bdf: command not found
> make[1]: *** [courB08-ISO8859-1.bdf] Error 127
> make[1]: *** Waiting for unfinished jobs....
>   GEN    courB10-ISO8859-1.bdf
>   GEN    courB12-ISO8859-1.bdf
> /bin/sh: courB10.bdf: command not found
> /bin/sh: courB12.bdf: command not found
> make[1]: *** [courB10-ISO8859-1.bdf] Error 127
> make[1]: *** [courB12-ISO8859-1.bdf] Error 127

I know I'm coming late to the party here, but it seems to me from the make listing that the problem isn't that bdftopcf can't be found, but rather that the command is missing the name of the command altogether, therefore the shell is treating the name of the .bdf file as the command to run.

Paul Jones, if the problem occurs again, can you add V=1 to the make line when you kick off the compile?  That should show us the line being executed, rather than just "GEN".

Alternatively, please look in output/build/xfont_font-adobe-100dpi-1.0.1 (or similar, as I don't have it in front of me) for the Makefile.  In the Makefile, what is the value of the BDFTOPCF variable?