@rw wouldn’t it be fine to change the default to no broken cwd in bash’s configure.ac if cross compilation and glibc was detected? Instead of hacking each and every Linux cross compile setup/tooling..
@rw wouldn’t this break bootstrapping an OS without a getcwd implementation? Not sure if this is relevant as of today..
@rw this would be fine. Thanks for taking care and sharing!
@rw @manut Definitely worthwhile. Don't feed the trolls 😁. That dude is just a random person with too much time on theor hands. If you send a patch, the conversation will go differently. In the patch, stress that it's broken in multiple ways (overlayfs & errno) and effectively a completely untested code path that clearly saw no real life use because otherwise at least the errno thing would have been caught by now.
@rw i don't want to throw shade at all, just curious... do you roll your own build environment or was it another well known one?