Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to emerge dev-texlive/texlive-basic-2023
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 48
Location: Poland

PostPosted: Sat Jun 29, 2024 11:48 am    Post subject: [SOLVED] Unable to emerge dev-texlive/texlive-basic-2023 Reply with quote

Hello there,

I admit I have wandered astray; I have failed to follow the news and haven't updating my system for ~2-3 months. As of now I am still using profile 17.1 version.
I know I deserve the fate that descended upon me.
...
That's why I need thine help, o ye great community.



The problem occurs when I try to update dev-texlive/texlive-basic-2021 -> 2023 and its components. In a surge of anger I have unmerged dev-texlive/texlive-basic-2021,
in the hope it would remove fmt files that are causing the crash, but it didn't help one bit.

The output is the same, regardless of running 'fmtutil --sys --all' or 'fmtutil --user --all' or trying to install dev-texlive/texlive-basic-2023; it's the following:

Code:


>>> Emerging (1 of 10) dev-texlive/texlive-basic-2023_p59159-r4::gentoo
>>> Failed to emerge dev-texlive/texlive-basic-2023_p59159-r4, Log file:
>>>  '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/build.log'
>>> Jobs: 0 of 10 complete, 1 failed                Load avg: 0.42, 0.91, 1.25
 * Package:    dev-texlive/texlive-basic-2023_p59159-r4:0
 * Repository: gentoo
 * Maintainer: aballier@gentoo.org tex@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux luajittex
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Appending to format.texlive-basic.cnf for name=luahbtex engine=luahbtex   patterns=language.def,language.dat.lua   options="luatex.ini"   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8,luatex
 * Appending to format.texlive-basic.cnf for name=luajithbtex engine=luajithbtex options="luatex.ini"   patterns=language.def,language.dat.lua   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8,luatex
 * Appending to format.texlive-basic.cnf for name=luajittex engine=luajittex options="luatex.ini"   patterns=language.def,language.dat.lua   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8,luatex
 * Appending to format.texlive-basic.cnf for name=dviluatex engine=luatex options="dviluatex.ini"   patterns=language.def,language.dat.lua   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8
 * Appending to format.texlive-basic.cnf for name=luatex engine=luatex options="luatex.ini"   patterns=language.def,language.dat.lua   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8
 * Appending to format.texlive-basic.cnf for name=mf engine=mf-nowin           options="-translate-file=cp227.tcx mf.ini"           fmttriggers=modes
 * Appending to format.texlive-basic.cnf for name=etex engine=pdftex patterns=language.def           options="-translate-file=cp227.tcx *etex.ini"           fmttriggers=cm,dehyph,etex,hyph-utf8,hyphen-base,knuth-lib,plain
 * Appending to format.texlive-basic.cnf for name=pdfetex engine=pdftex patterns=language.def           options="-translate-file=cp227.tcx *pdfetex.ini"           fmttriggers=cm,dehyph,etex,hyph-utf8,hyphen-base,knuth-lib,plain,tex-ini-files
 * Appending to format.texlive-basic.cnf for name=pdftex engine=pdftex patterns=language.def           options="-translate-file=cp227.tcx *pdfetex.ini"           fmttriggers=cm,dehyph,etex,hyph-utf8,hyphen-base,knuth-lib,plain,tex-ini-files
 * Appending to format.texlive-basic.cnf for name=tex engine=tex options="tex.ini"   fmttriggers=cm,hyphen-base,knuth-lib,plain
 * Building format texmf-dist/fmtutil/format.texlive-basic.cnf
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil:   texmf-dist/fmtutil/format.texlive-basic.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil:   texmf-dist/fmtutil/format.texlive-basic.cnf
fmtutil [INFO]: writing formats under /var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-var/web2c
fmtutil [INFO]: --- remaking tex with tex
fmtutil: running `tex -ini   -jobname=tex -progname=tex tex.ini' ...
This is TeX, Version 3.141592653 (TeX Live 2023 Gentoo Linux) (INITEX)

[...]

(/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-dist/tex/
generic/tex-ini-files/dviluatex.ini
(/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-dist/tex/
generic/tex-ini-files/luatex.ini
(/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-dist/tex/
generic/tex-ini-files/luatexconfig.tex
(/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-dist/tex/
generic/tex-ini-files/pdftexconfig.tex))
(/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-dist/tex/
generic/tex-ini-files/luatexiniconfig.tex)
(/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-dist/tex/
generic/unicode-data/load-unicode-data.tex
load-unicode-data.tex v1.17 (2023-09-18)
Reading Unicode data
# UnicodeData-15.1.0.txt
# Modified 2023-09-18 08:45:00 GMT [JAW]
)
(/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-dist/tex/
luatex/hyph-utf8/etex.src
(/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-dist/tex/
plain/base/plain.tex Preloading the plain format: codes, registers,
parameters, fonts, more fonts, macros, math definitions, output routines,
hyphenation
! I can't find file `hyphen'.
l.1222 \input hyphen
                 
(Press Enter to retry, or Control-D to exit)
Please type another input file name:
! Emergency stop.
l.1222
     
!  ==> Fatal error occurred, bad output DVI file produced!
No pages of output.
Transcript written on dviluatex.log.
fmtutil [INFO]: log file copied to: /var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work/texmf-var/web2c/luatex/dviluatex.log
fmtutil [ERROR]: running `tex -ini   -jobname=tex -progname=tex tex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luahbtex -ini   -jobname=luahbtex -progname=luahbtex luatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `pdftex -ini   -jobname=pdftex -progname=pdftex -translate-file=cp227.tcx *pdfetex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luajithbtex -ini   -jobname=luajithbtex -progname=luajithbtex luatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luatex -ini   -jobname=luatex -progname=luatex luatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luajittex -ini   -jobname=luajittex -progname=luajittex luatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `pdftex -ini   -jobname=etex -progname=etex -translate-file=cp227.tcx *etex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `pdftex -ini   -jobname=pdfetex -progname=pdfetex -translate-file=cp227.tcx *pdfetex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luatex -ini   -jobname=dviluatex -progname=dviluatex dviluatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [INFO]: successfully rebuilt formats: 1
fmtutil [INFO]: failed to build: 9 (tex/tex luahbtex/luahbtex pdftex/pdftex luajithbtex/luajithbtex luatex/luatex luajittex/luajittex pdftex/etex pdftex/pdfetex luatex/dviluatex)
fmtutil [INFO]: total formats: 10
fmtutil [INFO]:
*************************************************************
*                                                           *
* WARNING: you are switching to fmtutil's per-user formats. *
*         Please read the following warnings!               *
*                                                           *
*************************************************************

You have run fmtutil-user (as opposed to fmtutil-sys) for the first time;
this has created format files which are local to your personal account.

From now on, any changes in system formats will *not* be automatically
reflected in your files; furthermore, running fmtutil-sys will no longer
have any effect for you.

As a consequence, you yourself have to rerun fmtutil-user after any
change in the system directories. For example, when one of the LaTeX or
other format source files changes, which happens frequently.
See https://tug.org/texlive/scripts-sys-user.html for details.

If you want to undo this, remove the files mentioned above.

Run fmtutil --help for full documentation of fmtutil.
fmtutil [INFO]: exiting with status 9
 * ERROR: dev-texlive/texlive-basic-2023_p59159-r4::gentoo failed (compile phase):
 *   failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 622:  Called texlive-module_src_compile
 *   environment, line 912:  Called die
 * The specific snippet of code:
 *               VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS "${fmt_call}" --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";
 *
 * If you need support, post the output of `emerge --info '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'
 * S: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'

 * Messages for package dev-texlive/texlive-basic-2023_p59159-r4:

 * ERROR: dev-texlive/texlive-basic-2023_p59159-r4::gentoo failed (compile phase):
 *   failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 622:  Called texlive-module_src_compile
 *   environment, line 912:  Called die
 * The specific snippet of code:
 *               VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS "${fmt_call}" --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";
 *
 * If you need support, post the output of `emerge --info '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'
 * S: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'


I pasted the full log here:
https://pastebin.com/p0qCMqrC (expiration time - 1 month)

My 'emerge --info':
https://pastebin.com/NfLBvdS5

The error message says that I have run fmtutil-user for the first time and that I will have to run it till the end of time any update comes, unless
Quote:
If you want to undo this, remove the files mentioned above.

I can't however see, which files should I remove. I have tried to remove some format files (probably immersing myself in hell even deeper), but it did not help.
I also have no recollection of ever running fmtutil, but I guess that's a unit test included with the ebuild.
Kinly please - help

Best regards,
mao


Last edited by mao on Wed Jul 03, 2024 8:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 48
Location: Poland

PostPosted: Mon Jul 01, 2024 2:23 pm    Post subject: Reply with quote

I tried to fix it myself, without success so far.

For now, I have:
- removed 'latex' flag from USE flags (make.conf)
- unmerged all texlive related packages (including app-text/texlive-core)

Hoping this would potentially remove misconfiguration on my machine.

I've run
Code:
emerge -aqv --update --newuse --deep --with-bdeps=y @world --keep-going


Which this time gave me a different (but similar) result:
Code:

>>> Failed to emerge dev-texlive/texlive-basic-2023_p59159-r4, Log file:
>>>  '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/build.log'
>>> Jobs: 1 of 8 complete, 1 failed                 Load avg: 2.23, 1.89, 1.03
*** Resuming merge...
 * emerge --keep-going: dev-texlive/texlive-latex-2023_p69131-r1 dropped
 * because it requires >=dev-texlive/texlive-basic-2023
 * emerge --keep-going: dev-texlive/texlive-publishers-2023_p69759-r1 dropped
 * because it requires >=dev-texlive/texlive-latex-2023
 * emerge --keep-going: dev-texlive/texlive-latexrecommended-2023_p69131
 * dropped because it requires >=dev-tex/latex-beamer-3.71, >=dev-
 * texlive/texlive-latex-2023
 * emerge --keep-going: dev-tex/latex-beamer-3.71 dropped because it requires
 * dev-texlive/texlive-latex, dev-texlive/texlive-latexrecommended
 * emerge --keep-going: dev-texlive/texlive-fontutils-2023_p61207-r3 dropped
 * because it requires >=dev-texlive/texlive-basic-2023
 * emerge --keep-going: dev-texlive/texlive-fontsrecommended-2023_p54074-r1
 * dropped because it requires >=dev-texlive/texlive-basic-2023

 * Messages for package dev-texlive/texlive-basic-2023_p59159-r4:

 * ERROR: dev-texlive/texlive-basic-2023_p59159-r4::gentoo failed (compile phase):
 *   failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 623:  Called texlive-module_src_compile
 *   environment, line 913:  Called die
 * The specific snippet of code:
 *               VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS "${fmt_call}" --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";
 *
 * If you need support, post the output of `emerge --info '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'
 * S: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'


I do not see VARTEXFONTS, TEXMFHOME and TEXINPUTS set anywhere in my env.

But at least right now I'm not having the previous message about having previously run 'fmtutil-user' anymore, but it still does not build.

Any suggestions?

I see resemblance to https://bugs.gentoo.org/797736 right now, I'm going to look into it deeper.
Back to top
View user's profile Send private message
plasmonics
n00b
n00b


Joined: 16 Mar 2011
Posts: 10

PostPosted: Tue Jul 02, 2024 3:07 am    Post subject: Reply with quote

I have had texlive crash in gentoo before. The way I fixed it was to un-emerge all texlive packages and their dependencies. Note that emerge -aC does not delete the config files in /etc and /usr/share. You have to delete them manually, otherwise they will interfere with the compile process. Then re-emerge the various texlive packages.

Right now, I have texlive-basic-2023 working on my system with no problems.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2177

PostPosted: Tue Jul 02, 2024 7:23 am    Post subject: Re Unable to emerge dev-texlive/texlive-basic-2023 - fmtutil Reply with quote

mao wrote:
...
The problem occurs when I try to update dev-texlive/texlive-basic-2021 -> 2023 and its components. In a surge of anger I have unmerged dev-texlive/texlive-basic-2021,
in the hope it would remove fmt files that are causing the crash, but it didn't help one bit.

The output is the same, regardless of running 'fmtutil --sys --all' or 'fmtutil --user --all' or trying to install dev-texlive/texlive-basic-2023;
...

Did you read and follow the news item dated 2024-06-05 "Upgrading to TeX Live 2023"?
It seems possible to solve some installation problems by running texhash - see this topic.
_________________
Greybeard
Back to top
View user's profile Send private message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 48
Location: Poland

PostPosted: Tue Jul 02, 2024 11:03 pm    Post subject: Reply with quote

Hello, thanks for the replies.

I did read and follow the instructions posted in news item dated 2024-06-05 "Upgrading to TeX Live 2023"
I wonder if this has any connection to my locale: pl_PL.utf8

Now I tried the idea with unmerging all texlive-related packages and removing config files in /etc and /usr/share and then running 'texhash', and finally rebuilding texlive-core
Still no success.

Code:

>>> Emerging (1 of 14) app-text/texlive-core-2023-r9::gentoo
>>> Installing (1 of 14) app-text/texlive-core-2023-r9::gentoo
>>> Completed (1 of 14) app-text/texlive-core-2023-r9::gentoo
>>> Emerging (2 of 14) dev-texlive/texlive-basic-2023_p59159-r4::gentoo
>>> Failed to emerge dev-texlive/texlive-basic-2023_p59159-r4, Log file:
>>>  '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/build.log'
>>> Jobs: 1 of 14 complete, 1 failed                Load avg: 1.76, 2.38, 2.00
 * Package:    dev-texlive/texlive-basic-2023_p59159-r4:0
 * Repository: gentoo
 * Maintainer: aballier@gentoo.org tex@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux luajittex
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Appending to format.texlive-basic.cnf for name=luahbtex engine=luahbtex   patterns=language.def,language.dat.lua   options="luatex.ini"   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8,luatex
 * Appending to format.texlive-basic.cnf for name=luajithbtex engine=luajithbtex options="luatex.ini"   patterns=language.def,language.dat.lua   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8,luatex
 * Appending to format.texlive-basic.cnf for name=luajittex engine=luajittex options="luatex.ini"   patterns=language.def,language.dat.lua   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8,luatex
 * Appending to format.texlive-basic.cnf for name=dviluatex engine=luatex options="dviluatex.ini"   patterns=language.def,language.dat.lua   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8
 * Appending to format.texlive-basic.cnf for name=luatex engine=luatex options="luatex.ini"   patterns=language.def,language.dat.lua   fmttriggers=cm,etex,hyphen-base,knuth-lib,plain,tex-ini-files,unicode-data,hyph-utf8
 * Appending to format.texlive-basic.cnf for name=mf engine=mf-nowin           options="-translate-file=cp227.tcx mf.ini"           fmttriggers=modes
 * Appending to format.texlive-basic.cnf for name=etex engine=pdftex patterns=language.def           options="-translate-file=cp227.tcx *etex.ini"           fmttriggers=cm,dehyph,etex,hyph-utf8,hyphen-base,knuth-lib,plain
 * Appending to format.texlive-basic.cnf for name=pdfetex engine=pdftex patterns=language.def           options="-translate-file=cp227.tcx *pdfetex.ini"           fmttriggers=cm,dehyph,etex,hyph-utf8,hyphen-base,knuth-lib,plain,tex-ini-files
 * Appending to format.texlive-basic.cnf for name=pdftex engine=pdftex patterns=language.def           options="-translate-file=cp227.tcx *pdfetex.ini"           fmttriggers=cm,dehyph,etex,hyph-utf8,hyphen-base,knuth-lib,plain,tex-ini-files
 * Appending to format.texlive-basic.cnf for name=tex engine=tex options="tex.ini"   fmttriggers=cm,hyphen-base,knuth-lib,plain
 * Building format texmf-dist/fmtutil/format.texlive-basic.cnf
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.
/usr/bin/fmtutil: kpsewhich -var-value=TEXMFROOT failed, aborting early.
BEGIN failed--compilation aborted at /usr/bin/fmtutil line 25.
 * ERROR: dev-texlive/texlive-basic-2023_p59159-r4::gentoo failed (compile phase):
 *   failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 623:  Called texlive-module_src_compile
 *   environment, line 913:  Called die
 * The specific snippet of code:
 *               VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS "${fmt_call}" --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";
 *
 * If you need support, post the output of `emerge --info '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'
 * S: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'

 * Messages for package app-text/texlive-core-2023-r9:

 * Command "/usr/bin/fmtutil-sys --all" failed with exit status 1

 * Messages for package dev-texlive/texlive-basic-2023_p59159-r4:

 * ERROR: dev-texlive/texlive-basic-2023_p59159-r4::gentoo failed (compile phase):
 *   failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 623:  Called texlive-module_src_compile
 *   environment, line 913:  Called die
 * The specific snippet of code:
 *               VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS "${fmt_call}" --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";
 *
 * If you need support, post the output of `emerge --info '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-texlive/texlive-basic-2023_p59159-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'
 * S: '/var/tmp/portage/dev-texlive/texlive-basic-2023_p59159-r4/work'

fmtutil-sys now also crashes (as visible in emerge log)

Code:

 fmtutil-sys --all
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.
/usr/bin/fmtutil: kpsewhich -var-value=TEXMFROOT failed, aborting early.
BEGIN failed--compilation aborted at /usr/bin/fmtutil line 25.
Back to top
View user's profile Send private message
plasmonics
n00b
n00b


Joined: 16 Mar 2011
Posts: 10

PostPosted: Wed Jul 03, 2024 5:42 pm    Post subject: Reply with quote

I don't understand why it is complaining about texmf.cnf. This file is in /usr/share/texmf-dist/web2c/. It belongs to the kpathsea package. If you are doing a clean re-install, all of that should get downloaded and compiled as dependencies.
texlive-core depends on kpathsea. Emerge should have compiled kpathsea before texlive.

You might try compiling kpathsea first before compiling anything anything else, although I don't see this as making much of a difference.
Back to top
View user's profile Send private message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 48
Location: Poland

PostPosted: Wed Jul 03, 2024 8:07 pm    Post subject: Reply with quote

plasmonics wrote:
I don't understand why it is complaining about texmf.cnf. This file is in /usr/share/texmf-dist/web2c/. It belongs to the kpathsea package. If you are doing a clean re-install, all of that should get downloaded and compiled as dependencies.
texlive-core depends on kpathsea. Emerge should have compiled kpathsea before texlive.

You might try compiling kpathsea first before compiling anything anything else, although I don't see this as making much of a difference.

I have tried with emerging kpathsea and it was indeed it!
Package 'kpathsea' was not installed on my system.

What I've done this time what has worked:
Code:
emerge -aqv kpathsea

This has triggered changes in configuration files (there were none):
Code:

1) /etc/texmf/texmf.d/00header.cnf (1)
2) /etc/texmf/texmf.d/05searchpaths.cnf (1)
3) /etc/texmf/texmf.d/10standardpaths.cnf (1)
4) /etc/texmf/texmf.d/15options.cnf (1)
5) /etc/texmf/texmf.d/20sizes.cnf (1)


First, emerging texlive-basic has failed (the same error message as in previous post) -- I tried unmerging texlive-core
Code:
emerge -aqvC --unmerge texlive-core


I made sure to have 'latex' in USE flags and emerged texlive packages, by the message instruction:
Code:
emerge -aqv '>=app-text/texlive-2023'


Thank you, all of you, for your time and precious suggestions.
I will mark the thread as solved.

Best regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum