fritzkink
2024-02-25 24edf65fa2a117f9fd5f63ce8d1b8d65bc85ac88
rust - reworked build instructions

3 files modified
26 ■■■■ changed files
components/developer/rust/Makefile 16 ●●●● patch | view | raw | blame | history
components/developer/rust/manifests/sample-manifest.p5m 8 ●●●● patch | view | raw | blame | history
components/developer/rust/pkg5 2 ●●● patch | view | raw | blame | history
components/developer/rust/Makefile
@@ -32,12 +32,11 @@
# the compiler build itself is intensively using python tools
# therefor this patially python settings
TEST_STYLE=        none
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=        rustc
COMPONENT_VERSION=    1.76.0
COMPONENT_REVISION=    1
COMPONENT_SUMMARY=    Rust - Safe, concurrent, practical language
COMPONENT_PROJECT_URL=    https://www.rust-lang.org
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)-src
@@ -55,7 +54,6 @@
TEST_TARGET=        $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
include $(WS_MAKE_RULES)/setup.py.mk
CLANG_VERSION=        17
@@ -114,16 +112,11 @@
CONFIGURE_OPTIONS += --llvm-root=$(CLANG_PREFIX)
CONFIGURE_OPTIONS += --llvm-config=$(CLANG_PREFIX)/bin
COMPONENT_BUILD_CMD = $(PYTHON) x.py build
COMPONENT_INSTALL_CMD = $(PYTHON) x.py install
COMPONENT_INSTALL_ARGS =
# Cleanup standard environment!
COMPONENT_BUILD_ENV =
COMPONENT_BUILD_ENV += OPENSSL_DIR=$(OPENSSL_PREFIX)
COMPONENT_BUILD_ENV += OPENSSL_LIB_DIR=$(OPENSSL_LIBDIR)
COMPONENT_BUILD_ENV += OPENSSL_INCLUDE_DIR=$(OPENSSL_INCDIR)
COMPONENT_BUILD_ENV += OPENSSL_STATIC=0
COMPONENT_BUILD_ENV += CC=$(CC)
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
COMPONENT_BUILD_ENV += CXX=$(CXX)
@@ -131,10 +124,9 @@
COMPONENT_BUILD_ENV += AR=$(GNUAR)
COMPONENT_BUILD_ENV += RUSTC=/usr/bin/rustc
COMPONENT_BUILD_ENV += CARGO_HOME=$(CARGO_HOME)
COMPONENT_BUILD_ENV += GMAKE=
# Enforce linker consistency
COMPONENT_BUILD_ENV +=    RUSTFLAGS="-C linker=$(CC)"
COMPONENT_BUILD_ENV +=    RUST_BACKTRACE=1
COMPONENT_BUILD_ENV += PATH=$(PATH)
COMPONENT_BUILD_ENV += VERBOSE=1
COMPONENT_BUILD_ENV += RUST_BACKTRACE=1
COMPONENT_PRE_INSTALL_ACTION = mkdir -p $(PROTO_DIR)
COMPONENT_POST_INSTALL_ACTION +=  $(TOUCH) $(BUILD_DIR)/META.depend-runtime.res
components/developer/rust/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@
#
#
# Copyright 2023 <contributor>
# Copyright 2024 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
@@ -1744,9 +1744,3 @@
file path=usr/share/man/man1/rustc.1
file path=usr/share/man/man1/rustdoc.1
file path=usr/share/zsh/site-functions/_cargo
# python modules are unusable without python runtime binary
depend type=require fmri=__TBD pkg.debug.depend.file=python$(PYVER) \
    pkg.debug.depend.path=usr/bin
# Automatically generated dependencies based on distribution metadata
components/developer/rust/pkg5
@@ -16,4 +16,4 @@
        "developer/lang/rustc"
    ],
    "name": "rustc"
}
}