Skip to content

Commit

Permalink
Issue 6043, 6044 - Enhance Rust and JS bundling and add SPDX licenses…
Browse files Browse the repository at this point in the history
… for both (#6045)

Description: Update the generation script in 'rpm.mk' and 'bundle-rust-downstream.py'
to include SPDX license information for combined JavaScript (npm) and Cargo dependencies.

Fixes: #6043
Fixes: #6044

Reviewed by: @vashirov (Thanks!)
  • Loading branch information
droideck committed Jan 30, 2024
1 parent b6c65f8 commit d1135cc
Show file tree
Hide file tree
Showing 3 changed files with 274 additions and 201 deletions.
6 changes: 4 additions & 2 deletions rpm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ JEMALLOC_URL ?= $(shell rpmspec -P $(RPMBUILD)/SPECS/389-ds-base.spec | awk '/^S
JEMALLOC_TARBALL ?= $(shell basename "$(JEMALLOC_URL)")
BUNDLE_JEMALLOC = 1
NODE_MODULES_TEST = src/cockpit/389-console/package-lock.json
NODE_MODULES_PATH = src/cockpit/389-console/
CARGO_PATH = src/
GIT_TAG = ${TAG}

# Some sanitizers are supported only by clang
Expand Down Expand Up @@ -42,8 +44,8 @@ download-cargo-dependencies:
cargo fetch --manifest-path=./src/Cargo.toml
tar -czf vendor.tar.gz vendor

bundle-rust:
python3 rpm/bundle-rust-downstream.py ./src/Cargo.lock $(DS_SPECFILE) ./vendor
bundle-rust-npm:
python3 rpm/bundle-rust-npm.py $(CARGO_PATH) $(NODE_MODULES_PATH) $(DS_SPECFILE) --backup-specfile

install-node-modules:
ifeq ($(COCKPIT_ON), 1)
Expand Down
199 changes: 0 additions & 199 deletions rpm/bundle-rust-downstream.py

This file was deleted.

Loading

0 comments on commit d1135cc

Please sign in to comment.