Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292000 - media-fonts/font-misc-misc-1.0.0 Makefile is broken
Summary: media-fonts/font-misc-misc-1.0.0 Makefile is broken
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-05 17:21 UTC by Stuart Shelton
Modified: 2011-12-15 18:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-11-05 17:21:26 UTC
Attempting to build font-misc-misc fails with:

/opt/gentoo/usr/bin/ucs2any 4x6.bdf /map-ISO8859-1 ISO8859-1
/opt/gentoo/usr/bin/ucs2any: Can't read mapping file '/map-ISO8859-1': No such file or directory!
make: *** [4x6-ISO8859-1.bdf] Error 1

... from the following Makefile rule:

.bdf-ISO8859-2.bdf:
        @rm -f $@
        $(UCS2ANY) $< $(UTIL_DIR)/map-ISO8859-2 ISO8859-2

... but where:

UTIL_DIR = $(pkg-config --variable=mapdir fontutil)

... which is clearly wrong.

Makefile.in and Makefile.am contain:

UTIL_DIR = @MAPFILES_PATH@

... and the ebuild does set:

CONFIGURE_OPTIONS="--with-mapfiles=${XDIR}/share/fonts/util"

... so it looks as if the supplied Makefile needs to be regenerated.

Failing this, how about this fix?

--- Makefile.dist
+++ Makefile
@@ -294,7 +294,7 @@
 JISX0201_BDF_FILES = $(BDF2UCS_JISX0201_FONT_FILES:%=%-JISX0201.1976-0.bdf)
 JISX0201_PCF_FILES = $(BDF2UCS_JISX0201_FONT_FILES:%=%-JISX0201.1976-0.pcf.gz)
 
-UTIL_DIR = $(pkg-config --variable=mapdir fontutil)
+UTIL_DIR := $(shell pkg-config --variable=mapdir fontutil)
 
 SUFFIXES = .bdf .pcf.gz t.bdf \
        -ISO8859-1.bdf \

... although the problem with this is that pkg-config outputs "/opt/gentoo/usr/share/fonts/X11/util", which doesn't match "${XDIR}/share/fonts/util".

Having said this, the ebuild-supplied value of "${XDIR}/share/fonts/util" doesn't seem to exist, whereas the value from pkg-config does... so possibly the ebuild itself is also wrong?
Comment 1 Stuart Shelton 2009-11-05 17:45:17 UTC
Ah - the "X11" in the path above only occurred because I wasn't using x_modular_src_compile() when I (tried to) correct font-util.

So the path in the ebuild is fine, but the Makefile still seems to be wrong!
Comment 2 Stuart Shelton 2009-11-05 17:47:20 UTC
Hmm, and then during post-setup I also get:

 * Creating fonts.scale files ...                                                                                                                                                            [ ok ]
 * Generating fonts.dir files ...
/opt/gentoo//usr/sh: opendir: No such file or directory                                                                                                                                      [ ok ]
 * Updating global fontcache ...                                                                                                                                                             [ ok ]

>>> Recording media-fonts/font-misc-misc in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
Comment 3 Stuart Shelton 2009-11-05 17:55:39 UTC
... although mkfontscale is installed and running what looks as if are the steps carried out by x-modules.class' create_fonts_dir manually works...
Comment 4 Fabian Groffen gentoo-dev 2009-11-11 13:52:41 UTC
hmmm, this ebuild seems to work fine for me
Comment 5 Fabian Groffen gentoo-dev 2011-12-15 18:20:59 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.