You are right, but even when I deleted $HOME/.cargo nothing changed. But
I was lucky and spotted this strange error. Look at this line in my
Makefile:
GMAKE = $(PYTHON)
This rendered make useless (don't know where this was coming from).
Finally with a working 'make REQUIRED_PACKAGES' and the comment from
Alan I was able to fix the last problem.
developer/clang-13 (openindiana.org) 13.0.1-2022.0.0.0 i--
runtime/clang-13 (openindiana.org) 13.0.1-2022.0.0.0 i--
Which was independently found by you, too. I pushed my changes and
everybody is invited to test to make it a solid foundation for further
development.
Am 24.06.2022 um 19:51 schrieb Gary Mills:
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)
_______________________________________________
oi-dev mailing list
[email protected]
https://openindiana.org/mailman/listinfo/oi-dev