Skip to content

Consider slimming down the make stuff #1104

Closed

Description

@nox

Why does this project require make to build?

Activity

  1. Arcterus commented on Dec 6, 2017

    @Arcterus
    Collaborator

    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).

  2. nox commented on Dec 6, 2017

    @nox
    Author

    (although make is still required due to the build process for stdbuf).

    There is nothing in that crate's makefile that couldn't be done directly in build.rs AFAIK.

    Man pages does need something more than cargo, but the README should make it clear one can just invoke cargo to build.

  3. Arcterus commented on Dec 7, 2017

    @Arcterus
    Collaborator

    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 using build.rs later.

  4. Arcterus commented on Dec 7, 2017

    @Arcterus
    Collaborator

    I've updated the README in #1105.

  5. nox commented on Dec 7, 2017

    @nox
    Author

    I'm not really satisfied with stdbuf's build process, so I'll see if there's a better way using build.rs later.

    Why is libstdbuf needed in the first place, can't we just setup the IO stuff from stdbuf's main function?

  6. Arcterus commented on Dec 7, 2017

    @Arcterus
    Collaborator

    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.

  7. Arcterus commented on Dec 9, 2017

    @Arcterus
    Collaborator

    make will no longer be required to build stdbuf once #1106 lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions