[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#905880: tex-gyre: contains X11 fonts but does not run update-fonts-* in postinst nor dep on xfonts-utils



Source: tex-gyre
Version: 20180621-1
Severity: minor

The tex-gyre package contains X11 fonts but does not run update-fonts-*
from the postinst nor does it depend on xfonts-utils. Consequently the
installed fonts are not registered properly with the X11 fonts system.

The issue is caused by the X11 fonts being symlinks installed by
dh_link and the dh_installxfonts command being run before the symlinks
are installed into the package, so it thinks there are no fonts present.

PS: I think you can drop the defoma stuff for buster.

$ grep -EC3 'dh_installxfonts|dh_link' debian/rules 
	dh_testroot
	dh_clean

	# We will call dh_link only once for the build, with all desired links
	# specified in $(PKG).links because it is much faster than spawning
	# a dh_link (actually, Perl) process for every symbolic link in this
	# package. So, $(PKG).links starts as an empty file and (target, link)
	# pairs will be added to it in the relevant places.
	: > "debian/$(PKG).links"
--
	  "debian/$(PKG).fontlist-x11" >> "debian/$(PKG).links"
	
	dh_install
	dh_installxfonts
	dh_installtex --package=$(PKG) mapfile=debian/tex-gyre.cfg

	$(foreach PPP, $(PKG) $(PKGFONTS), \
	  dh_link -p $(PPP) \
            $(foreach FAM, $(FAMILYNAMES), \
              usr/share/texmf/doc/fonts/tex-gyre/README-TeX-Gyre-$(FAM).txt \
	      usr/share/doc/$(PPP)/README-TeX-Gyre-$(FAM).txt) \
--
	    usr/share/texmf/doc/fonts/tex-gyre-math/README-TeX-Gyre-DejaVu-Math.txt \
	    usr/share/doc/$(PPP)/README-TeX-Gyre-DejaVu-Math.txt \
	      ; )
	dh_link -p $(PKGFONTS) \
	    etc/fonts/conf.avail/65-$(PKGFONTS).conf \
	    etc/fonts/conf.d/65-$(PKGFONTS).conf

$ grep -ri usr/share/font
doc/fonts/tex-gyre-math/INSTALL.txt:copy the font file to ~/.fonts or /usr/share/fonts ). If the font
debian/sed_scripts/gen-x-fonts-links-list:s@^\(.*\)$@usr/share/texmf/fonts/type1/public/tex-gyre/\1.pfb usr/share/fonts/X11/Type1/\1.pfb\
debian/sed_scripts/gen-x-fonts-links-list:usr/share/texmf/fonts/afm/public/tex-gyre/\1.afm usr/share/fonts/X11/Type1/\1.afm@p

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: