A note to myself: There is a race condition in my debian/rules file that causes dh_install to search for AFM files, even though they have not been built yet. A temporary fix is to pass the argument "-j1" in "pbuilder" or "debuild" to only allow a single thread to work on building the package, until I have found the culprit.
-- Danai On Thu, 16 Jan 2025 at 18:44, Danai SAE-HAN (韓達耐) <[email protected]> wrote: > > I believe I can reproduce the bug as follows: > > $ sudo pbuilder create --debootstrapopts --variant=buildd > --distribution unstable > $ sudo pbuilder build latex-cjk-chinese-arphic_2.0.dsc > > Time to set up a few pbuilder hooks to do some APT pinning. Possible > packages: fontforge (even though the difference between unstable and > testing is just a binary re-upload, hence +b1), or tex-common / > texlive-font-utils. > > -- > Danai > > On Fri, 10 Jan 2025 at 13:02, Danai SAE-HAN (韓達耐) > <[email protected]> wrote: > > > > Note to forgetful self: missing AFM font files during Fontforge build. > > A quick debuild on my Debian/testing machine works out fine. > > > > From Lucas' build log: > > ===================================================================================== > > dh_installexamples -platex-cjk-chinese-arphic-bkai00mp > > -Pdebian/latex-cjk-chinese-arphic-bkai00mp > > dh_install: warning: Cannot find (any matches for) > > "build/gbsn00lp/*.afm" (tried in ., debian/tmp) > > > > dh_install: warning: latex-cjk-chinese-arphic-gbsn00lp missing files: > > build/gbsn00lp/*.afm > > dh_install: warning: Cannot find (any matches for) > > "build/bsmi00lp/*.afm" (tried in ., debian/tmp) > > > > dh_install: warning: latex-cjk-chinese-arphic-bsmi00lp missing files: > > build/bsmi00lp/*.afm > > dh_install: error: missing files, aborting > > dh_install: error: missing files, aborting > > make: *** [debian/rules:262: binary_bsmi] Error 255 > > make: *** Waiting for unfinished jobs.... > > make: *** [debian/rules:262: binary_gbsn] Error 255 > > dh_install -platex-cjk-chinese-arphic-bkai00mp > > -Pdebian/latex-cjk-chinese-arphic-bkai00mp build/bkai00mp/*.afm > > usr/share/texmf/fonts/afm/arphic/bkaiu/ > > dh_install: warning: Cannot find (any matches for) > > "build/gkai00mp/*.afm" (tried in ., debian/tmp) > > > > dh_install: warning: latex-cjk-chinese-arphic-gkai00mp missing files: > > build/gkai00mp/*.afm > > dh_install: error: missing files, aborting > > make: *** [debian/rules:263: binary_gkai] Error 255 > > dh_install: warning: Cannot find (any matches for) > > "build/bkai00mp/*.afm" (tried in ., debian/tmp) > > > > dh_install: warning: latex-cjk-chinese-arphic-bkai00mp missing files: > > build/bkai00mp/*.afm > > dh_install: error: missing files, aborting > > make: *** [debian/rules:263: binary_bkai] Error 255 > > ===================================================================================== > > > > AFM files are created after "Generating font..." and "Generating > > subfonts...", generated by Fontforge .pe scripts. > > Time to compare my build log with that of Lucas. > > Then I'll try cowbuilder or pbuilder, and check out Debian/unstable. > > > > > > -- > > Danai

