Skip to content

Fix build for java11-jdk, rabbitmq and CI cache - #4858

Merged
publicarray merged 11 commits into
SynoCommunity:masterfrom
publicarray:fix-build
Sep 15, 2021
Merged

publicarray merged 11 commits into
SynoCommunity:masterfrom
publicarray:fix-build

Conversation

@publicarray

Copy link
Copy Markdown
Member

Motivation: followup to #4854
Linked issues: Optionally, add links to existing issues or other PR's

Checklist

  • Build rule all-supported completed successfully
  • Package upgrade completed successfully
  • New installation of package completed successfully

@publicarray
publicarray requested a review from th0ma7 September 13, 2021 21:42
@th0ma7

th0ma7 commented Sep 13, 2021

Copy link
Copy Markdown
Contributor

it seems our path are crossing #4859 ;)

@publicarray

Copy link
Copy Markdown
Member Author

I did try and tell you :) #4854 (comment)

Comment thread cross/java-11-openjdk/Makefile Resolved
Comment thread mk/spksrc.cross-env.mk Resolved
@th0ma7

th0ma7 commented Sep 13, 2021

Copy link
Copy Markdown
Contributor

Sorry to say but this is NOACK on this. A COMPILE_TARGET exception within the cross/java-11-openjdk is the right path forward to not be impacting other parallel build pieces.

@publicarray

Copy link
Copy Markdown
Member Author

Thanks for the feedback, I've made some changes. I was aiming for a more generic solution in case there are other packages that fail because of the parallel builds.

Comment thread cross/java-11-openjdk/Makefile Resolved

@th0ma7 th0ma7 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are still missing COMPILE_MAKE_OPTIONS += JOBS=$(NCPUS) to enable parallel build based on how openjdk uses it.

EDIT: I just saw your other message: https://github.com/SynoCommunity/spksrc/pull/4859/files#r707719314

@publicarray

publicarray commented Sep 14, 2021 •

Copy link
Copy Markdown
Member Author

I can't reproduce the rabbitmq (erlang) error... for deluge #4153 might be interesting

@publicarray

publicarray commented Sep 15, 2021 •

Copy link
Copy Markdown
Member Author

@publicarray
publicarray requested a review from th0ma7 September 15, 2021 00:17
Comment thread mk/spksrc.compile.mk Resolved
Comment thread mk/spksrc.compile.mk Resolved
Comment thread mk/spksrc.common.mk Resolved
@publicarray

publicarray commented Sep 15, 2021 •

Copy link
Copy Markdown
Member Author

Builds are failing due network issues setting up the toolchain: failed: Connection timed out.

* git checkout would override the cache.

* Cache version tied to digests
@th0ma7

th0ma7 commented Sep 15, 2021

Copy link
Copy Markdown
Contributor

Food for thoughts:

  • rename PSTAT to PSTAT_ENABLE
  • Add PSTAT_ENABLE = ON to default local.mk
  • replace all ifeq PSTAT ... @$(MSG) MAKELEVEL: ... >> $(PSTAT_LOG) with a function call to clean-up the code
  • Add time to the default container image
  • Add $(PSTAT_TIME) to $(MAKE) variable, again, to clean-up the code

@publicarray publicarray changed the title Fix builds Fix build for java11-jdk, rabbitmq and CI cache Sep 15, 2021
@publicarray
publicarray requested a review from th0ma7 September 15, 2021 15:07
Comment thread mk/spksrc.native-env.mk Resolved
@publicarray
publicarray merged commit c373985 into SynoCommunity:master Sep 15, 2021
@publicarray
publicarray deleted the fix-build branch September 15, 2021 23:28
@th0ma7

th0ma7 commented Sep 16, 2021

Copy link
Copy Markdown
Contributor

@publicarray good job, thnx!

@th0ma7 th0ma7 mentioned this pull request Sep 16, 2021
3 tasks
@publicarray

Copy link
Copy Markdown
Member Author

Thank you @th0ma7! Without you this would not have been possible.

AlexPresso pushed a commit to AlexPresso/spksrc that referenced this pull request Jan 30, 2025
* java11: update no parallel make flags

* Make it easy to run a build without -jN

* fix native builds

* java: add JOBS=N

* Fix CI cache

* Cache is rebuild when toolkit digest changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants