-
Notifications
You must be signed in to change notification settings - Fork 248
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
Autotools examples #754
Autotools examples #754
Conversation
b9bd840
to
10befa9
Compare
This is green now but with the caveat that only Anyone have any smart ideas on how to produce a reproducible and relocatable autoconf install? |
would something like What is the specific issue with the hard coded paths? |
It's the generated |
I actually just had this exact problem with autoconf — but my “solution” was to tag the targets as ‘no-sandbox’ and ‘no-cache’ so that the embedded paths would be the persistent execroot path and not an ephemeral sandbox path. More of a workaround than a solution, really. It requires #765 because otherwise rules_foreign_cc throws away these tags. |
Curious if @jsharpe has had any further ideas here. I've been thinking about this a lot because we are trying to enable remote exec for our build and the It's unsatisfying, but without significant patches for autotools to be arbitrarily relocatable, I don't see how it can be successfully vendored inside bazel. I think I'm going to solve our need by just manually installing the versions we need into well known locations on all our build machines and referencing it directly. I think there are a few other tools in this non-relocatable bucket that need the same treatment (and by extension, can't effectively be built with rules_foreign_cc) |
b7cf86f
to
bf51e21
Compare
@UebelAndre PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is mostly fine since it's just adding examples. Is this a stepping stone to building autotools for the foreign_cc
toolchains? I'd otherwise say maybe there wouldn't be much value in the examples since they're gonna be ripped out for something better maintained.
But I leave the decision up to you. One question but otherwise looks good!
Yes; my idea was to get them building in examples, then add toolchain definitions for each of the components then migrate the examples into built_tools to create a hermetic toolchain setup for autotools et al. |
Note that native rules for building some of these tools exist e.g. m4: https://github.com/hdl/bazel_rules_hdl/tree/main/dependency_support/org_gnu_m4 |
By the way: Buildifier needs to be run 😅 |
0443f2c
to
a8b732d
Compare
Add targets to build autotools with the aim of eventually moving these to use the built_tools framework and put into a toolchain that the
configure_make
rule can use to ensure hermetic use of autotools during the build.Fixes an issue with putting the bin directory from built tools onto the path when using
tools_deps