Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental fix for mirage/mirage#221 #1673

Merged
merged 2 commits into from Feb 13, 2014

Conversation

avsm
Copy link
Member

@avsm avsm commented Feb 12, 2014

This leaves a stray binary after an uninstall, but fixes the
situation where the mirage binary attempts to upgrade itself
(due to invoking OPAM, which installs some optional dependencies,
which then proceed to try and recompile mirage).

The only long-term fix is to lift mirage into being a host-level
tool and not tracked by the same tool it uses to install libraries,
but for the moment renaming the active mirage binary to mirage.old
on uninstall should do the trick.

This leaves a stray binary after an uninstall, but fixes the
situation where the `mirage` binary attempts to upgrade itself
(due to invoking OPAM, which installs some optional dependencies,
which then proceed to try and recompile mirage).

The only long-term fix is to lift `mirage` into being a host-level
tool and not tracked by the same tool it uses to install libraries,
but for the moment renaming the active `mirage` binary to `mirage.old`
on uninstall should do the trick.
@avsm
Copy link
Member Author

avsm commented Feb 12, 2014

@samoht, thoughts?

@samoht
Copy link
Member

samoht commented Feb 12, 2014

why not simply remove the binary ?

The uninstall simply wasn't removing the binary before.
samoht added a commit that referenced this pull request Feb 13, 2014
@samoht samoht merged commit cc609e7 into ocaml:master Feb 13, 2014
@avsm avsm deleted the fix-mirage-multiremove branch February 13, 2014 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants