summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-01-06 20:58:49 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-01-06 20:58:49 +0000
commit6ab6875b4744882512954ae49daf2ded653e58aa (patch)
tree6a18484bbbad089ae801d861b075652af379da51
parentac06c461c99f36486c782018ba0646fa068974c7 (diff)
downloadmidipix_build-6ab6875b4744882512954ae49daf2ded653e58aa.tar.bz2
midipix_build-6ab6875b4744882512954ae49daf2ded653e58aa.tar.xz
etc/README.md: updated.
-rw-r--r--etc/README.md22
-rw-r--r--subr/ex_pkg.subr2
2 files changed, 16 insertions, 8 deletions
diff --git a/etc/README.md b/etc/README.md
index 5166fba4..d607b058 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 <step> 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 317bd725..e07d4dac 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;