Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687306 - texlive-common.eclass: fix ${ROOT} call for EAPI=7
Summary: texlive-common.eclass: fix ${ROOT} call for EAPI=7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard: WORKAROUND: run texmf-update and fmtu...
Keywords: PullRequest
: 687310 687350 687354 687398 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-06-03 19:11 UTC by Toralf Förster
Modified: 2019-06-10 07:49 UTC (History)
18 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.94 KB, text/plain)
2019-06-03 19:11 UTC, Toralf Förster
Details
dev-texlive:texlive-basic-2019:20190603-190924.log (dev-texlive:texlive-basic-2019:20190603-190924.log,35.04 KB, text/plain)
2019-06-03 19:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,53.31 KB, text/plain)
2019-06-03 19:11 UTC, Toralf Förster
Details
environment (environment,35.04 KB, text/plain)
2019-06-03 19:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.49 KB, application/x-bzip)
2019-06-03 19:11 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.37 KB, application/x-bzip)
2019-06-03 19:11 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-06-03 19:11:42 UTC
Transcript written on mf.log.
fmtutil [INFO]: /var/tmp/portage/dev-texlive/texlive-basic-2019/work/texmf-var/web2c/metafont/mf.base installed.
fmtutil [ERROR]: running `pdftex -ini   -jobname=pdftex -progname=pdftex -translate-file=cp227.tcx *pdfetex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [ERROR]: running `pdftex -ini   -jobname=etex -progname=etex -translate-file=cp227.tcx *etex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-developer_test_20190601-195952

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.3.1
 [2] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)


java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.12.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO dev-texlive/texlive-basic
[ebuild     U ] dev-texlive/texlive-basic-2019 [2017-r1] USE="luajittex -doc -source"
Comment 1 Toralf Förster gentoo-dev 2019-06-03 19:11:45 UTC
Created attachment 578596 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-06-03 19:11:47 UTC
Created attachment 578598 [details]
dev-texlive:texlive-basic-2019:20190603-190924.log
Comment 3 Toralf Förster gentoo-dev 2019-06-03 19:11:50 UTC
Created attachment 578600 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-06-03 19:11:53 UTC
Created attachment 578602 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-06-03 19:11:56 UTC
Created attachment 578604 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-06-03 19:11:59 UTC
Created attachment 578606 [details]
logs.tbz2
Comment 7 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-03 19:43:33 UTC
does `texmf-update` ran manually fix the problem?
Comment 8 Toralf Förster gentoo-dev 2019-06-03 20:05:14 UTC
*** Bug 687310 has been marked as a duplicate of this bug. ***
Comment 9 Toralf Förster gentoo-dev 2019-06-03 20:09:48 UTC
(In reply to Mikle Kolyada from comment #7)
> does `texmf-update` ran manually fix the problem?

yes
Comment 10 Greg Turner 2019-06-03 20:48:46 UTC
(In reply to Mikle Kolyada from comment #7)
> does `texmf-update` ran manually fix the problem?

Not here.  texmf-update purports to succeed, but I can't seem to emerge =texmf-basic-2019 no matter what.  I think I broke something thrashing around hoping this would go away without mental effort :)

any chance something like:

  rm -rvf /etc/texmf
  for atom in $(qlist -ISC texlive); do
    emerge -1 "${atom}" || break
    texmf-update
  done

might make my situation less screwed up? :)
Comment 11 Greg Turner 2019-06-03 21:38:48 UTC
(In reply to Greg Turner from comment #10)
> (In reply to Mikle Kolyada from comment #7)
> > does `texmf-update` ran manually fix the problem?
> 
> Not here.  texmf-update purports to succeed, but I can't seem to emerge
> =texmf-basic-2019 no matter what.  I think I broke something thrashing
> around hoping this would go away without mental effort :)
> 
> any chance something like:
> 
>   rm -rvf /etc/texmf
>   for atom in $(qlist -ISC texlive); do
>     emerge -1 "${atom}" || break
>     texmf-update
>   done
> 
> might make my situation less screwed up? :)

to answer my own question, without blowing any files away manually, the functional equivalent of:

  atoms=( $( qlist -ISC texlive latex ) )
  emerge -C "${atoms[@]}"
  for atom "${atoms[@]}"; do
    emerge -1 "${atom}" || break
    texmf-update
  done

got me to a place where at least the ebuilds don't fail (but still I get the "could not run texmf-update, you should look into that" errors from most of the ebuilds, even after running the for loop once again).
Comment 12 email200202 2019-06-04 08:59:39 UTC
Same here.

Running 'texmf-update' didn't fix it. I couldn't even go back the old version. At the end, I had to uninstall 'texlive' completely.
Comment 13 Juergen Rose 2019-06-04 14:00:56 UTC
(In reply to Mikle Kolyada from comment #7)
> does `texmf-update` ran manually fix the problem?

It fixed the issue for me as well.
Comment 14 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-04 14:35:26 UTC
this is package irrelevant at all, the texlive-common eclass has to be patched to have the proper ${ROOT} value in EAPI=7.
Comment 15 Fred Krogh 2019-06-04 16:33:25 UTC
I managed to get the new livetex packages installed, but to do so I needed to 
rm /usr/bin/latexmk
Of course latexmk was then quickly replaced.
Comment 16 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-04 20:27:22 UTC
*** Bug 687354 has been marked as a duplicate of this bug. ***
Comment 17 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-04 20:28:48 UTC
*** Bug 687350 has been marked as a duplicate of this bug. ***
Comment 18 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-05 07:09:59 UTC
*** Bug 687398 has been marked as a duplicate of this bug. ***
Comment 19 Michael Stypa 2019-06-05 07:16:02 UTC
(In reply to Fred Krogh from comment #15)
> I managed to get the new livetex packages installed, but to do so I needed
> to 
> rm /usr/bin/latexmk
> Of course latexmk was then quickly replaced.

For me I chose "emerge -C dev-tex/latexmk". This solved the collision on my box while installing texlive.
Comment 20 Michael Stypa 2019-06-05 07:17:35 UTC
(In reply to Mikle Kolyada from comment #7)
> does `texmf-update` ran manually fix the problem?

For me it does not. Same error when installing texlive.

fmtutil [ERROR]: running `pdftex -ini   -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [ERROR]: running `pdftex -ini   -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [INFO]: Disabled formats: 1
fmtutil [INFO]: Successfully rebuilt formats: 3
fmtutil [INFO]: Failed to build: 2 (pdftex/pdflatex pdftex/latex)
fmtutil [INFO]: Total formats: 6
fmtutil [INFO]: exiting with status 2
Comment 21 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-05 07:20:53 UTC
(In reply to Michael Stypa from comment #20)
> (In reply to Mikle Kolyada from comment #7)
> > does `texmf-update` ran manually fix the problem?
> 
> For me it does not. Same error when installing texlive.
> 
> fmtutil [ERROR]: running `pdftex -ini   -jobname=pdflatex -progname=pdflatex
> -translate-file=cp227.tcx *pdflatex.ini </dev/null' return status 1
> fmtutil [ERROR]: return error due to options --strict
> fmtutil [ERROR]: running `pdftex -ini   -jobname=latex -progname=latex
> -translate-file=cp227.tcx *latex.ini </dev/null' return status 1
> fmtutil [ERROR]: return error due to options --strict
> fmtutil [INFO]: Disabled formats: 1
> fmtutil [INFO]: Successfully rebuilt formats: 3
> fmtutil [INFO]: Failed to build: 2 (pdftex/pdflatex pdftex/latex)
> fmtutil [INFO]: Total formats: 6
> fmtutil [INFO]: exiting with status 2

fmt-util call in your outpu != texmf-update call I proposed, they are kinda different, so `fmtutil-sys --all` should fix everything for you, these both are relevan to the eclass anyways.
Comment 22 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-05 07:33:56 UTC
*** Bug 687310 has been marked as a duplicate of this bug. ***
Comment 23 Kristian 2019-06-05 09:03:47 UTC
to solve this issue I had to emerge texlive-langgerman independently as I have LINGUAS="de" set. See bug #687354, for some people this might be texlive-langenglish. In the end I did the following:

1. remove all texlive 2017 packages which was probably not neccessary

emerge --unmerge --deselect=n $(equery list --format='$cp' -f dev-texlive/.+-2017)

2. install texlive-langgerman independently

emerge -1 texlive-langgerman

3. emerge texlive
Comment 24 Larry the Git Cow gentoo-dev 2019-06-05 09:40:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd44867d1710a50b2d79ca095c935d283572555

commit 4dd44867d1710a50b2d79ca095c935d283572555
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2019-06-04 18:54:55 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2019-06-05 09:39:59 +0000

    eclass/texlive-common: call non-empty ${ROOT}
    
    EAPI=7 introduces empty ROOT variable if the actual root
    is defined as "/", this leads to the false-negative
    texmf-update and fmtutil calls.
    
    Closes: https://bugs.gentoo.org/687306
    
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>

 eclass/texlive-common.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 25 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-06-05 10:21:43 UTC
This isn't fixed.

-               if [ "$ROOT" = "/" ] && [ -x "${EPREFIX}"/usr/sbin/texmf-update ] ; then
+               if [ -n ${ROOT%/} ] && [ -x "${EPREFIX}"/usr/sbin/texmf-update ] ; then

This reverses the condition from 'calling when ROOT is /' to 'calling when ROOT is NOT /'.
Comment 26 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-05 11:47:37 UTC
(In reply to Michał Górny from comment #25)
> This isn't fixed.
> 
> -               if [ "$ROOT" = "/" ] && [ -x
> "${EPREFIX}"/usr/sbin/texmf-update ] ; then
> +               if [ -n ${ROOT%/} ] && [ -x
> "${EPREFIX}"/usr/sbin/texmf-update ] ; then
> 
> This reverses the condition from 'calling when ROOT is /' to 'calling when
> ROOT is NOT /'.

you are half right, this handles postrm wrongly otherwise, updated.
Comment 27 email200202 2019-06-10 04:26:19 UTC
This is not fixed.

app-text/texlive-core-2019-r3  didn't build:

Generating ls-R files
Generating language.dat file
Generating language.def file
Generating language.dat.lua file
Generating format files ...
Skipping font maps, since they are unchanged

Use 'texconfig font ro'(rw) to disable (enable) font generation for users

 * Regenerating TeX formats
 * ERROR: app-text/texlive-core-2019-r3::gentoo failed (postinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called pkg_postinst
 *   environment, line 1686:  Called die
 * The specific snippet of code:
 *       fmtutil-sys --all &> /dev/null || die;
 * 
 * If you need support, post the output of `emerge --info '=app-text/texlive-core-2019-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/texlive-core-2019-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/texlive-core-2019-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/texlive-core-2019-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/texlive-core-2019-r3/homedir'
 * S: '/var/tmp/portage/app-text/texlive-core-2019-r3/work/texlive-core-2019_build'
 * FAILED postinst: 1
>>> Regenerating /etc/ld.so.cache...

>>> Failed to execute postinst for app-text/texlive-core-2019-r3
Comment 28 email200202 2019-06-10 04:31:08 UTC
 * Messages for package app-text/texlive-core-2019-r3:

 * FAILED postinst: 1
 * ERROR: app-text/texlive-core-2019-r3::gentoo failed (postinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called pkg_postinst
 *   environment, line 1686:  Called die
 * The specific snippet of code:
 *       fmtutil-sys --all &> /dev/null || die;
 *
Comment 29 email200202 2019-06-10 06:00:43 UTC
When I ran "fmtutil-sys --all", I got this error message at the end:

.....
Transcript written on latex.log.
fmtutil [INFO]: /var/lib/texmf/web2c/pdftex/latex.fmt installed.
fmtutil [WARNING]: inifile mltex.ini for mltex/pdftex not found.
fmtutil [WARNING]: inifile eplain.ini for eplain/pdftex not found.
fmtutil [WARNING]: inifile amstex.ini for amstex/pdftex not found.
fmtutil [WARNING]: inifile pdfxmltex.ini for pdfxmltex/pdftex not found.
fmtutil [WARNING]: inifile xmltex.ini for xmltex/pdftex not found.
fmtutil [WARNING]: inifile texsis.ini for texsis/pdftex not found.
fmtutil [WARNING]: inifile lambda.ini for lamed/aleph not found.
fmtutil [WARNING]: inifile lollipop.ini for lollipop/tex not found.
fmtutil [INFO]: Disabled formats: 1
fmtutil [INFO]: Successfully rebuilt formats: 17
fmtutil [INFO]: Failed to build: 8 (pdftex/mltex pdftex/eplain pdftex/amstex pdftex/pdfxmltex pdftex/xmltex pdftex/texsis aleph/lamed tex/lollipop)
fmtutil [INFO]: Total formats: 26
fmtutil [INFO]: exiting with status 8
Comment 30 email200202 2019-06-10 07:49:46 UTC
I removed everything and did a fresh install. It completed the install successfully. All good, please ignore the comments above.