Re: [blfs-dev] xcb-utilities is not built with jhalfs
| Newsgroups | gmane.linux.lfs.automated,gmane.linux.lfs.beyond.devel |
|---|---|
| Message-ID | <[email protected]> |
On 11/29/24 01:17, Zhang Wen wrote:
> On 11/28/24 23:38, Douglas R. Reno wrote:
>> I'd like to have the support working in time for the JDK releases in
>> January. That requires me to build two systems in VMs every time due
>> to underlying dependency changes, so having it semi- automated would
>> be quite helpful.
>>
>> Thank you,
>>
>> - Doug
> Hi Doug,
> The JDK use JOBS=N instead of -jN as make flag for parallel build. This
> is the only thing i realized when building OpenJDK with jhalfs.
For the openjdk package case, I got a patch for reviewing, which use
"JOBS=" as MAKEFLAGS when building openjdk, otherwise still use "-j" as
MAKEFLAGS. It works for me.
diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl
index 6c2997c..472e1ee 100644
--- a/BLFS/xsl/scripts.xsl
+++ b/BLFS/xsl/scripts.xsl
@@ -193,7 +193,15 @@ export JH_KEEP_FILES="</xsl:text>
parallel jobs. This supposes that ninja has been build with
support for NINJAJOBS in lfs. We'll have to change that code
if lfs changes its policy for ninja. -->
- <xsl:text>export MAKEFLAGS="-j</xsl:text>
+ <xsl:text>export MAKEFLAGS="</xsl:text>
+ <xsl:choose>
+ <xsl:when test="@id='openjdk'">
+ <xsl:text>JOBS=</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>-j</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:choose>
<xsl:when test="$jobs = 0">
<xsl:text>$(nproc)"
--
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
0002-fix-openjdk-parallel-build.patch
(text/x-patch, 1.1 KB)
From 56b5cc0bcd64fc23f24eca356b935b3ecaff4ede Mon Sep 17 00:00:00 2001 From: Zhang Wen <[email protected]> Date: Fri, 6 Dec 2024 18:55:33 +0800 Subject: [PATCH] fix openjdk parallel build --- BLFS/xsl/scripts.xsl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl index 6c2997c..472e1ee 100644 --- a/BLFS/xsl/scripts.xsl +++ b/BLFS/xsl/scripts.xsl @@ -193,7 +193,15 @@ export JH_KEEP_FILES="</xsl:text> parallel jobs. This supposes that ninja has been build with support for NINJAJOBS in lfs. We'll have to change that code if lfs changes its policy for ninja. --> - <xsl:text>export MAKEFLAGS="-j</xsl:text> + <xsl:text>export MAKEFLAGS="</xsl:text> + <xsl:choose> + <xsl:when test="@id='openjdk'"> + <xsl:text>JOBS=</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>-j</xsl:text> + </xsl:otherwise> + </xsl:choose> <xsl:choose> <xsl:when test="$jobs = 0"> <xsl:text>$(nproc)" -- 2.47.1