Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

FreeBSD support improvements #193

Closed
wants to merge 3 commits into from
Closed

FreeBSD support improvements #193

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 5, 2018

No description provided.

Copy link
Contributor

@kcking kcking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just one question so far

Makefile Outdated
@@ -38,6 +39,7 @@ ifeq ($(UNAME_S),Darwin)
endif
endif
ifeq ($(UNAME_S),FreeBSD)
MAKE ?= gmake
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be MAKE = gmake? Otherwise MAKE will already always be set by the first line.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, screwed up when pulling these changes into git...

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does BSD make (e.g., bmake) understand ifeq syntax? If not whatever invokes make needs to be changed. MAKE variable in makefiles is implicitly defined by make implementation.

@kcking
Copy link
Contributor

kcking commented Apr 5, 2018

Could you rebase in master as well please?

@kcking
Copy link
Contributor

kcking commented Apr 5, 2018

I just realized it's worth mentioning that the build environment for 2.4.0 became a bit more complicated with the addition of sigchain. We now require cargo-web v0.6.9 as well as emscripten (which is optionally automatically installed by cargo-web on linux). Let us know if you have any questions about it.

@ghost
Copy link
Author

ghost commented Apr 18, 2018

I was looking at this and gave up for the time being. I don't know if we can continue packaging kr with these additional dependencies. It's really difficult to manage this with our packaging tools. This now adds hundreds of new dependencies just to build kr (all the cargo crates all the way down) and we don't even have a FreeBSD port/package for emscripten, so I'd have to package that as well. The complexity just to package this tiny piece of software is staggering...

edit: our package building environment requires that there is no internet access during build time. This is important for security and reproducibility.

@kcking
Copy link
Contributor

kcking commented Apr 18, 2018

Yes unfortunately the emscripten dependency makes the build much more complex. Once native rust wasm support lands the build dependencies will be reduced significantly. Thanks again for looking into this, we are actively working on lightening the build overall.

@ghost
Copy link
Author

ghost commented Apr 19, 2018

Unless someone needs the new Teams feature on a FreeBSD box the current release is probably OK. I'll still rebase this for you, though.

@kcking
Copy link
Contributor

kcking commented Apr 19, 2018

In the meantime we may create a make target that excludes the web dashboard (which would eliminate emscripten and cargo-web build dependencies). Then runtime dependencies would just be libsodium and openssl.

@agrinman agrinman closed this Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants