[tldistro] TexLive on MSYS2

Norbert Preining norbert at preining.info
Fri Apr 23 07:46:54 CEST 2021


Hi,

> > 	language.def
> > 	language.dat.lua
> > 	language.dat
> 
> No. Those are all the defaults.

Not good.

> Is it something which will be automatically generated? Or it should be done

Yes.

> like the `*.maps` and `*.fmts`? If it's something which needs to be

Yes.

The generated files that need to be adjusted to the packages actually
installed are

	updmap.cfg	tlpdb execute addMap, addMixedMap, addKanjiMap
	fmtutil.cnf	tlpdb execute addFormat
	language.*	tlpdb execute addHyphen

> generated beforehand, how to(It would be great if you could point to the
> code used in tlmgr)?

  TeXLive::TLPOBJ::language_dat_lines;
  TeXLive::TLPOBJ::language_def_lines;
  TeXLive::TLPOBJ::language_lua_lines;

  used by

  TeXLive::TLPDB::language_dat_lines;
  TeXLive::TLPDB::language_def_lines;
  TeXLive::TLPDB::language_lua_lines;

  used by

  TeXLive::TLUtils::create_language_dat($tlpdb,$dest,$localconf);
  TeXLive::TLUtils::create_language_def($tlpdb,$dest,$localconf);
  TeXLive::TLUtils::create_language_lua($tlpdb,$dest,$localconf);

  used by tlmgr.

Probably easier to look into the three files, understand the format, and
write the code in Python yourself. But the above (TLPOBJ) functions give
the proper way to format the files.

> Aren't fmtutil.cnf and updmap.cfg automatically created? Like I have been

Well, yes, by tlmgr. But you have to do this as distribuor in a
different way since tlmgr is not called.

>    # remove upstream updmap.cfg: it will be autogenerated
>    rm "${pkgdir}/usr/share/texmf-dist/web2c/updmap.cfg"
>    # remove upstream fmtutil.cnf: it will be autogenerated
>    rm "${pkgdir}/usr/share/texmf-dist/web2c/fmtutil.cnf"

Yes, that should happen also for the above language.* files.

> and expecting the hooks there to create them.

Yes, hooks for the languages files needs to be created.

(BTW, I mentioned this already before that these files also need special
treatment ;-)

All the best, feel free to ask if something is unclear.

Norbert

--
PREINING Norbert                              https://www.preining.info
Fujitsu Research  +  IFMGA Guide  +  TU Wien  +  TeX Live  + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the tldistro mailing list.