* Package:    sys-cluster/lmod-8.7.23:0
 * Repository: gentoo
 * Maintainer: sci@gentoo.org
 * USE:        abi_x86_64 amd64 auto-swap cache elibc_glibc kernel_linux lua_single_target_lua5-1
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using lua5.1 to build
>>> Unpacking source...
>>> Unpacking lmod-8.7.23.tar.gz to /var/tmp/portage/sys-cluster/lmod-8.7.23/work
>>> Source unpacked in /var/tmp/portage/sys-cluster/lmod-8.7.23/work
>>> Preparing source in /var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23 ...
 * Applying lmod-8.4.19-no-libsandbox.patch ...
 [ ok ]
 * Running eautoreconf in '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23' ...
 * Running 'autoconf --force' ...
 [ ok ]
 * Running elibtoolize in: Lmod-8.7.23/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23 ...
 * econf: updating Lmod-8.7.23/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating Lmod-8.7.23/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --docdir=/usr/share/doc/lmod-8.7.23 --htmldir=/usr/share/doc/lmod-8.7.23/html --libdir=/usr/share/Lmod/lib64 --with-tcl --with-fastTCLInterp --with-colorize --with-supportKsh --without-useBuiltinPkgs --with-siteControlPrefix --with-siteName=Gentoo --with-syshost=Gentoo --with-lua_include=/usr/include/lua5.1 --with-lua=/usr/bin/lua5.1 --with-luac=/usr/bin/luac5.1 --with-module-root-path=/etc/modulefiles --with-spiderCacheDir=/etc/lmod_cache/spider_cache --with-updateSystemFn=/etc/lmod_cache/system.txt --prefix=/usr/share/Lmod --with-caseIndependentSorting --without-hiddenItalic --with-exportedModuleCmd --without-redirect --with-extendedDefault --with-cachedLoads --without-duplicatePaths --with-autoSwap
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to enable C11 features... none needed
DUPLICATE_PATHS=no
LMOD_ALLOW_ROOT_USE=yes
SITE_MSG_FILE=<empty>
LMOD_OVERRIDE_LANG=<empty>
CASE_INDEPENDENT_SORTING=yes
COLORIZE=yes
DYNAMIC_SPIDER_CACHE=yes
HIDDEN_ITALIC=no
EXACT_MATCH=no
MODE=user_default
LMOD_CONFIG_DIR=/etc/lmod
AUTO_SWAP=yes
EXPORT_MODULE=yes
REDIRECT=no
MODULEPATH_ROOT=/etc/modulefiles
ANCIENT=86400
SHORT_TIME=2
SPIDER_CACHE_DIRS=/etc/lmod_cache/spider_cache
SPIDER_CACHE_DESCRIPT_FN=
UPDATE_SYSTEM_FN=/etc/lmod_cache/system.txt
PREPEND_BLOCK=normal
SITE_NAME=Gentoo
SYSHOST=Gentoo
ALLOW_TCL_MFILES==yes
DISABLE_NAME_AUTOSWAP=no
MPATH_AVAIL=no
SETTARG=no
IGNORE_DIRS=.svn,.git,.hg,.bzr
PIN_VERSIONS=no
TMOD_PATH_RULE=no
TMOD_FIND_FIRST=no
LUA_INCLUDE=/usr/include/lua5.1
CACHED_LOADS=yes
EXTENDED_DEFAULT=yes
SUPPORT_KSH=yes
MODULEPATH_INIT=@PKG@/init/.modulespath
SITE_CONTROLLED_PREFIX=yes
USE_BUILT_IN_PKGS=no
USE_DOT_CONFIG_DIR_ONLY=no
SILENCE_SHELL_DEBUGGING=yes
FAST_TCL_INTERP=yes
AVAIL_EXTENSIONS=yes
PATH_TO_LUA=/usr/bin/lua5.1
PATH_TO_LUAC=/usr/bin/luac5.1
LUA_SUFFIX=no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for tcl.h... yes
checking for library containing Tcl_CreateInterp... -ltcl
checking for ps... /usr/bin/ps
checking for readlink... /usr/bin/readlink
checking for gexpr... no
checking for expr... /usr/bin/expr
checking for gbasename... no
checking for basename... /usr/bin/basename
checking for git... /usr/bin/git
checking for less... /usr/bin/less
checking for sha1sum... /usr/bin/sha1sum
checking for tclsh... /usr/bin/tclsh
checking for gtr... no
checking for tr... /usr/bin/tr
checking for gls... no
checking for ls... /usr/bin/ls
checking for valid Lua version... 5.1
checking for lua modules: posix... yes
checking for lua modules: lfs... yes
checking for lua modules: term... yes
checking for zsh... /usr/bin/zsh
configure: creating ./config.status
config.status: creating makefile

----------------------------------- SUMMARY ----------------------------------

Package version............................................. : Lmod-8.7.23
Package version (git) ...................................... :

LUA_INCLUDE................................................. : /usr/include/lua5.1
Lua executable.............................................. : /usr/bin/lua5.1
Luac executable............................................. : /usr/bin/luac5.1
User Controlled Prefix...................................... : yes
Prefix...................................................... : /usr/share/Lmod
Actual Install dir.......................................... : /usr/share/Lmod
Lmod config dir............................................. : /etc/lmod

MODULEPATH_ROOT............................................. : /etc/modulefiles
Wait (s) before rebuilding cache............................ : 86400
Allow Duplicate Paths....................................... : no
Do not save Cache if build time < .......................... : 2
SPIDER_CACHE_DIRS........................................... : /etc/lmod_cache/spider_cache
Prepending multiple dirs (NORMAL / REVERSED)................ : normal
Colorized output supported.................................. : yes
File that is touched when system is updated................. : /etc/lmod_cache/system.txt
Allow duplicate entry in PATHs.............................. : no
Allow tcl modulefiles....................................... : yes
ZSH Tab Completion Functions Site Directory................. : /usr/share/zsh/site-functions
Full Settarg support........................................ : no
Have lua-term............................................... : yes
Have luafilesystem.......................................... : yes
Support Auto Swap when using families....................... : yes
Export the module shell function in Bash.................... : yes
Disable same name autoswapping.............................. : no
Use Spider Cache on Loads................................... : yes
Pager used inside Lmod...................................... : /usr/bin/less
System LD_PRELOAD........................................... :
System LD_LIBRARY_PATH...................................... :
Hashsum program used........................................ : /usr/bin/sha1sum
Site Name................................................... : Gentoo
SYSHOST..................................................... : Gentoo
Site Message file........................................... : <empty>
Override $LANG Language for error etc....................... : <empty>
Which LuaFileSystem is being used........................... : system
Use italic instead of faint for hidden modules.............. : no
If path entry is already there then don't prepend........... : no
Use Tmod Find First rule instead of Find Best for defaults.. : no
MODULEPATH Initial file..................................... : @PKG@/init/.modulespath
Use built-in lua packages instead of system provided pkgs... : no
Silence shell debugging output for bash/zsh................. : yes
Allow root to use Lmod...................................... : yes
Support KSH................................................. : yes
MODE........................................................ : user_default
Use the fast TCL interpreter................................ : yes
LMOD_CONFIG_DIR............................................. : /etc/lmod
Use ~/.config/lmod directory only........................... : no
Display Extensions w/ module avail.......................... : yes
Dynamic Spider Cache support................................ : yes
Allow for extended default.(ml intel/17 #-> intel/17.0.4)... : yes

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

******************************************************************************

Lmod overwrites the env var BASH_ENV to make the module command available in
bash scripts. If your site does not set BASH_ENV then you can ignore the
comments below.

If your site already uses BASH_ENV to point to a site specific script, please
consider sourcing Lmod's init/bash from your site's file.

BASH_ENV is defined both in:
   /usr/share/Lmod/init/profile
   /usr/share/Lmod/init/cshrc

******************************************************************************


******************************************************************************

Lmod is exporting the module command for Bash users. Some sites may have some
problems. First:

   0.  Make sure that all your machines have shellshock bash patch.

If that does not fix things then you have two choices:

   1.  You configure Lmod not to export the module command.
   2.  You can filter out the exported functions in the users environment
       during job submission

If there is a way to do step 2, please try to do so. Otherwise do step 1.
The advantage of exporting the module command is that it is defined in
/bin/sh scripts. Because Lmod defines BASH_ENV to point to init/bash,
it will be defined for /bin/bash scripts.  The trouble is that users
have to remember to put #!/bin/bash at the first line of their shell
script to make that work. We used to see tickets where users would
submit jobs as /bin/sh scripts and wonder why the module command did
not work.

******************************************************************************


**********************************************************************
 
Warning: you have chosen to control the prefix.  This means that 
         you must update any Lmod scripts in /etc/profile.d
 
**********************************************************************

Configure complete, Now do:

    $ make install       # -> A complete install
or
    $ make pre-install   # -> Install everything but the symbolic link

>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23 ...
make -j4 
done
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: sys-cluster/lmod-8.7.23

>>> Install sys-cluster/lmod-8.7.23 into /var/tmp/portage/sys-cluster/lmod-8.7.23/image
make -j4 DESTDIR=/var/tmp/portage/sys-cluster/lmod-8.7.23/image install 
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/tools
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/tools/i18n
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/init
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/init/ksh_funcs
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/shells
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/messageDir
install -m 0755 -d /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/lib
make FILELIST="src/CTimer.lua src/Cache.lua src/Configuration.lua src/DirTree.lua src/Exec.lua src/FrameStk.lua src/Hook.lua src/HookArray.lua src/Hub.lua src/LocationT.lua src/MC_Access.lua src/MC_CheckSyntax.lua src/MC_ComputeHash.lua src/MC_DependencyCk.lua src/MC_Load.lua src/MC_MgrLoad.lua src/MC_Refresh.lua src/MC_Show.lua src/MC_Spider.lua src/MC_Unload.lua src/MN_Between.lua src/MN_Exact.lua src/MN_Latest.lua src/MN_Match.lua src/MName.lua src/MRC.lua src/MT.lua src/MainControl.lua src/ModuleA.lua src/Options.lua src/Pkg.lua src/PkgBase.lua src/PkgTACC.lua src/ReadLmodRC.lua src/SitePackage.lua src/Spider.lua src/StandardPackage.lua src/Timer.lua src/Var.lua src/Version.lua src/cmdfuncs.lua src/collectionFileA.lua src/colorize.lua src/convertSh2MF.lua src/loadModuleFile.lua src/modfuncs.lua src/mrc_funcs.lua src/mrc_load.lua src/mrc_sandbox.lua src/myGlobals.lua src/pager.lua src/parseVersion.lua src/printEnvT.lua src/sandbox.lua src/utils.lua src/RC2lua.tcl src/tcl2lua.tcl" DIRLOC=/var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec GIT_VERSION=8.7.23 __installMe
make FILELIST="MF/lmod.version.lua MF/settarg.version.lua" DIRLOC=/var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core GIT_VERSION=8.7.23 __installMe
LUA_CPATH='/usr/share/Lmod/lib/?.so;/usr/lib64/lua/5.1/?.so;/usr/lib64/lua/5.1/loadall.so;;'                     \
           LUA_PATH='/usr/share/Lmod/libexec/?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib64/lua/5.1/?.lua;/usr/lib64/lua/5.1/?/init.lua;;'               \
           /usr/bin/lua5.1 ./src/lmod.in.lua bash --help 2> /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/share/man/cat1/module.1
if [ -d ./pkgs/tcl2lua ]; then                             \
           make -C ./pkgs/tcl2lua  LUA_INC=-I/usr/include/lua5.1       \
        TCL_INCLUDE=-I/usr/include/ TCL_LIBS=            \
                LIB=/var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/lib LIBS=-ltcl  CC="x86_64-pc-linux-gnu-gcc"                \
                SHARE=/var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec MODE_R=0644                \
                install;                                                   \
        fi
make[1]: Entering directory '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23'
/bin/sh: line 1: /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/share/man/cat1/module.1: No such file or directory
make[1]: Entering directory '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23'
make: *** [makefile:242: man_pages] Error 1 shuffle=2490547910
make: *** Waiting for unfinished jobs....
make[1]: Entering directory '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23/pkgs/tcl2lua'
ln -s tcl2lua.so.1.0.1 tcl2lua.so.1
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -DLUA_COMPAT_MODULE -fPIC -I/usr/include/lua5.1 -I/usr/include/   -c -o tcl2lua.o tcl2lua.c
ln -s tcl2lua.so.1 tcl2lua.so
for i in MF/lmod.version.lua MF/settarg.version.lua; do                                                 \
   bareN=${i##*/};                                                       \
   fn=${bareN%%.in*};                                                    \
   ext=${bareN#*.};                                                      \
   : echo "DIRLOC/fn: /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core/$fn";                                    \
   sed  -e 's|@PREFIX@|/usr/share/Lmod|g'                                       \
        -e 's|@LMOD_TOP_DIR@|/usr/share/Lmod|g'                             \
        -e 's|@path_to_lua@|/usr/bin/lua5.1|g'                             \
        -e 's|@hashsum@|/usr/bin/sha1sum|g'                             \
        -e 's|@pager@|/usr/bin/less|g'                                 \
        -e 's|@case_independent_sorting@|yes|g'   \
        -e 's|@lmod_settarg_full_support@|no|g' \
        -e 's|@use_dot_files@|@use_dot_files@|g'                         \
        -e 's|@lang@|<empty>|g'                             \
        -e 's|@site_msg_file@|<empty>|g'                         \
        -e 's|@git@|8.7.23|g'                                     \
        -e 's|--@ignore_dirs@--|[\".svn\"] = true, [\".git\"] = true, [\".hg\"] = true, [\".bzr\"] = true, |g'                         \
        -e 's|@sys_lua_path@|/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib64/lua/5.1/?.lua;/usr/lib64/lua/5.1/?/init.lua|g'                           \
        -e 's|@hidden_italic@|no|g'                    \
        -e 's|@modulepath_init@|@PKG@/init/.modulespath|g'                     \
        -e 's|@sys_lua_cpath@|/usr/lib64/lua/5.1/?.so;/usr/lib64/lua/5.1/loadall.so|g'                         \
        -e 's|@path_to_luac@|/usr/bin/luac5.1|g'                           \
        -e 's|@path_to_lmod@|/usr/share/Lmod/libexec/lmod|g'                           \
        -e 's|@have_lua_term@|yes|g'                         \
        -e 's|@silence_shell_debugging@|yes|g'     \
        -e 's|@dynamic_spider_cache@|yes|g'           \
        -e 's|@fast_tcl_interp@|yes|g'                     \
        -e 's|@settarg_cmd@|settarg_cmd|g'                             \
        -e 's|@lmod_config_dir@|/etc/lmod|g'                     \
        -e "s|@my_shell@|$fn|g"                                          \
        -e 's|@tclsh@|/usr/bin/tclsh|g'                                 \
        -e 's|@ls@|/usr/bin/ls|g'                                       \
        -e 's|@disable_name_autoswap@|no|g'         \
        -e 's|@tmod_path_rule@|no|g'                       \
        -e 's|@tmod_find_first@|no|g'                     \
        -e 's|@redirect@|no|g'                                   \
        -e 's|@basename@|/usr/bin/basename|g'                                   \
        -e 's|@support_ksh@|yes|g'                             \
        -e 's|@zsh_fpath@|/usr/local/share/zsh/site-functions:/usr/share/zsh/site-functions:/usr/share/zsh/5.9/functions/Calendar:/usr/share/zsh/5.9/functions/Chpwd:/usr/share/zsh/5.9/functions/Completion:/usr/share/zsh/5.9/functions/Completion/AIX:/usr/share/zsh/5.9/functions/Completion/BSD:/usr/share/zsh/5.9/functions/Completion/Base:/usr/share/zsh/5.9/functions/Completion/Cygwin:/usr/share/zsh/5.9/functions/Completion/Darwin:/usr/share/zsh/5.9/functions/Completion/Debian:/usr/share/zsh/5.9/functions/Completion/Linux:/usr/share/zsh/5.9/functions/Completion/Mandriva:/usr/share/zsh/5.9/functions/Completion/Redhat:/usr/share/zsh/5.9/functions/Completion/Solaris:/usr/share/zsh/5.9/functions/Completion/Unix:/usr/share/zsh/5.9/functions/Completion/X:/usr/share/zsh/5.9/functions/Completion/Zsh:/usr/share/zsh/5.9/functions/Completion/openSUSE:/usr/share/zsh/5.9/functions/Exceptions:/usr/share/zsh/5.9/functions/MIME:/usr/share/zsh/5.9/functions/Math:/usr/share/zsh/5.9/functions/Misc:/usr/share/zsh/5.9/functions/Newuser:/usr/share/zsh/5.9/functions/Prompts:/usr/share/zsh/5.9/functions/TCP:/usr/share/zsh/5.9/functions/VCS_Info:/usr/share/zsh/5.9/functions/VCS_Info/Backends:/usr/share/zsh/5.9/functions/Zftp:/usr/share/zsh/5.9/functions/Zle|g'                                 \
        -e 's|@cached_loads@|yes|g'                           \
        -e 's|@avail_extensions@|yes|g'              \
        -e 's|@ps@|/usr/bin/ps|g'                                               \
        -e 's|@readlink@|/usr/bin/readlink|g'                                   \
        -e 's|@site_name@|Gentoo|g'                                 \
        -e 's|@site_controlled_prefix@|yes|g'       \
        -e 's|@syshost@|Gentoo|g'                                     \
        -e 's|@expr@|/usr/bin/expr|g'                                           \
        -e 's|@extended_default@|yes|g'                   \
        -e 's|@libexec@|/usr/share/Lmod/libexec|g'                                     \
        -e 's|@legacy_ordering@|@LEGACY_ORDERING@|g'                     \
        -e 's|@pin_versions@|no|g'                           \
        -e 's|@auto_swap@|yes|g'                                 \
        -e 's|@sys_ld_lib_path@||g'                     \
        -e 's|@sys_ld_preload@||g'                       \
        -e 's|@export_module@|yes|g'                         \
        -e 's|@lmod_version@|8.7.23|g'                                \
        -e 's|@exact_match@|no|g'                             \
        -e 's|@ancient@|86400|g'                                     \
        -e 's|@prepend_block@|normal|g'                         \
        -e 's|@colorize@|yes|g'                                   \
        -e 's|@duplicate_paths@|no|g'                     \
        -e 's|@allow_tcl_mfiles@|yes|g'                   \
        -e 's|@mpath_avail@|no|g'                             \
        -e 's|@short_time@|2|g'                               \
        -e 's|@cacheDirs@|/etc/lmod_cache/spider_cache|g'                         \
        -e 's|@updateSystemFn@|/etc/lmod_cache/system.txt|g'                     \
        -e 's|@modulepath_root@|/etc/modulefiles|g'                     \
        -e 's|@lmod_root@|/usr/share/Lmod/..|g'                                 \
        -e 's|@lmod_allow_root_use@|yes|g'             \
        -e 's|@lmod_use_dot_config_only@|no|g'   \
        -e 's|@PKGV@|/usr/share/Lmod|g'                                           \
        -e 's|@PKG@|/usr/share/Lmod|g'         < $i > /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core/$fn;             \
        chmod 0644                       /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core/$fn;             \
    [ "$ext" = "in.lua" -o "$ext" = "tcl" -o "$ext" = "in"             \
       -o "$ext" = "sh.in" ] &&                                          \
       chmod 0755 /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core/$fn;                                    \
    if [ "$ext" = "version.lua" ]; then                                  \
       mname=${bareN%%.*};                                               \
       : echo "DIRLOC: /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core/$mname";                                \
       mv /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core/$fn /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core/$mname.lua;                           \
              chmod 0644    /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/modulefiles/Core/$mname.lua;                           \
    fi;                                                                   \
done
for i in src/CTimer.lua src/Cache.lua src/Configuration.lua src/DirTree.lua src/Exec.lua src/FrameStk.lua src/Hook.lua src/HookArray.lua src/Hub.lua src/LocationT.lua src/MC_Access.lua src/MC_CheckSyntax.lua src/MC_ComputeHash.lua src/MC_DependencyCk.lua src/MC_Load.lua src/MC_MgrLoad.lua src/MC_Refresh.lua src/MC_Show.lua src/MC_Spider.lua src/MC_Unload.lua src/MN_Between.lua src/MN_Exact.lua src/MN_Latest.lua src/MN_Match.lua src/MName.lua src/MRC.lua src/MT.lua src/MainControl.lua src/ModuleA.lua src/Options.lua src/Pkg.lua src/PkgBase.lua src/PkgTACC.lua src/ReadLmodRC.lua src/SitePackage.lua src/Spider.lua src/StandardPackage.lua src/Timer.lua src/Var.lua src/Version.lua src/cmdfuncs.lua src/collectionFileA.lua src/colorize.lua src/convertSh2MF.lua src/loadModuleFile.lua src/modfuncs.lua src/mrc_funcs.lua src/mrc_load.lua src/mrc_sandbox.lua src/myGlobals.lua src/pager.lua src/parseVersion.lua src/printEnvT.lua src/sandbox.lua src/utils.lua src/RC2lua.tcl src/tcl2lua.tcl; do                                                 \
   bareN=${i##*/};                                                       \
   fn=${bareN%%.in*};                                                    \
   ext=${bareN#*.};                                                      \
   : echo "DIRLOC/fn: /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec/$fn";                                    \
   sed  -e 's|@PREFIX@|/usr/share/Lmod|g'                                       \
        -e 's|@LMOD_TOP_DIR@|/usr/share/Lmod|g'                             \
        -e 's|@path_to_lua@|/usr/bin/lua5.1|g'                             \
        -e 's|@hashsum@|/usr/bin/sha1sum|g'                             \
        -e 's|@pager@|/usr/bin/less|g'                                 \
        -e 's|@case_independent_sorting@|yes|g'   \
        -e 's|@lmod_settarg_full_support@|no|g' \
        -e 's|@use_dot_files@|@use_dot_files@|g'                         \
        -e 's|@lang@|<empty>|g'                             \
        -e 's|@site_msg_file@|<empty>|g'                         \
        -e 's|@git@|8.7.23|g'                                     \
        -e 's|--@ignore_dirs@--|[\".svn\"] = true, [\".git\"] = true, [\".hg\"] = true, [\".bzr\"] = true, |g'                         \
        -e 's|@sys_lua_path@|/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib64/lua/5.1/?.lua;/usr/lib64/lua/5.1/?/init.lua|g'                           \
        -e 's|@hidden_italic@|no|g'                    \
        -e 's|@modulepath_init@|@PKG@/init/.modulespath|g'                     \
        -e 's|@sys_lua_cpath@|/usr/lib64/lua/5.1/?.so;/usr/lib64/lua/5.1/loadall.so|g'                         \
        -e 's|@path_to_luac@|/usr/bin/luac5.1|g'                           \
        -e 's|@path_to_lmod@|/usr/share/Lmod/libexec/lmod|g'                           \
        -e 's|@have_lua_term@|yes|g'                         \
        -e 's|@silence_shell_debugging@|yes|g'     \
        -e 's|@dynamic_spider_cache@|yes|g'           \
        -e 's|@fast_tcl_interp@|yes|g'                     \
        -e 's|@settarg_cmd@|settarg_cmd|g'                             \
        -e 's|@lmod_config_dir@|/etc/lmod|g'                     \
        -e "s|@my_shell@|$fn|g"                                          \
        -e 's|@tclsh@|/usr/bin/tclsh|g'                                 \
        -e 's|@ls@|/usr/bin/ls|g'                                       \
        -e 's|@disable_name_autoswap@|no|g'         \
        -e 's|@tmod_path_rule@|no|g'                       \
        -e 's|@tmod_find_first@|no|g'                     \
        -e 's|@redirect@|no|g'                                   \
        -e 's|@basename@|/usr/bin/basename|g'                                   \
        -e 's|@support_ksh@|yes|g'                             \
        -e 's|@zsh_fpath@|/usr/local/share/zsh/site-functions:/usr/share/zsh/site-functions:/usr/share/zsh/5.9/functions/Calendar:/usr/share/zsh/5.9/functions/Chpwd:/usr/share/zsh/5.9/functions/Completion:/usr/share/zsh/5.9/functions/Completion/AIX:/usr/share/zsh/5.9/functions/Completion/BSD:/usr/share/zsh/5.9/functions/Completion/Base:/usr/share/zsh/5.9/functions/Completion/Cygwin:/usr/share/zsh/5.9/functions/Completion/Darwin:/usr/share/zsh/5.9/functions/Completion/Debian:/usr/share/zsh/5.9/functions/Completion/Linux:/usr/share/zsh/5.9/functions/Completion/Mandriva:/usr/share/zsh/5.9/functions/Completion/Redhat:/usr/share/zsh/5.9/functions/Completion/Solaris:/usr/share/zsh/5.9/functions/Completion/Unix:/usr/share/zsh/5.9/functions/Completion/X:/usr/share/zsh/5.9/functions/Completion/Zsh:/usr/share/zsh/5.9/functions/Completion/openSUSE:/usr/share/zsh/5.9/functions/Exceptions:/usr/share/zsh/5.9/functions/MIME:/usr/share/zsh/5.9/functions/Math:/usr/share/zsh/5.9/functions/Misc:/usr/share/zsh/5.9/functions/Newuser:/usr/share/zsh/5.9/functions/Prompts:/usr/share/zsh/5.9/functions/TCP:/usr/share/zsh/5.9/functions/VCS_Info:/usr/share/zsh/5.9/functions/VCS_Info/Backends:/usr/share/zsh/5.9/functions/Zftp:/usr/share/zsh/5.9/functions/Zle|g'                                 \
        -e 's|@cached_loads@|yes|g'                           \
        -e 's|@avail_extensions@|yes|g'              \
        -e 's|@ps@|/usr/bin/ps|g'                                               \
        -e 's|@readlink@|/usr/bin/readlink|g'                                   \
        -e 's|@site_name@|Gentoo|g'                                 \
        -e 's|@site_controlled_prefix@|yes|g'       \
        -e 's|@syshost@|Gentoo|g'                                     \
        -e 's|@expr@|/usr/bin/expr|g'                                           \
        -e 's|@extended_default@|yes|g'                   \
        -e 's|@libexec@|/usr/share/Lmod/libexec|g'                                     \
        -e 's|@legacy_ordering@|@LEGACY_ORDERING@|g'                     \
        -e 's|@pin_versions@|no|g'                           \
        -e 's|@auto_swap@|yes|g'                                 \
        -e 's|@sys_ld_lib_path@||g'                     \
        -e 's|@sys_ld_preload@||g'                       \
        -e 's|@export_module@|yes|g'                         \
        -e 's|@lmod_version@|8.7.23|g'                                \
        -e 's|@exact_match@|no|g'                             \
        -e 's|@ancient@|86400|g'                                     \
        -e 's|@prepend_block@|normal|g'                         \
        -e 's|@colorize@|yes|g'                                   \
        -e 's|@duplicate_paths@|no|g'                     \
        -e 's|@allow_tcl_mfiles@|yes|g'                   \
        -e 's|@mpath_avail@|no|g'                             \
        -e 's|@short_time@|2|g'                               \
        -e 's|@cacheDirs@|/etc/lmod_cache/spider_cache|g'                         \
        -e 's|@updateSystemFn@|/etc/lmod_cache/system.txt|g'                     \
        -e 's|@modulepath_root@|/etc/modulefiles|g'                     \
        -e 's|@lmod_root@|/usr/share/Lmod/..|g'                                 \
        -e 's|@lmod_allow_root_use@|yes|g'             \
        -e 's|@lmod_use_dot_config_only@|no|g'   \
        -e 's|@PKGV@|/usr/share/Lmod|g'                                           \
        -e 's|@PKG@|/usr/share/Lmod|g'         < $i > /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec/$fn;             \
        chmod 0644                       /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec/$fn;             \
    [ "$ext" = "in.lua" -o "$ext" = "tcl" -o "$ext" = "in"             \
       -o "$ext" = "sh.in" ] &&                                          \
       chmod 0755 /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec/$fn;                                    \
    if [ "$ext" = "version.lua" ]; then                                  \
       mname=${bareN%%.*};                                               \
       : echo "DIRLOC: /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec/$mname";                                \
       mv /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec/$fn /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec/$mname.lua;                           \
              chmod 0644    /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/libexec/$mname.lua;                           \
    fi;                                                                   \
done
make[1]: Leaving directory '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23'
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -DLUA_COMPAT_MODULE -fPIC -I/usr/include/lua5.1 -I/usr/include/ -shared -Wl,-soname,tcl2lua.so.1  -o tcl2lua.so.1.0.1  tcl2lua.o -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -lc -ltcl 
install -m 0644 *.so* /var/tmp/portage/sys-cluster/lmod-8.7.23/image/usr/share/Lmod/lib
make[1]: Leaving directory '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23/pkgs/tcl2lua'
make[1]: Leaving directory '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23'
 * ERROR: sys-cluster/lmod-8.7.23::gentoo failed (install phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-cluster/lmod-8.7.23::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-cluster/lmod-8.7.23::gentoo'`.
 * The complete build log is located at '/var/log/portage/sys-cluster:lmod-8.7.23:20240910-132938.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-cluster/lmod-8.7.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-cluster/lmod-8.7.23/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23'
 * S: '/var/tmp/portage/sys-cluster/lmod-8.7.23/work/Lmod-8.7.23'