From 6ab6875b4744882512954ae49daf2ded653e58aa Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Jan 06 2021 20:58:49 +0000 Subject: etc/README.md: updated. --- diff --git a/etc/README.md b/etc/README.md index 5166fba..d607b05 100644 --- a/etc/README.md +++ b/etc/README.md @@ -170,16 +170,24 @@ post-installation. ### 2.4. Troubleshooting Midipix presently provides, inter alia, strace-like functionality via -ntctty's logging capabilities. This is enabled for a session by running -``ntctty.exe`` with the ``--log-level 7`` option, e.g.: +ntctty's logging capabilities. This is available both through the regular +``strace(1)`` command as distributed, which however **must** be provided +with an absolute pathname without consideration for ``${PATH}``, as well +as directly via ``ntctty.exe`` for a session by running ``ntctty.exe`` +with the ``--log-level 7`` option, e.g.: ```shell -$ ntctty.exe --log-level 7 /bin/ls -la / -$ ntctty.exe --log-level 7 /bin/sh -c "ls -la /" +$ #strace ls -la / # (incorrect, relative pathname) +$ strace /bin/ls -la / # (correct, absolute pathname) +$ ntctty.exe --log-level 7 -e /bin/ls -la / +$ ntctty.exe --log-level=7 -e /bin/ls -la / +$ ntctty.exe --log-level 7 -e /bin/sh -c "ls -la /" +$ ntctty.exe --log-level=7 -e /bin/sh -c "ls -la /" ``` -By default, log files are written into the /var/log/ntctty directory; -this may be adjusted with the ``--log-dir`` and/or ``--log-file`` options. +By default, ``ntctty.exe`` log files are written into the /var/log/ntctty +directory; this may be adjusted with the ``--log-dir`` and/or +``--log-file`` options. ``strace(1)`` logs to stderr by default. [Back to top](#table-of-contents) @@ -407,7 +415,7 @@ midipix_build@sandbox:(src/midipix_build)> $ ./pkgtool.sh -a nt64 -b debug -s mc ==> 2020/03/11 15:46:28 Run $R to rebuild `mc'. ==> 2020/03/11 15:46:28 Run $RS to restart the specified build step of `mc' ==> 2020/03/11 15:46:28 Run $D to automatically regenerate the patch for `mc'. -midipix_build@sandbox:(src/midipix_build)> $ +midipix_build@sandbox:(mc-native-x86_64-nt64-midipix/obj)> $ ``` If a package build shell environment is desired for a package that has either not been diff --git a/subr/ex_pkg.subr b/subr/ex_pkg.subr index 317bd72..e07d4da 100644 --- a/subr/ex_pkg.subr +++ b/subr/ex_pkg.subr @@ -79,7 +79,7 @@ ex_pkg_load_dump() { local _pkg_name="${1}" _workdir="${2}" _rc=0; _status=""; if [ ! -e "${_workdir}/${_pkg_name}.dump" ]; then rtl_log_msg warning "Warning: failed to locate environment dump for package \`%s' in \`%s'." "${_pkg_name}" "${_workdir}"; - rtl_log_msg info "Rebuilding package \`%s' w/ --dump-in _build..." "${_pkg_name}"; + rtl_log_msg info "Rebuilding package \`%s' w/ --dump-in build..." "${_pkg_name}"; (export ARCH BUILD_KIND BUILD_DLCACHEDIR BUILD_WORKDIR \ PREFIX PREFIX_CROSS PREFIX_MINGW32 PREFIX_MINIPIX \ PREFIX_NATIVE PREFIX_ROOT PREFIX_RPM;