hi I am having a lot of troubles at emerging texlive-basic-2017-r1 this ebuild stops with the following error ./install-tl Can't locate TeXLive/TLUtils.pm in @INC (you may need to install the TeXLive::TLUtils module) (@INC contains: ./tlpkg /etc/perl /usr/local/lib/perl5/5.26.2/i686-linux /usr/local/lib/perl5/5.26.2 /usr/lib/perl5/vendor_perl/5.26.2/i686-linux /usr/lib/perl5/vendor_perl/5.26.2 /usr/local/lib/perl5 /usr/lib/perl5/vendor_perl/5.24.3 /usr/lib/perl5/vendor_perl/5.22.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.26.2/i686-linux /usr/lib/perl5/5.26.2) at ./install-tl line 54. BEGIN failed--compilation aborted trying to isolate the problem, I have created this script --- #!/usr/bin/env perl use TeXLive::TLUtils qw(); --- which complains this --- Can't locate TeXLive/TLUtils.pm in @INC (you may need to install the TeXLive::TLUtils module) (@INC contains: /etc/perl /usr/local/lib/perl5/5.26.2/i686-linux /usr/local/lib/perl5/5.26.2 /usr/lib/perl5/vendor_perl/5.26.2/i686-linux /usr/lib/perl5/vendor_perl/5.26.2 /usr/local/lib/perl5 /usr/lib/perl5/vendor_perl/5.24.3 /usr/lib/perl5/vendor_perl/5.22.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.26.2/i686-linux /usr/lib/perl5/5.26.2) at ./my line 3. BEGIN failed--compilation aborted at ./my line 3. --- and it's a bit weird since the file it is looking for is located here qfile /usr/share/tlpkg/TeXLive/TLUtils.pm app-text/texlive-core (/usr/share/tlpkg/TeXLive/TLUtils.pm) it seems there is a problem with the PATH perl -e "print join(\"\n\",@INC);" perl -e "print(\"\n\");" reports the following /etc/perl /usr/local/lib/perl5/5.26.2/i686-linux /usr/local/lib/perl5/5.26.2 /usr/lib/perl5/vendor_perl/5.26.2/i686-linux /usr/lib/perl5/vendor_perl/5.26.2 /usr/local/lib/perl5 /usr/lib/perl5/vendor_perl/5.24.3 /usr/lib/perl5/vendor_perl/5.22.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.26.2/i686-linux /usr/lib/perl5/5.26.2
Ugh.
Please attach the full build log of texlive-basic-2017-r1 and the output of emerge --info !
Created attachment 561672 [details] emerge info emerge info
Created attachment 561674 [details] build log build log
I'd like to understand from *where* Perl is supposed to load the module TeXLive/TLUtils.pm
What's the output of "perl -V"?
# perl -V Summary of my perl5 (revision 5 version 26 subversion 2) configuration: Platform: osname=linux osvers=2.6.39-flash-eating-bats-ii-gentoo-ia32-t23 archname=i686-linux uname='linux orangecube 2.6.39-flash-eating-bats-ii-gentoo-ia32-t23 #53 preempt tue jul 3 00:05:33 cest 2018 i686 intel(r) pentium(r) d cpu 3.40ghz genuineintel gnulinux ' config_args='-des -Dinstallprefix=/usr -Dinstallusrbinperl=n -Ui_xlocale -Di_ndbm -Di_gdbm -Di_db -DDEBUGGING=none -Dinc_version_list=5.24.3 5.22.3 -Dnoextensions=ODBM_File -Duseshrplib -Darchname=i686-linux -Dcc=i686-pc-linux-gnu-gcc -Doptimize=-O2 -march=i686 -pipe -Dldflags=-Wl,-O1 -Wl,--as-needed -Dprefix=/usr -Dsiteprefix=/usr/local -Dvendorprefix=/usr -Dscriptdir=/usr/bin -Dprivlib=/usr/lib/perl5/5.26.2 -Darchlib=/usr/lib/perl5/5.26.2/i686-linux -Dsitelib=/usr/local/lib/perl5/5.26.2 -Dsitearch=/usr/local/lib/perl5/5.26.2/i686-linux -Dvendorlib=/usr/lib/perl5/vendor_perl/5.26.2 -Dvendorarch=/usr/lib/perl5/vendor_perl/5.26.2/i686-linux -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dvendorman1dir=/usr/share/man/man1 -Dvendorman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.5.26.2 -Dlocincpth=/usr/include -Dglibpth=/lib /usr/lib -Duselargefiles -Dd_semctl_semun -Dcf_by=Gentoo -Dmyhostname=localhost -Dperladmin=root@localhost -Ud_csh -Dsh=/bin/sh -Dtargetsh=/bin/sh -Uusenm -Ui_xlocale -Di_ndbm -Di_gdbm -Di_db -DDEBUGGING=none -Dinc_version_list=5.24.3 5.22.3 -Dnoextensions=ODBM_File' hint=recommended useposix=true d_sigaction=define useithreads=undef usemultiplicity=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='i686-pc-linux-gnu-gcc' ccflags ='-fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' optimize='-O2 -march=i686 -pipe' cppflags='-fwrapv -fno-strict-aliasing -pipe' ccversion='' gccversion='5.4.0' gccosandvers='' intsize=4 longsize=4 ptrsize=4 doublesize=8 byteorder=1234 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=12 longdblkind=3 ivtype='long' ivsize=4 nvtype='double' nvsize=8 Off_t='off_t' lseeksize=8 alignbytes=4 prototype=define Linker and Libraries: ld='i686-pc-linux-gnu-gcc' ldflags ='-Wl,-O1 -Wl,--as-needed' libpth=/usr/lib/gcc/i686-pc-linux-gnu/5.4.0/include-fixed /usr/lib /lib/../lib /usr/lib/../lib /lib libs=-lpthread -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc libc=libc-2.22.so so=so useshrplib=true libperl=libperl.so.5.26.2 gnulibc_version='2.22' Dynamic Linking: dlsrc=dl_dlopen.xs dlext=so d_dlsymun=undef ccdlflags='-Wl,-E' cccdlflags='-fPIC' lddlflags='-shared -O2 -march=i686 -pipe -Wl,-O1 -Wl,--as-needed' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP PERL_OP_PARENT PERL_PRESERVE_IVUV USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF Locally applied patches: gentoo/hints_hpux - Fix hpux hints gentoo/aix_soname - aix gcc detection and shared library soname support gentoo/EUMM-RUNPATH - https://bugs.gentoo.org/105054 cpan/ExtUtils-MakeMaker: drop $PORTAGE_TMPDIR from LD_RUN_PATH gentoo/config_over - Remove -rpath and append LDFLAGS to lddlflags gentoo/opensolaris_headers - Add headers for opensolaris gentoo/patchlevel - List packaged patches for perl-5.26.2(#1) in patchlevel.h gentoo/cleanup-paths - Cleanup PATH and shrpenv gentoo/enc2xs - Tweak enc2xs to follow symlinks and ignore missing @INC directories. gentoo/darwin-cc-ld - https://bugs.gentoo.org/297751 darwin: Use $CC to link gentoo/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN. gentoo/interix - Fix interix hints gentoo/create_libperl_soname - https://bugs.gentoo.org/286840 Set libperl soname gentoo/mod_paths - Add /etc/perl to @INC gentoo/EUMM_perllocalpod - cpan/ExtUtils-MakeMaker: remove targets that generate perllocal.pod gentoo/drop_fstack_protector - https://bugs.gentoo.org/348557 Don't force -fstack-protector on everyone gentoo/usr_local - Configure: Don't include sources in /usr/local/ for compiling perl gentoo/D-SHA-CFLAGS - https://bugs.gentoo.org/506818 Do not set custom CFLAGS in cpan/Digest-SHA gentoo/io_socket_ip_tests - cpan/IO-Socket-IP: Disable network tests gentoo/tests - Fix EUMM podlocal tests gentoo/no-nsl.patch - debian/cpan-missing-site-dirs - Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable debian/makemaker-pasthru - Pass LD settings through to subdirectories fixes/memoize_storable_nstore - [rt.cpan.org #77790] Memoize::Storable: respect 'nstore' option not respected fixes/podman-pipe - Better errors for man pages from standard input fixes/respect_umask - Respect umask during installation fixes/net_smtp_docs - [rt.cpan.org #36038] Document the Net::SMTP 'Port' option fixes/document_makemaker_ccflags - [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags} fixes/parallel-manisort.patch - Fix parallel building Built under linux Compiled at Jan 15 2019 08:54:46 @INC: /etc/perl /usr/local/lib/perl5/5.26.2/i686-linux /usr/local/lib/perl5/5.26.2 /usr/lib/perl5/vendor_perl/5.26.2/i686-linux /usr/lib/perl5/vendor_perl/5.26.2 /usr/local/lib/perl5 /usr/lib/perl5/vendor_perl/5.24.3 /usr/lib/perl5/vendor_perl/5.22.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.26.2/i686-linux /usr/lib/perl5/5.26.2
(In reply to Carlo from comment #5) > I'd like to understand from *where* Perl is supposed to load the module > TeXLive/TLUtils.pm /usr/share/tlpkg/TeXLive/TLUtils.pm ^ this is where it should be, and it should belong to app-text/texlive-core-2017-r4
(In reply to Andreas K. Hüttel from comment #8) > (In reply to Carlo from comment #5) > > I'd like to understand from *where* Perl is supposed to load the module > > TeXLive/TLUtils.pm > > /usr/share/tlpkg/TeXLive/TLUtils.pm > > ^ this is where it should be, and it should belong to > app-text/texlive-core-2017-r4 it's not in the path reported by this perl -e "print join(\"\n\",@INC);" perl -e "print(\"\n\");" so how can Perl reach /usr/share/tlpkg ?!?!?
what's the output of these commands: kpsewhich -var-value=TEXMFROOT fmtutil --listcfg (if you read the perl script /usr/bin/fmtutil, it should add the required directory to @INC ...)
yes, but look at my script --- #!/usr/bin/env perl use TeXLive::TLUtils qw(); --- this simple script doesn't call "kpsewhich -var-value=TEXMFROOT" and it fails! kpsewhich -var-value=TEXMFROOT umm I assume it should come from /etc/texmf/texmf.d/05searchpaths.cnf TEXMFROOT = $SELFAUTODIR/share /etc/texmf/texmf.d belogns to dev-libs/kpathsea, which has been updated (/var/db/pkg/dev-libs/kpathsea-6.2.3_p20170524/) anyway, kpsewhich -var-value=TEXMFROOT is empty therefore fmtutil --listcfg reports this Can't locate TeXLive/TLUtils.pm in @INC (you may need to install the TeXLive::TLUtils module) (@INC contains: /etc/perl /usr/local/lib/perl5/5.26.2/i686-linux /usr/local/lib/perl5/5.26.2 /usr/lib/perl5/vendor_perl/5.26.2/i686-linux /usr/lib/perl5/vendor_perl/5.26.2 /usr/local/lib/perl5 /usr/lib/perl5/vendor_perl/5.24.3 /usr/lib/perl5/vendor_perl/5.22.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.26.2/i686-linux /usr/lib/perl5/5.26.2) at /usr/bin/fmtutil line 41. BEGIN failed--compilation aborted at /usr/bin/fmtutil line 41.
I have the same problem on Gentoo {x86, hppa, ppc}. The problem manifests itself on emerge updates; new stage3-2019 do not show any issue. Anyway, the hppa and ppc stage4 were updated to 2018, glibc and the kernel in use were the same as in the recent profile but updating latex ended with the issue I am reporting It seems that yesterday night I found a workaround --------- x86, using gcc v5.4.0 ------------ 2019-01-17--15-23-05---2019-01-17--15-57-34 - [ app-text/texlive-core ] - success - root@dev2.30/5.4.0 2019-01-17--15-57-34---2019-01-17--16-03-38 - [ dev-libs/kpathsea ] - success - root@dev2.30/5.4.0 2019-01-17--16-03-38---2019-01-17--16-08-34 - [ dev-texlive/texlive-basic ] - success - root@dev2.30/5.4.0 2019-01-17--16-08-35---2019-01-17--16-13-29 - [ app-text/dvipsk ] - success - root@dev2.30/5.4.0 2019-01-17--16-13-30---2019-01-17--16-18-24 - [ dev-tex/bibtexu ] - success - root@dev2.30/5.4.0 2019-01-17--16-26-08---2019-01-17--16-29-17 - [ dev-texlive/texlive-basic ] - success - root@dev2.30/5.4.0 --------------------------------------------- --------- HPPA, using gcc v7.3.0 ------------ 2019-01-17--08-39-33---2019-01-17--08-44-45 - [ dev-texlive/texlive-latex ] - success - @2.29.1/7.3.0 2019-01-17--08-44-45---2019-01-17--09-02-29 - [ dev-texlive/texlive-fontsrecommended ] - success - @2.29.1/7.3.0 2019-01-17--09-02-29---2019-01-17--09-08-15 - [ dev-texlive/texlive-plaingeneric ] - success - @2.29.1/7.3.0 2019-01-17--09-08-15---2019-01-17--09-13-32 - [ dev-texlive/texlive-latexrecommended ] - success - @2.29.1/7.3.0 2019-01-17--09-13-33---2019-01-17--09-17-03 - [ dev-texlive/texlive-luatex ] - success - @2.29.1/7.3.0 2019-01-17--09-17-03---2019-01-17--09-19-54 - [ dev-tex/pgf ] - success - @2.29.1/7.3.0 2019-01-17--09-19-54---2019-01-17--09-26-41 - [ dev-texlive/texlive-pictures ] - success - @2.29.1/7.3.0 2019-01-17--09-26-41---2019-01-17--09-32-08 - [ dev-texlive/texlive-pstricks ] - success - @2.29.1/7.3.0 2019-01-17--09-32-08---2019-01-17--10-03-55 - [ dev-texlive/texlive-latexextra ] - success - @2.29.1/7.3.0 2019-01-17--10-03-56---2019-01-17--10-11-05 - [ dev-texlive/texlive-mathscience ] - success - @2.29.1/7.3.0 2019-01-17--10-11-05---2019-01-17--10-15-58 - [ dev-texlive/texlive-xetex ] - success - @2.29.1/7.3.0 2019-01-17--10-15-59---2019-01-17--10-19-04 - [ app-text/dblatex ] - success - @2.29.1/7.3.0 --------------------------------------------- as you can see now "dev-texlive/texlive-basic" is perfectly emerged, even by using an old gcc version (gcc v5.4.0) now, talking about the trick I used to solve the problem: ist_folder=" /etc/texmf /usr/share/texmf-dist /usr/lib/libkpathsea.* /usr/lib/libkpathsea.* " list_ebuild=" app-text/texlive-core dev-libs/kpathsea dev-texlive/texlive-basic app-text/dvipsk dev-tex/bibtexu " texmf-update kpsewhich -var-value=TEXMFROOT fmtutil --listcfg for item in $list_ebuild do myemerge-log --unmerge $item done for item in $list_folder do rm -r $item done for item in $list_ebuild do myemerge-log $item done --------------- more tests: ---- create a file, named "Makefile" all: @a2x -f pdf my.asc -d book --verbose --no-xmllint --stylesheet=my.css ---- create a file, named "my.asc" Blablabla ========= [[dedication]] Thanks to Santa Clauss for his support. ---- Invoke: Make ---- a2x: args: ['-f', 'pdf', 'my.asc', '-d', 'book', '--verbose', '--no-xmllint', '--stylesheet=my.css'] a2x: resource files: [] a2x: resource directories: ['/usr/share/asciidoc/images', '/usr/share/asciidoc/stylesheets'] a2x: executing: "/usr/bin/asciidoc.py" --backend docbook -a "a2x-format=pdf" --doctype book --verbose --out-file "/root/emerge/latex/mybook/my.xml" "/root/emerge/latex/mybook/my.asc" asciidoc: reading: /usr/share/asciidoc/asciidoc.conf asciidoc: reading: /root/emerge/latex/mybook/my.asc asciidoc: reading: /usr/share/asciidoc/docbook45.conf asciidoc: reading: /usr/share/asciidoc/filters/music/music-filter.conf asciidoc: reading: /usr/share/asciidoc/filters/source/source-highlight-filter.conf asciidoc: reading: /usr/share/asciidoc/filters/latex/latex-filter.conf asciidoc: reading: /usr/share/asciidoc/filters/graphviz/graphviz-filter.conf asciidoc: reading: /usr/share/asciidoc/filters/code/code-filter.conf asciidoc: reading: /usr/share/asciidoc/lang-en.conf asciidoc: writing: /root/emerge/latex/mybook/my.xml a2x: executing: "dblatex" -t pdf -p "/usr/share/asciidoc/dblatex/asciidoc-dblatex.xsl" -s "/usr/share/asciidoc/dblatex/asciidoc-dblatex.sty" -V "/root/emerge/latex/mybook/my.xml" Build the book set list... INFO:dblatex:Build the book set list... xsltproc -o doclist.txt --xinclude --xincludestyle doclist.xsl /root/emerge/latex/mybook/my.xml DEBUG:dblatex:xsltproc -o doclist.txt --xinclude --xincludestyle doclist.xsl /root/emerge/latex/mybook/my.xml Build the listings... INFO:dblatex:Build the listings... xsltproc -o listings.xml --xinclude --xincludestyle --param current.dir '/root/emerge/latex/mybook' /usr/share/dblatex/xsl/common/mklistings.xsl /root/emerge/latex/mybook/my.xml DEBUG:dblatex:xsltproc -o listings.xml --xinclude --xincludestyle --param current.dir '/root/emerge/latex/mybook' /usr/share/dblatex/xsl/common/mklistings.xsl /root/emerge/latex/mybook/my.xml xsltproc -o my.rtex --xinclude --xincludestyle --param current.dir '/root/emerge/latex/mybook' --param listings.xml '/tmp/tmpiIBe7e/listings.xml' /tmp/tmpiIBe7e/custom.xsl /root/emerge/latex/mybook/my.xml DEBUG:dblatex:xsltproc -o my.rtex --xinclude --xincludestyle --param current.dir '/root/emerge/latex/mybook' --param listings.xml '/tmp/tmpiIBe7e/listings.xml' /tmp/tmpiIBe7e/custom.xsl /root/emerge/latex/mybook/my.xml XSLT stylesheets DocBook - LaTeX 2e (0.3.10) =================================================== Image 'dblatex' not found WARNING:dblatex:Image 'dblatex' not found Build my.pdf INFO:dblatex:Build my.pdf built-in module pdftex registered DEBUG:dblatex:built-in module pdftex registered no support found for ifxetex DEBUG:dblatex:no support found for ifxetex no support found for fontspec DEBUG:dblatex:no support found for fontspec no support found for xltxtra DEBUG:dblatex:no support found for xltxtra no support found for fontenc DEBUG:dblatex:no support found for fontenc no support found for inputenc DEBUG:dblatex:no support found for inputenc no support found for fancybox DEBUG:dblatex:no support found for fancybox built-in module makeidx registered DEBUG:dblatex:built-in module makeidx registered no support found for asciidoc-dblatex DEBUG:dblatex:no support found for asciidoc-dblatex building additional files... DEBUG:dblatex:building additional files... checking if compiling is necessary... DEBUG:dblatex:checking if compiling is necessary... the output file doesn't exist DEBUG:dblatex:the output file doesn't exist pdflatex -interaction=batchmode my.tex DEBUG:dblatex:pdflatex -interaction=batchmode my.tex running post-compilation scripts... DEBUG:dblatex:running post-compilation scripts... [index] the index file /tmp/tmpiIBe7e/my.idx is empty DEBUG:dblatex:[index] the index file /tmp/tmpiIBe7e/my.idx is empty my.toc MD5 checksum changed DEBUG:dblatex:my.toc MD5 checksum changed my.aux MD5 checksum changed DEBUG:dblatex:my.aux MD5 checksum changed the /tmp/tmpiIBe7e/my.toc file has changed DEBUG:dblatex:the /tmp/tmpiIBe7e/my.toc file has changed pdflatex -interaction=batchmode my.tex DEBUG:dblatex:pdflatex -interaction=batchmode my.tex running post-compilation scripts... DEBUG:dblatex:running post-compilation scripts... [index] the index file /tmp/tmpiIBe7e/my.idx is empty DEBUG:dblatex:[index] the index file /tmp/tmpiIBe7e/my.idx is empty no new compilation is needed DEBUG:dblatex:no new compilation is needed running last-compilation scripts... DEBUG:dblatex:running last-compilation scripts... 'my.pdf' successfully built INFO:dblatex:'my.pdf' successfully built It seems working!
the question is: what was wrong?