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

Remove build dependency on autotools #33

Merged
merged 1 commit into from Oct 26, 2021
Merged

Conversation

ry
Copy link
Contributor

@ry ry commented Oct 25, 2021

This PR includes the source code of libffi directly in the repository and includes the generated libffi-sys-rs/libffi/configure script.

Fixes #32

@yorickpeterse
Copy link
Collaborator

@ry Both commits add a lot of files. To confirm, the files added in 1cb9d14 are due to running autogen.sh correct (just want to double check)?

Including libffi as a git submodule means that the "configure" script
needs to be further generated at build time. Doing so depends on
autotools, an unnecessary dependency.

Instead this commit includes the files in libffi-3.4.2.tar.gz directly
in the repository, which includes the "configure" script.
@ry
Copy link
Contributor Author

ry commented Oct 25, 2021

@yorickpeterse I've squashed the commits into something landable. The libffi-sys-rs/libffi/ directory is exactly the contents of https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
In the future, when libffi has new releases, we can just unpack the tarball into that directory again.

@yorickpeterse
Copy link
Collaborator

yorickpeterse commented Oct 25, 2021

@ry Thanks! One final question: if we use those tarballs, do we need to run autogen.sh again on a version update, or does the tarball already include the results of that process?

@ry
Copy link
Contributor Author

ry commented Oct 25, 2021

No need to run autogen, the libffi maintainers run that when they build the distributed tarball.

@yorickpeterse yorickpeterse merged commit 1cdd06f into tov:master Oct 26, 2021
@yorickpeterse
Copy link
Collaborator

@ry I pushed libffi-sys 1.3.0 which includes these changes. Thanks for the patch!

@ry ry deleted the unfork branch October 26, 2021 17:44
ry added a commit to ry/deno that referenced this pull request Oct 26, 2021
Fork is no longer necessary since tov/libffi-rs#33
landed.
ry added a commit to ry/deno that referenced this pull request Oct 26, 2021
Fork is no longer necessary since tov/libffi-rs#33
landed.
ry added a commit to denoland/deno that referenced this pull request Oct 26, 2021
Fork is no longer necessary since tov/libffi-rs#33
landed.
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.

Unnecessary build dependency on autotools
2 participants