From 3b8d9dd0f22f556c11d5286457be961c0c8d0a68 Mon Sep 17 00:00:00 2001 From: noah Date: Wed, 5 Jan 2022 19:05:11 +0800 Subject: [PATCH] =?UTF-8?q?I4PHFL:=2022.03=E5=88=86=E6=94=AFopenjdk-11?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99lua=20script=20failed=20?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=EF=BC=9A22.03=20LTS=20=E9=80=89=E5=9E=8B?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=EF=BC=8C=E5=8D=87=E7=BA=A7lua=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=92=8Crpm=E7=89=88=E6=9C=AC=E5=90=8E=EF=BC=8Copenjd?= =?UTF-8?q?k-11=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99lua=20script=20failed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openjdk-11.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/openjdk-11.spec b/openjdk-11.spec index 490653a..110a5de 100644 --- a/openjdk-11.spec +++ b/openjdk-11.spec @@ -651,7 +651,7 @@ Requires: lksctp-tools%{?_isa} # tool to copy jdk's configs - should be Recommends only, but then only dnf/yum enforce it, # not rpm transaction and so no configs are persisted when pure rpm -u is run. It may be # considered as regression -Requires: copy-jdk-configs >= 3.3 +Requires: copy-jdk-configs >= 3.9 OrderWithRequires: copy-jdk-configs # for printing support Requires: cups-libs @@ -740,7 +740,7 @@ Provides: java-src%{?1} = %{epoch}:%{version}-%{release} Name: java-%{javaver}-%{origin} Version: %{newjavaver}.%{buildver} -Release: 6 +Release: 7 # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # and this change was brought into RHEL-4. java-1.5.0-ibm packages # also included the epoch in their virtual provides. This created a @@ -1498,7 +1498,13 @@ done -- whether copy-jdk-configs is installed or not. If so, then configs are copied -- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all local posix = require "posix" -local debug = false + +if (os.getenv("debug") == "true") then + debug = true; + print("cjc: in spec debug is on") +else + debug = false; +end SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua" SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua" @@ -1527,8 +1533,9 @@ else end end -- run content of included file with fake args +cjc = require "copy_jdk_configs.lua" arg = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"} -require "copy_jdk_configs.lua" +cjc.mainProgram(arg) %post %{post_script %{nil}} @@ -1653,6 +1660,9 @@ require "copy_jdk_configs.lua" %changelog +* Wed Jan 05 2021 noah - 1:11.0.13.7-7 +- adapted to newst cjc to fix issue with rpm 4.17 + * Tue Dec 21 2021 kuenking111 - 1:11.0.13.7-6 - delete stack protection -- Gitee