Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 500934

Summary: dev-tex/xmltex-1.9-r2 - fmtutil: format directory `.../work/xmltex/base/texmf-var/web2c' does not exist.
Product: Gentoo Linux Reporter: Allan Gottlieb <gottlieb>
Component: Current packagesAssignee: TeX project <tex>
Status: RESOLVED FIXED    
Severity: normal Keywords: PMASKED
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Deadline: 2020-08-10   
Attachments: emerge --info

Description Allan Gottlieb 2014-02-10 21:48:52 UTC
dev-tex/xmltex-1.9-r2 fails to build.  The entire build.log is short (will be included) and says

fmtutil: format directory `/var/tmp/portage/dev-tex/xmltex-1.9-r2/work/xmltex/base/texmf-var/web2c' does not exist.

/var/tmp/portage/dev-tex/xmltex-1.9-r2/work/xmltex/base/ has no subdirectories.

I don't know if this is related but I hit
Bug 466912 - dev-texlive/texlive-basic-2012 does not compile
and as suggested in the bug I
executed emerge -1 luatex   and    removed /etc/texmf
Together these permitted me to emerge several of the prerequsites for texlive, but I have now failed with xmltex
Comment 1 Allan Gottlieb 2014-02-10 21:56:45 UTC
Created attachment 370098 [details]
emerge --info
Comment 2 Alex Xu (Hello71) 2014-02-10 23:19:38 UTC
Please attach full build.log.
Comment 3 Allan Gottlieb 2014-02-11 15:39:58 UTC
(In reply to Alex Xu (Hello71) from comment #2)
> Please attach full build.log.

Sorry I though I did, but must have erred.  Here it is

 * Package:    dev-tex/xmltex-1.9-r2
 * Repository: gentoo
 * Maintainer: tex@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> [1m[37mcfg-update-1.8.2-r1[0m[0m: Creating checksum index...
>>> Unpacking source...
>>> Unpacking xmltex-1.9.tar.gz to /var/tmp/portage/dev-tex/xmltex-1.9-r2/work
>>> Source unpacked in /var/tmp/portage/dev-tex/xmltex-1.9-r2/work
>>> Preparing source in /var/tmp/portage/dev-tex/xmltex-1.9-r2/work/xmltex/base ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-tex/xmltex-1.9-r2/work/xmltex/base ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-tex/xmltex-1.9-r2/work/xmltex/base ...
fmtutil: format directory `/var/tmp/portage/dev-tex/xmltex-1.9-r2/work/xmltex/base/texmf-var/web2c' does not exist.
 * ERROR: dev-tex/xmltex-1.9-r2::gentoo failed (compile phase):
 *   failed to build format xmltex
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 2090:  Called die
 * The specific snippet of code:
 *       TEXMFHOME="${S}" fmtutil --cnffile "${FILESDIR}/format.${PN}.cnf" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${PN}"
 * 
 * If you need support, post the output of `emerge --info '=dev-tex/xmltex-1.9-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-tex/xmltex-1.9-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-tex/xmltex-1.9-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-tex/xmltex-1.9-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-tex/xmltex-1.9-r2/work/xmltex/base'
 * S: '/var/tmp/portage/dev-tex/xmltex-1.9-r2/work/xmltex/base'
Comment 4 Alex Xu (Hello71) 2014-02-11 16:02:12 UTC
Ah. Tach.
Comment 5 Allan Gottlieb 2014-02-20 16:59:42 UTC
(In reply to Alex Xu (Hello71) from comment #4)
> Ah. Tach.

I am sorry.  I don't understand.
Comment 6 Gabriel Homeier 2014-04-08 17:30:10 UTC
when you nuked /etc/texmf you destroyed a symlink needed to build xmltex... re-merge kpathsea after you can emerge texlive-base and it should work. (worked for me anyway)
Comment 7 Gabriel Homeier 2014-04-08 17:31:19 UTC
* QA Notice: Symbolic link /usr/share/texmf/web2c/texmf.cnf points to /etc/texmf/web2c/texmf.cnf which does not exist.
Comment 8 Allan Gottlieb 2014-05-01 00:46:35 UTC
(In reply to Gabriel Homeier from comment #6)
> when you nuked /etc/texmf you destroyed a symlink needed to build xmltex...
> re-merge kpathsea after you can emerge texlive-base and it should work.
> (worked for me anyway)

I remerged kpathsea, but xmltex still failed just as above.  However your diagnosis is correct.  I did equery b /etc/texmf and found all the packages supplying /etc/texmf.  Remerging texlive-core did the trick.  Thanks for the tip.
Comment 9 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-07-10 21:50:36 UTC
Masked for removal.
Comment 10 Larry the Git Cow gentoo-dev 2020-08-11 14:00:18 UTC
The bug has been closed via the following commit(s):

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

commit f0f009c9687f6c38da46d934e41a7aa7d169c2ea
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2020-08-11 13:57:54 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2020-08-11 13:57:54 +0000

    dev-tex/xmltex: remove last-rited pkg
    
    Closes: https://bugs.gentoo.org/500934
    Closes: https://bugs.gentoo.org/551690
    Closes: https://bugs.gentoo.org/698622
    
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>

 dev-tex/xmltex/Manifest                |  1 -
 dev-tex/xmltex/files/format.xmltex.cnf |  2 --
 dev-tex/xmltex/metadata.xml            |  8 -----
 dev-tex/xmltex/xmltex-1.9-r3.ebuild    | 53 ----------------------------------
 4 files changed, 64 deletions(-)