Bug#808850: xfonts-wqy: FTBFS: Type of arg 1 to shift must be array (not constant item) at ./bdfmerge.pl line 35, near "ARGV)"
On Sun, Jan 1, 2017 at 6:38 AM, Matt Kraai wrote: > The following patch fixes this issue by fixing bdfmerge.pl. > ... > It seems like this might be more acceptable upstream. Matt, thank you. ChangZhuo, do you have time to upload a new version of this package with Matt's patch applied, since you performed the previous upload? It will close this bug completely. I can send his patch to upstream unless you want to. Thank you, Paul Hardy
Bug#808850: xfonts-wqy: FTBFS: Type of arg 1 to shift must be array (not constant item) at ./bdfmerge.pl line 35, near "ARGV)"
Hi, The following patch fixes this issue by fixing bdfmerge.pl. --- xfonts-wqy-1.0.0~rc1.orig/bdfmerge.pl +++ xfonts-wqy-1.0.0~rc1/bdfmerge.pl @@ -32,7 +32,7 @@ while(@ARGV>=1&& $ARGV[0]=~/^-{0,1}0[xX] { $startpos = hex($1); $endpos=0; - $range=shift(ARGV); + $range=shift(@ARGV); if($range=~/--0[xX]([0-9A-Fa-f]{0,6})/) { $endpos=hex($1); It seems like this might be more acceptable upstream. -- Matt
Bug#808850: xfonts-wqy: FTBFS: Type of arg 1 to shift must be array (not constant item) at ./bdfmerge.pl line 35, near "ARGV)"
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--0x. 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--- --- Makefile2016-12-31 17:49:57.0 -0800 +++ Makefile-new2016-12-31 17:49:57.0 -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)
Bug#808850: xfonts-wqy: FTBFS: Type of arg 1 to shift must be array (not constant item) at ./bdfmerge.pl line 35, near "ARGV)"
Source: xfonts-wqy Version: 1.0.0~rc1-1 Severity: serious Justification: fails to build from source User: reproducible-bui...@lists.alioth.debian.org Usertags: ftbfs X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org Dear Maintainer, xfonts-wqy fails to build from source in unstable/amd64: [..] dpkg-buildpackage -rfakeroot -D -us -uc -b dpkg-buildpackage: source package xfonts-wqy dpkg-buildpackage: source version 1.0.0~rc1-1 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by ChangZhuo Chen (陳昌倬) dpkg-source --before-build xfonts-wqy-1.0.0~rc1 dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dh clean dh_testdir dh_auto_clean make -j1 clean make[1]: Entering directory '/home/lamby/temp/cdt.20151223192453.PThnk7KaAc/xfonts-wqy-1.0.0~rc1' rm -f wenquanyi_9pt.pcf wenquanyi_10pt.pcf wenquanyi_11pt.pcf wenquanyi_12pt.pcf wenquanyi_13px.pcf wenquanyi_9pt_cjk.bdf wenquanyi_10pt_cjk.bdf wenquanyi_11pt_cjk.bdf wenquanyi_12pt_cjk.bdf wenquanyi_13px_cjk.bdf make[1]: Leaving directory '/home/lamby/temp/cdt.20151223192453.PThnk7KaAc/xfonts-wqy-1.0.0~rc1' dh_clean debian/rules build dh build dh_testdir dh_auto_configure dh_auto_build make -j1 make[1]: Entering directory '/home/lamby/temp/cdt.20151223192453.PThnk7KaAc/xfonts-wqy-1.0.0~rc1' ./bdfmerge.pl 0x0--0xwenquanyi_9pt.bdf > wenquanyi_9pt_cjk.bdf shift on reference is experimental at ./bdfmerge.pl line 35. Type of arg 1 to shift must be array (not constant item) at ./bdfmerge.pl line 35, near "ARGV)" Execution of ./bdfmerge.pl aborted due to compilation errors. Makefile:42: recipe for target 'wenquanyi_9pt.pcf' failed make[1]: *** [wenquanyi_9pt.pcf] Error 255 make[1]: Leaving directory '/home/lamby/temp/cdt.20151223192453.PThnk7KaAc/xfonts-wqy-1.0.0~rc1' dh_auto_build: make -j1 returned exit code 2 debian/rules:3: recipe for target 'build' failed make: *** [build] Error 2 [..] The full build log is attached. Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `- xfonts-wqy.1.0.0~rc1-1.unstable.amd64.log.txt.gz Description: Binary data