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

Local build not set up #8

Open
omeh-a opened this issue Mar 1, 2023 · 3 comments
Open

Local build not set up #8

omeh-a opened this issue Mar 1, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@omeh-a
Copy link
Member

omeh-a commented Mar 1, 2023

Currently the only way to sanely build ipbench is to package it as a deb and install that. This is awful for maintaining it. This is marked as a bug but in reality this was just never set up.

To do:
> Set up make install to do the right thing.

make already compiles correctly and puts output for ipbench itself in /src/lib/.libs and output for modules in /src/pymod/.libs + /src/tests/(test).

To actually install ipbench:

  1. Put libipbench.so in /usr/local/lib (or /usr/lib) - hereby referred to as "lib"
  2. Create folder lib/ipbench and put compiled ipbench modules here.
  3. Install ipbench client/target .py in python/site-packages (or dist-packages) + libipbenchClientPython + libipbenchTargetPython + _ipbench_client.so + _ipbench_target.so.

Note: also include .la files with .so files. Apparently it is neccessary in some cases.

Python note: site local for pip or other local installs, dist packages for system wide

@omeh-a omeh-a added the bug Something isn't working label Mar 1, 2023
@omeh-a
Copy link
Member Author

omeh-a commented Mar 5, 2023

Minor tweaks to build system mostly fixed this in #7 - there is still an issue however in that automake's choice of where to put Python dependencies might be wrong.

@omeh-a
Copy link
Member Author

omeh-a commented Mar 7, 2023

Additional thing to do: might be nice to have all build output go into a local folder for testing so you don't need to repeatedly make install when testing.

@omeh-a
Copy link
Member Author

omeh-a commented Mar 21, 2023

Building locally now works fine, although it still likes to put python dependencies in the wrong place for modern distributions. This is minor however.

Bigger issue: the output format of building locally is not runnable. You have to make install for the code to sanely be executable. This isn't an issue for users, but it's obscenely annoying for testing new features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant