Skip to content

Commit

Permalink
fix spksrc.python.mk (#5871)
Browse files Browse the repository at this point in the history
- fix remove of symlinks for python-wheel dependencies
- take only cross/ dependencies since build prints "===>  Downloading toolchain" or "===>  Setting-up toolchain" to dependency-flat
  • Loading branch information
hgy59 authored Sep 8, 2023
1 parent dda111b commit 1bfd65c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mk/spksrc.python.mk
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ python_pre_depend:
@# EXCEPTION: Ensure zlib is always built locally
@rm -f $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/zlib.pc $(WORK_DIR)/.zlib*
@# EXCEPTION: Do not symlink cross/* wheel builds
@make --no-print-directory dependency-flat | sort -u | grep -v spk/ | while read depend ; do \
@make --no-print-directory dependency-flat | sort -u | grep cross/ | while read depend ; do \
makefile="../../$${depend}/Makefile" ; \
if grep -q spksrc.python-wheel.mk $${makefile} ; then \
pkgstr=$$(grep ^PKG_NAME $${makefile}) ; \
Expand Down
2 changes: 1 addition & 1 deletion mk/spksrc.spk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ wheelclean: spkclean
rm -fr work-*/.wheel_done \
work-*/wheelhouse \
work-*/install/var/packages/**/target/share/wheelhouse
@make --no-print-directory dependency-flat | sort -u | grep -v spk/ | while read depend ; do \
@make --no-print-directory dependency-flat | sort -u | grep cross/ | while read depend ; do \
makefile="../../$${depend}/Makefile" ; \
if grep -q spksrc.python-wheel.mk $${makefile} ; then \
pkgstr=$$(grep ^PKG_NAME $${makefile}) ; \
Expand Down

0 comments on commit 1bfd65c

Please sign in to comment.