Skip to content

Avoid grep in development build process #363

Closed

Description

@aantron

From #354 (comment):

Summary: grep 2.24 doesn't like the unicode chars in Jérémie's name, updating to grep 2.25 makes the problem go away.

I believe this only occurs if you are building a development version of Lwt (not an OPAM release). I believe the offending line is

lwt/Makefile

Line 20 in cf5580b

grep -v '^#' setup.ml > setup_dev.ml

This may be a vanishing problem, if grep 2.24 is "old enough," but maybe it's best to just avoid or work around this somehow.

This can probably easiest reproduced by installing grep 2.24 (from source?) in a Docker container, then installing OPAM, then running opam source --dev-repo --pin lwt in the same container.

Thanks to @domsj for tracking down this strange problem.

I labeled this medium, because of the need to install an old grep, potentially in a container.

Activity

  1. Drup commented on May 19, 2017

    @Drup
    Member

    I'm not even sure what this is for. It seems to be a handrolled version of the statically compiled oasis setup, which we should probably get rid of anyway. We could simply remove all that and use the oasis-generated makefile (with additional rules outside of the oasis section).

  2. aantron commented on May 28, 2017

    @aantron
    CollaboratorAuthor

    This may get pre-empted by #374.

  3. aantron commented on Jun 9, 2017

    @aantron
    CollaboratorAuthor

    This was resolved by the jbuilder port #374, which was merged earlier today. AFAIK, we don't use grep anymore in the Lwt build process.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions