Accepting request 999035 from home:Andreas_Schwab:make

- make-jobserver-detection.patch: Fix detection of jobserver support

OBS-URL: https://build.opensuse.org/request/show/999035
OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-1_8_0-openjdk?expand=0&rev=413
This commit is contained in:
2022-08-24 13:20:13 +00:00
committed by Git OBS Bridge
parent f5e72a41d8
commit 6427eae7c3
3 changed files with 22 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 24 10:48:55 UTC 2022 - Andreas Schwab <schwab@suse.de>
- make-jobserver-detection.patch: Fix detection of jobserver support
-------------------------------------------------------------------
Tue Aug 2 19:37:31 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@@ -180,6 +180,8 @@ Patch3: java-atk-wrapper-security.patch
Patch12: adlc-parser.patch
# Avoid triggering inactivity timeout while generating javadoc in zero VM
Patch14: zero-javadoc-verbose.patch
# Fix detection of jobserver support
Patch15: make-jobserver-detection.patch
#
# OpenJDK specific patches
#
@@ -516,6 +518,8 @@ patch -p0 -i %{PATCH12}
patch -p0 -i %{PATCH14}
%endif
patch -p0 -i %{PATCH15}
%ifarch ppc ppc64 ppc64le
# PPC fixes
patch -p0 -i %{PATCH103}

View File

@@ -0,0 +1,13 @@
Index: openjdk/make/MakeHelpers.gmk
===================================================================
--- openjdk/make/MakeHelpers.gmk.orig
+++ openjdk/make/MakeHelpers.gmk
@@ -145,7 +145,7 @@ endef
# Hook to be called as the very first thing when running a normal build
define AtMakeStart
- $(if $(findstring --jobserver,$(MAKEFLAGS)),$(error make -j is not supported, use make JOBS=n))
+ $(if $(findstring jobserver,$(.FEATURES)),,$(error make -j is not supported, use make JOBS=n))
$(call CheckEnvironment)
@$(PRINTF) $(LOG_INFO) "Running make as '$(MAKE) $(MFLAGS) $(MAKE_ARGS)'\n"
@$(PRINTF) "Building $(PRODUCT_NAME) for target '$(call GetRealTarget)' in configuration '$(CONF_NAME)'\n\n"