[Pkg-fonts-devel] Bug#808850: xfonts-wqy: FTBFS: Type of arg 1 to shift must be array (not constant item) at ./bdfmerge.pl line 35, near "ARGV)"

Paul Hardy unifoundry at gmail.com
Sun Jan 1 02:13:34 UTC 2017

tags 808850 patch

This is a patch so that the Makefile will not invoke bdfmerge.pl.
Thus the bug in bdfmerge.pl can be downgraded to "Normal" (so it is no
longer RC) once this patch is applied.

The invocations to bdfmerge.pl specify a range of code points, so that
only code points in that range are included in the output.  But the
Makefile specifies ranges of 0--0xFFFF.  In other words, it specifies
using every glyph that can exist in the BDF source files, removing no
code points from them.  Thus it is a null operation in this instance,
and can be bypassed with no side effects (except for postponing fixing
the bug in bdfmerge.pl).

With this patch, bdftopcf is invoked directly on the original BDF font
files.  The resulting PCF files are identical to those produced by the
original Makefile, minus the bdfmerge.pl warning.

Because the Makefile has not changed in years, this should be a
relatively stable solution.

Patch follows.

Paul Hardy

---------------------cut here-------------------
--- Makefile    2016-12-31 17:49:57.000000000 -0800
+++ Makefile-new    2016-12-31 17:49:57.000000000 -0800
@@ -39,8 +39,7 @@
 all_pcf    := $(all_range:%=%.pcf)

 %.pcf: %.bdf
-    $(SLICE) $(RANGE) $*.bdf > $*_cjk.bdf
-    $(B2P) $*_cjk.bdf > $*.pcf
+    $(B2P) $*.bdf > $*.pcf

 all: b2p $(all_pcf)
 cjk:  RANGE=$(CJKALL)

More information about the Pkg-fonts-devel mailing list