[oi-dev] problems publishing rust
Gary Mills
gary_mills at fastmail.fm
Fri Jun 24 17:51:15 UTC 2022
On Fri, Jun 24, 2022 at 06:23:18PM +0200, Friedrich Kink via oi-dev wrote:
> Oh forgot just for the sake of completeness and the brave who want test on
> the own here my current Makefile:
I'll bet you have a $HOME/.cargo directory.
> # Put the bits cargo downloads in a private directory. This could be cached
> # somewhere more permanent, but it's important to make sure that a person's
> # $HOME/.cargo isn't used.
> RUST_VERSION= $(COMPONENT_VERSION)
> RUSTUP_HOME= $(BUILD_DIR)/$(MACH64)
> CARGO_HOME= $(BUILD_DIR)/$(MACH64)
> COMPONENT_BUILD_ENV+= CARGO_HOME=$(CARGO_HOME)
> COMPONENT_INSTALL_ENV+= CARGO_HOME=$(CARGO_HOME)
> COMPONENT_TEST_ENV+= CARGO_HOME=$(CARGO_HOME)
> COMPONENT_BUILD_ENV+= RUSTUP_HOME=$(RUSTUP_HOME)
> COMPONENT_INSTALL_ENV+= RUSTUP_HOME=$(RUSTUP_HOME)
> COMPONENT_TEST_ENV+= RUSTUP_HOME=$(RUSTUP_HOME)
> # Cleanup standard environment!
> COMPONENT_BUILD_ENV =
> COMPONENT_BUILD_ENV += OPENSSL_DIR=$(OPENSSL_PREFIX)
> COMPONENT_BUILD_ENV += OPENSSL_LIB_DIR=$(OPENSSL_PREFIX)/lib/amd64
> COMPONENT_BUILD_ENV += OPENSSL_INCLUDE_DIR=$(OPENSSL_PREFIX)/include
> COMPONENT_BUILD_ENV += OPENSSL_STATIC=0
> COMPONENT_BUILD_ENV += CC=$(CC)
> COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
> #COMPONENT_BUILD_ENV += LDFLAGS="-L$(OPENSSL_PREFIX)/lib/$(MACH64) -lssl
> -lcrypto"
> COMPONENT_BUILD_ENV += CXX=$(CXX)
> #COMPONENT_BUILD_ENV += CPPFLAGS="-I$(OPENSSL_PREFIX)/include"
> COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
> COMPONENT_BUILD_ENV += AR=$(GNUAR)
> COMPONENT_BUILD_ENV += RUSTC=$(CARGO_HOME)/bin/rustc
> # Enforce linker consistency
> COMPONENT_BUILD_ENV += RUSTFLAGS="-C linker=$(CC)"
> COMPONENT_BUILD_ENV += RUST_BACKTRACE=1
> # Cleanup standard environment
> COMPONENT_INSTALL_ENV =
> COMPONENT_INSTALL_ENV += $(COMPONENT_BUILD_ENV)
> # Set install path
> COMPONENT_INSTALL_ENV += DESTDIR=$(PROTO_DIR)
--
-Gary Mills- -refurb- -Winnipeg, Manitoba, Canada-
More information about the oi-dev
mailing list