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

Why does pyaff4 needs aff4-snappy instead of python-snappy? #9

Open
joachimmetz opened this issue Apr 23, 2019 · 7 comments
Open

Why does pyaff4 needs aff4-snappy instead of python-snappy? #9

joachimmetz opened this issue Apr 23, 2019 · 7 comments

Comments

@joachimmetz
Copy link
Contributor

pyaff4 depends on aff4-snappy

Which is forked from python-snappy:

@blschatz @scudette I'm looking into building pyaff4 for testing purposes, some questions:

  • What makes aff4-snappy different from python-snappy?
  • Could the changes in aff4-snappy be merged into python-snappy?
  • Could pyaff4 be changed to use python-snappy instead of aff4-snappy?
@scudette
Copy link
Member

python snappy is not a hermetic distribution - it requires libsnappy to be installed on the system. It then builds the python binding with a runtime requirement for libsnappy. This is not an acceptable solution.

The main change is this commit aff4/aff4-snappy@45397f7

Modified to build snappy inline so we do not need to link against libsnappy.

For something as trivial as snappy it does not make sense to include a shared object - just build it statically into the binding.

@joachimmetz
Copy link
Contributor Author

joachimmetz commented Apr 23, 2019

thx for the context

Let me know if you're OK with the following changes:

  1. Move aff4-snappy under https://github.com/aff4?
  2. Change aff4-snappy to have the libsnappy as a gitsubmodule (similar to pytsk)? So it easier to build against newer version of libsnappy
  3. Update aff4-snappy to latest version of python-snappy. Push all non build related changes upstream
  4. Include libsnappy and python-snappy licenses in sdist

@joachimmetz
Copy link
Contributor Author

@scudette @blschatz friendly ping any feedback/input?

@scudette
Copy link
Member

scudette commented Feb 24, 2020 via email

@joachimmetz
Copy link
Contributor Author

My point was more to change pyaff4 to include snappy as is done for pytsk (as a git submodule) and create an hermetic build?

@scudette
Copy link
Member

Ah sorry I don't read the entire thread (just send an email). Sure what you suggest sounds great. Will accept any pr to do this :-)

@joachimmetz
Copy link
Contributor Author

Happy to help but could you maybe follow up on the steps proposed in #9 (comment)

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

No branches or pull requests

2 participants