I8LNWX: add problemlist

This commit is contained in:
kuenking111 2023-12-04 17:46:50 +08:00
parent 977fd18c60
commit c565302e4c
5 changed files with 17658 additions and 29 deletions

17639
Add-Problemlist.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -925,7 +925,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r
Name: java-%{javaver}-%{origin} Name: java-%{javaver}-%{origin}
Version: %{javaver}.%{updatever}.%{buildver} Version: %{javaver}.%{updatever}.%{buildver}
Release: 2 Release: 3
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # 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 # 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 # also included the epoch in their virtual provides. This created a
@ -957,8 +957,6 @@ Source0: %{full_revision}.tar.xz
# Custom README for -src subpackage # Custom README for -src subpackage
Source2: README.md Source2: README.md
Source3: OpenJDK8U-jdk_x64_linux_hotspot_8u382b05.tar.gz
Source4: OpenJDK8U-jdk_aarch64_linux_hotspot_8u382b05.tar.gz
# Use 'icedtea_sync.sh' to update the following # Use 'icedtea_sync.sh' to update the following
# They are based on code contained in the IcedTea project (3.x). # They are based on code contained in the IcedTea project (3.x).
@ -1289,6 +1287,7 @@ Patch405: 8148470-Metadata-print-routines-should-not-print-to-.patch
Patch406: 8293344-JDK-8242181-broke-stack-printing-for-non-att.patch Patch406: 8293344-JDK-8242181-broke-stack-printing-for-non-att.patch
Patch407: 8278794-Infinite-loop-in-DeflaterOutputStream.finish.patch Patch407: 8278794-Infinite-loop-in-DeflaterOutputStream.finish.patch
Patch408: 8312065-Socket.connect-does-not-timeout-when-profili.patch Patch408: 8312065-Socket.connect-does-not-timeout-when-profili.patch
Patch409: Add-Problemlist.patch
############################################# #############################################
# #
@ -1378,8 +1377,7 @@ BuildRequires: zip
BuildRequires: unzip BuildRequires: unzip
BuildRequires: openssl-devel BuildRequires: openssl-devel
#BuildRequires: java-1.8.0-openjdk-devel BuildRequires: java-1.8.0-openjdk-devel
BuildRequires: javapackages-filesystem
BuildRequires: tzdata-java >= 2015d BuildRequires: tzdata-java >= 2015d
# Earlier versions have a bug in tree vectorization on PPC # Earlier versions have a bug in tree vectorization on PPC
@ -1903,6 +1901,7 @@ pushd %{top_level_dir_name}
%patch406 -p1 %patch406 -p1
%patch407 -p1 %patch407 -p1
%patch408 -p1 %patch408 -p1
%patch409 -p1
%ifarch riscv64 %ifarch riscv64
%patch2000 -p1 %patch2000 -p1
@ -2005,20 +2004,6 @@ top_srcdir_abs_path=$(pwd)/%{top_level_dir_name}
ARCH=$(uname -m) ARCH=$(uname -m)
BOOTJDKPATH=/usr/lib/jvm/java-%{majorver}-openjdk BOOTJDKPATH=/usr/lib/jvm/java-%{majorver}-openjdk
if [ "$ARCH" = "x86_64" ]; then
tar -xf %{SOURCE3}
BOOTJDKPATH=$PWD/jdk8u382-b05
elif [ "$ARCH" = "aarch64" ]; then
tar -xf %{SOURCE4}
BOOTJDKPATH=$PWD/jdk8u382-b05
elif [ "$ARCH" = "riscv64" ]; then
:
else
echo " Failed to set BOOTJDKPATH "
exit 18
fi
echo $BOOTJDKPATH
mkdir -p %{buildoutputdir -- $suffix} mkdir -p %{buildoutputdir -- $suffix}
pushd %{buildoutputdir -- $suffix} pushd %{buildoutputdir -- $suffix}
@ -2036,7 +2021,6 @@ bash ${top_srcdir_abs_path}/configure \
--with-jvm-variants=zero \ --with-jvm-variants=zero \
%endif %endif
--with-native-debug-symbols=internal \ --with-native-debug-symbols=internal \
--with-boot-jdk=$BOOTJDKPATH \
--with-milestone="fcs" \ --with-milestone="fcs" \
--with-update-version=%{updatever} \ --with-update-version=%{updatever} \
--with-build-number=%{buildver} \ --with-build-number=%{buildver} \
@ -2184,7 +2168,7 @@ EOF
#grep 'JavaCallWrapper::JavaCallWrapper' gdb.out #grep 'JavaCallWrapper::JavaCallWrapper' gdb.out
# Check src.zip has all sources. See RHBZ#1130490 # Check src.zip has all sources. See RHBZ#1130490
#jar -tf $JAVA_HOME/src.zip | grep 'sun.misc.Unsafe' jar -tf $JAVA_HOME/src.zip | grep 'sun.misc.Unsafe'
# Check class files include useful debugging information # Check class files include useful debugging information
@ -2394,8 +2378,12 @@ done
-- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all -- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all
local posix = require "posix" local posix = require "posix"
if (os.getenv("debug") == "true") then
local debug = false debug = true;
print("cjc: in spec debug is on")
else
debug = false;
end
SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua" SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua"
SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua" SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua"
@ -2424,10 +2412,11 @@ else
end end
end end
arg = nil; -- run content of included file with fake args
cjc = require "copy_jdk_configs.lua" cjc = require "copy_jdk_configs.lua"
args = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"} arg = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"}
cjc.mainProgram(args) cjc.mainProgram(arg)
%post %post
%{post_script %{nil}} %{post_script %{nil}}
@ -2564,6 +2553,9 @@ cjc.mainProgram(args)
%endif %endif
%changelog %changelog
* Mon Oct 30 2023 kuenking111 <wangkun49@huawei.com> - 1:1.8.0.392-b08.3
- Add Add-Problemlist.patch
* Mon Oct 30 2023 kuenking111 <wangkun49@huawei.com> - 1:1.8.0.392-b08.2 * Mon Oct 30 2023 kuenking111 <wangkun49@huawei.com> - 1:1.8.0.392-b08.2
- remove add-8142508-To-bring-j.u.z.ZipFile-s-native-implemen.patch - remove add-8142508-To-bring-j.u.z.ZipFile-s-native-implemen.patch
- remove add-8226530-ZipFile-reads-wrong-entry-size-from-ZIP6.patch - remove add-8226530-ZipFile-reads-wrong-entry-size-from-ZIP6.patch

View File

@ -15,11 +15,9 @@ if [ ! -f $ORIG ]; then
continue continue
fi fi
d=`mktemp -d` d=`mktemp -d`
export JAVA_HOME=$PWD/jdk8u382-b05
echo $JAVA_HOME
NW=$d/$f NW=$d/$f
pushd $d pushd $d
$JAVA_HOME/bin/jar xf $ORIG jar xf $ORIG
cat $M cat $M
# sed -i "s/Created-By.*/Created-By: 1.7.0/g" $M # sed -i "s/Created-By.*/Created-By: 1.7.0/g" $M
sed -i "s/Created-By.*/Created-By: $2/g" $M sed -i "s/Created-By.*/Created-By: $2/g" $M