You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the build/installation instructions are from before Cargo existed. You can use Cargo to build the project (although make is still required due to the build process for stdbuf). However, installing requires make because (as far as I know) Cargo does not support the creation of symlinks to another binary or the installation of man pages (which will eventually be written).
setvbuf() doesn't affect programs started using exec() functions, so we need to use the constructor attribute and LD_PRELOAD to actually modify the buffering in the executed program.
Activity
Arcterus commentedon Dec 6, 2017
Most of the build/installation instructions are from before Cargo existed. You can use Cargo to build the project (although
makeis still required due to the build process forstdbuf). However, installing requiresmakebecause (as far as I know) Cargo does not support the creation of symlinks to another binary or the installation of man pages (which will eventually be written).nox commentedon Dec 6, 2017
There is nothing in that crate's makefile that couldn't be done directly in
build.rsAFAIK.Man pages does need something more than
cargo, but the README should make it clear one can just invokecargoto build.Arcterus commentedon Dec 7, 2017
Yeah, the README instructions do need to be updated.
I'm not really satisfied with
stdbuf's build process, so I'll see if there's a better way usingbuild.rslater.Arcterus commentedon Dec 7, 2017
I've updated the
READMEin #1105.nox commentedon Dec 7, 2017
Why is
libstdbufneeded in the first place, can't we just setup the IO stuff fromstdbuf'smainfunction?Arcterus commentedon Dec 7, 2017
setvbuf()doesn't affect programs started usingexec()functions, so we need to use theconstructorattribute andLD_PRELOADto actually modify the buffering in the executed program.Arcterus commentedon Dec 9, 2017
makewill no longer be required to buildstdbufonce #1106 lands.