Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix output of make dependency-list #6144

Merged
merged 8 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/actions/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ done

# fix for packages with different names
if [ "$(echo ${SPK_TO_BUILD} | grep -ow nzbdrone)" != "" ]; then
SPK_TO_BUILD=$(echo "${SPK_TO_BUILD}" | tr ' ' '\n' | grep -v "nzbdrone" | tr '\n' ' ')" sonarr3"
SPK_TO_BUILD=$(echo "${SPK_TO_BUILD}" | tr ' ' '\n' | grep -vw "nzbdrone" | tr '\n' ' ')" sonarr3"
fi
if [ "$(echo ${SPK_TO_BUILD} | grep -ow python)" != "" ]; then
SPK_TO_BUILD=$(echo "${SPK_TO_BUILD}" | tr ' ' '\n' | grep -v "python" | tr '\n' ' ')" python2"
SPK_TO_BUILD=$(echo "${SPK_TO_BUILD}" | tr ' ' '\n' | grep -vw "python" | tr '\n' ' ')" python2"
fi
if [ "$(echo ${SPK_TO_BUILD} | grep -ow ffmpeg)" != "" ]; then
SPK_TO_BUILD=$(echo "${SPK_TO_BUILD}" | tr ' ' '\n' | grep -v "ffmpeg" | tr '\n' ' ')" ffmpeg4"
SPK_TO_BUILD=$(echo "${SPK_TO_BUILD}" | tr ' ' '\n' | grep -vw "ffmpeg" | tr '\n' ' ')" ffmpeg4"
fi

# remove duplicate packages
Expand Down Expand Up @@ -120,10 +120,6 @@ else
for package in ${packages}
do
DOWNLOAD_LIST+=$(echo "${DEPENDENCY_LIST}" | grep "^${package}:" | grep -o ":.*" | tr ':' ' ' | sort -u | tr '\n' ' ')
for version in ${DEFAULT_TC}
do
DOWNLOAD_LIST+=$(make -C spk/${package} TCVERSION=${version} dependency-kernel-list | grep "^${package}:" | grep -o ":.*" | tr ':' ' ' | sort -u | tr '\n' ' ')
done
done
# remove duplicate downloads
downloads=$(printf %s "${DOWNLOAD_LIST}" | tr ' ' '\n' | sort -u | tr '\n' ' ')
Expand Down
15 changes: 2 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,30 +70,19 @@ native-%: native/%/Makefile
native-%-clean: native/%/Makefile
cd $(dir $^) && env $(MAKE) clean

# build dependency flat list for all packages
dependency-flat:
@echo $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile)))
@for spk in $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile))) ; \
do \
echo "$(MAKE) -s -C $${spk} dependency-flat" ; \
$(MAKE) -s -C $${spk} dependency-flat ; \
done

# build dependency tree for all packages
# - exclude broken packages
dependency-tree:
@echo $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile)))
@for spk in $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile))) ; \
do \
echo "$(MAKE) --no-print-directory -C $${spk} dependency-tree" ; \
$(MAKE) --no-print-directory -C $${spk} dependency-tree ; \
done

# build dependency list for all packages
# - exclude broken packages
dependency-list:
@echo $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile)))
@for spk in $(filter-out $(dir $(wildcard spk/*/BROKEN)),$(dir $(wildcard spk/*/Makefile))) ; \
do \
echo "$(MAKE) -s -C $${spk} dependency-list" ; \
$(MAKE) -s -C $${spk} dependency-list ; \
done

Expand Down
4 changes: 4 additions & 0 deletions cross/znc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://znc.in/releases/archive
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

ifeq ($(strip $(PYTHON_PACKAGE)),)
PYTHON_PACKAGE = python311
endif

BUILD_DEPENDS = cross/$(PYTHON_PACKAGE)
DEPENDS = cross/openssl3 cross/libicu cross/zlib

Expand Down
2 changes: 1 addition & 1 deletion mk/spksrc.dependency-tree.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependency-flat:
@echo "$(CURDIR)" | grep -Po "/\K(spk|cross|native|diyspk|toolchain)/.*"
@for depend in $$(echo "$(BUILD_DEPENDS) $(DEPENDS) $(OPTIONAL_DEPENDS)" | tr ' ' '\n' | sort -u | tr '\n' ' ') ; \
do \
DEPENDENCY_WALK=1 $(MAKE) -s -C ../../$$depend dependency-flat ; \
DEPENDENCY_WALK=1 $(MAKE) -s -C ../../$$depend dependency-flat | sort -u ; \
done

###