When I try to install =app-text/texlive-core-2020-r9, compilation fails due to what I understand to be an error in the top-level Makefile. (On my system, this is "/var/tmp/portage/app-text/texlive-core-2020-r9/work/texlive-core-2020_build/Makefile"). Portage gives me this error message: make[1]: Entering directory '/var/tmp/portage/app-text/texlive-core-2020-r9/work/texlive-core-2020_build' /bin/sh: -c: line 16: syntax error near unexpected token `;' /bin/sh: -c: line 16: ` if ; then echo "make: running /bin/sh $cmd$skip"; fi && \' Searching said Makefile for the string "make: running", I found out that the blank argument to the "if" above is "$(AM_V_P)", which is defined as "$(am__v_P_$(V))". "V" is not defined anywhere, hence "AM_V_P" should degenerate into "am__v_P_", which seems to be defined without any problems. I don't know where exactly the problem lies, but I attempted to patch the ebuild so that the line "V=1" got prepended to the Makefile. Somehow or another, this solved the problem. (Pretty ugly, I know, but this was the best I could come up with.) Reproducible: Always Steps to Reproduce: LC_ALL=C emerge -va texlive-core Actual Results: [...] >>> Source configured. >>> Compiling source in /var/tmp/portage/app-text/texlive-core-2020-r9/work/texlive-core-2020_build ... make -j2 -l2.2 AR=x86_64-pc-linux-gnu-ar SHELL=/bin/sh texmf=/usr/share/texmf-dist env MAKE="make" LDFLAGS="-Wl,-O1 -Wl,--as-needed" \ CC="x86_64-pc-linux-gnu-gcc" CFLAGS="-march=native -mtune=native -O2 -pipe" \ CXX="x86_64-pc-linux-gnu-g++" CXXFLAGS="-march=native -mtune=native -O2 -pipe" \ OBJCXX="" OBJCXXFLAGS="" \ /var/tmp/portage/app-text/texlive-core-2020-r9/work/texlive-20200406-source/doc/buildinfo.sh >buildinfo.log Making all in . make[1]: Entering directory '/var/tmp/portage/app-text/texlive-core-2020-r9/work/texlive-core-2020_build' /bin/sh: -c: line 16: syntax error near unexpected token `;' /bin/sh: -c: line 16: ` if ; then echo "make: running /bin/sh $cmd$skip"; fi && \' make[1]: *** [Makefile:1004: recurse] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-text/texlive-core-2020-r9/work/texlive-core-2020_build' make: *** [Makefile:577: all-recursive] Error 1 * ERROR: app-text/texlive-core-2020-r9::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-text/texlive-core-2020-r9::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-text/texlive-core-2020-r9::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-text/texlive-core-2020-r9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/texlive-core-2020-r9/temp/environment'. * Working directory: '/var/tmp/portage/app-text/texlive-core-2020-r9/work/texlive-core-2020_build' * S: '/var/tmp/portage/app-text/texlive-core-2020-r9/work/texlive-core-2020_build' Expected Results: After applying the patch, texlive-core compiles successfully.
Created attachment 658664 [details] emerge --info
Created attachment 658666 [details] emerge -va texlive-core
Created attachment 658668 [details, diff] Ugly patch
Created attachment 658670 [details, diff] Updated Manifest
Created attachment 658672 [details] emerge -va texlive-core, after applying the patch
Lokks invalid to me as it feels like you invoke something weird into your environment. Please tell us what is your printent, also what is your /bin/sh symlink (where it points).
Yes, I also find this problem very weird. I have never encountered it before with any other packages. After su'ing as root: $ printenv LC_ALL=C SHELL=/bin/bash WINDOWID=46137357 LESSHISTFILE=/dev/null XDG_CONFIG_DIRS=/etc/xdg LESS=-R -M --shift 5 JDK_HOME=/etc/java-config-2/current-system-vm CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/gconf /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/revdep-rebuild R_HOME=/usr/lib64/R XTERM_VERSION=XTerm(351) JAVA_HOME=/etc/java-config-2/current-system-vm ANT_HOME=/usr/share/ant XTERM_SHELL=/bin/bash EDITOR=/usr/bin/vim PWD=/root CONFIG_PROTECT=/usr/share/gnupg/qualified.txt /usr/lib64/libreoffice/program/sofficerc LOGNAME=root MANPATH=/etc/java-config-2/current-system-vm/man::/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.33.1/man:/etc/java-config-2/current-system-vm/man/:/usr/local/share/man:/usr/share/man:/usr/lib/llvm/10/share/man XAUTHORITY=/root/.xauthpV1BbJ OPENCL_PROFILE=nvidia WINDOWPATH=1 MOTD_SHOWN=pam HOME=/root LANG=en_US.utf8 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: FLTK_DOCDIR=/usr/share/doc/fltk-1.3.5-r4/html OPENGL_PROFILE=xorg-x11 XTERM_LOCALE=en_US.utf8 QT_GRAPHICSSYSTEM=raster INFOPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.33.1/info:/usr/share/info MOZ_GMP_PATH=/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed JAVAC=/etc/java-config-2/current-system-vm/bin/javac TERM=xterm-256color LESSOPEN=|lesspipe %s USER=root MANPAGER=manpager DISPLAY=:0 SHLVL=5 PAGER=/usr/bin/less SBCL_HOME=/usr/lib64/sbcl LC_CTYPE=en_US.utf8 GCC_SPECS= GSETTINGS_BACKEND=dconf QUOTING_STYLE=literal XDG_DATA_DIRS=/usr/local/share:/usr/share HUSHLOGIN=FALSE PATH=/sbin:/bin:/usr/sbin:/usr/bin VBOX_APP_HOME=/usr/lib64/virtualbox SBCL_SOURCE_ROOT=/usr/lib64/sbcl/src OLDPWD=/ _=/usr/bin/printenv As for the sh symlink: $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 Aug 26 15:05 /bin/sh -> bash $ ls -l /bin/bash -rwxr-xr-x 1 root root 819768 Aug 26 15:05 /bin/bash