Documentation | Draft: waf: Fix singlehtml output (!104)
Frank Kuehndel (@frank_k)
gitlab at rtems.org
Thu Dec 19 15:17:52 UTC 2024
Frank Kuehndel commented: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/104#note_117061
Basically `task.exec_command(cmd, stdout = so, stderr = se)` seemed to give `inliner` not enough time to complete. It returns within a tenth of a second while `inliner` needs 1 to 3 seconds. This fix waits till `inliner` closes `stdout`.
This fix seems to work everywhere but not on my CI builds. Sigh!
My CI builds seem to trigger yet another issue in `inliner` – whatever that may be. Interesting bug!
Oh my! I found the reason ... `inliner` needs `stdout` being connected to a tty. If I provide a pseudo terminal the problems are gone.
So, the commit could maybe improved by somehow using `os.os.posix_openpt()` but that is probably not portable. Alternatively, when running containers with `podman` use the `--tty` option when `inliner` gets invoked (together with this fix).
--
View it on GitLab: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/104#note_117061
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241219/9ed1608a/attachment.htm>
More information about the bugs
mailing list