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

fixes a plugin initialization issue in baptop, restores postinstall #1014

Merged
merged 1 commit into from
Nov 11, 2019

Conversation

ivg
Copy link
Member

@ivg ivg commented Nov 11, 2019

For some yet to be discovered reasons plugins weren't evaluated during
the baptop utility startup. The were loaded, linked, but no
side-effects occured. Not sure what is going in utop internals, but
just loading the "bap.top" library works fine, and it is also
simplifies the implementation.

I've also restored the postinstall hook, that installs manpages for
bap and utilities. The utilities (such as old baptop script and
ppx-bap) are no longer installed, because they are obsolete, but the
man pages are now installed (and now in a proper place).

The postisntall hook is moved to the Makefile, since it has to be run
after plugins are installed. It is predicated with the existence, so
it won't be run on each package installation during opam installation,
only for the bap-std package which actually produces this file.

Right now, I've disabled the installation of the bap-byteweight
manpage, since it could be only installed if the corresponding utility
is installed (so we have to create a separate post-install for this package).

@ivg ivg force-pushed the fixes-baptop branch 2 times, most recently from 0b99db9 to 41d9427 Compare November 11, 2019 17:15
For some yet to be discovered reasons plugins weren't evaluated during
the baptop utility startup. The were loaded, linked, but no
side-effects occured. Not sure what is going in utop internals, but
just loading the "bap.top" library works fine, and it is also
simplifies the implementation.

I've also restored the postinstall hook, that installs manpages for
bap and utilities. The utilities (such as old baptop script and
ppx-bap) are no longer installed, because they are obsolete, but the
man pages are now installed (and now in a proper place).

The postisntall hook is moved to the Makefile, since it has to be run
after plugins are installed. It is predicated with the existence, so
it won't be run on each package installation during opam installation,
only for the bap-std package which actually produces this file.

Right now, I've disabled the installation of the `bap-byteweight`
manpage, since it could be only installed if the corresponding utility
is installed (so we have to create a separate post-install for this package).
@gitoleg gitoleg merged commit 242ab92 into BinaryAnalysisPlatform:master Nov 11, 2019
@ivg ivg deleted the fixes-baptop branch June 10, 2020 12:34
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.

2 participants