using generated sources from portables for final debuginfo
leaving jsut: cpio: jdk-21.0.1+12/make/NONE: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-buffer-deserialize-json.hh: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-buffer-deserialize-json.rl: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-buffer-deserialize-text-glyphs.hh: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-buffer-deserialize-text-glyphs.rl: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-buffer-deserialize-text-unicode.hh: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-buffer-deserialize-text-unicode.rl: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-number-parser.hh: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-number-parser.rl: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-ot-shaper-indic-machine.hh: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-ot-shaper-indic-machine.rl: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-ot-shaper-khmer-machine.hh: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-ot-shaper-khmer-machine.rl: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-ot-shaper-myanmar-machine.hh: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-ot-shaper-myanmar-machine.rl: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-ot-shaper-use-machine.hh: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hb-ot-shaper-use-machine.rl: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/adGlobals_aarch64.hpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/ad_aarch64.cpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/ad_aarch64.hpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/ad_aarch64_clone.cpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/ad_aarch64_expand.cpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/ad_aarch64_format.cpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/ad_aarch64_gen.cpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/ad_aarch64_misc.cpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/ad_aarch64_pipeline.cpp: Cannot stat: No such file or directory cpio: jdk-21.0.1+12/make/hotspot/dfa_aarch64.cpp: Cannot stat: No such file or directory
This commit is contained in:
parent
9c0f1b0318
commit
40e24677c5
@ -331,7 +331,7 @@
|
||||
%global top_level_dir_name %{vcstag}
|
||||
%global top_level_dir_name_backup %{top_level_dir_name}-backup
|
||||
%global buildver 12
|
||||
%global rpmrelease 3
|
||||
%global rpmrelease 4
|
||||
# Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit
|
||||
%if %is_system_jdk
|
||||
# Using 10 digits may overflow the int used for priority, so we combine the patch and build versions
|
||||
@ -411,6 +411,7 @@
|
||||
%define jrebindir() %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
|
||||
|
||||
%global alt_java_name alt-java
|
||||
%global generated_sources_name generated_sources
|
||||
|
||||
%global rpm_state_dir %{_localstatedir}/lib/rpm-state/
|
||||
|
||||
@ -1051,6 +1052,7 @@ exit 0
|
||||
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
|
||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/src.zip
|
||||
%{_jvmdir}/%{sdkdir -- %{?1}}/full_sources
|
||||
%{_jvmdir}/%{sdkdir -- %{?1}}/%{generated_sources_name}
|
||||
}
|
||||
|
||||
%define files_static_libs() %{expand:
|
||||
@ -1784,22 +1786,20 @@ done
|
||||
done
|
||||
|
||||
%build
|
||||
# we need to symlink sources to expected lcoation, so debuginfo strip can locate debugsources
|
||||
# we need to symlink sources to expected location, so debuginfo strip can locate debugsources
|
||||
src_image=`ls -d %{compatiblename}*%{version}*portable.sources.noarch`
|
||||
ln -s $src_image/%{vcstag} %{vcstag} # this one shpuld be enoug
|
||||
# cpio is complaining baout several files from build dir. Attempt here, but seems not to be correct
|
||||
# as those sources are generated during build and so it have to be fixed in portables first
|
||||
misc_image=`ls -d %{compatiblename}*%{version}*portable.misc.%{_arch}`
|
||||
cp -rf $misc_image/%{generated_sources_name}/%{vcstag}/ $src_image # it would be nice to remove them once debugsources are generated:(
|
||||
ln -s $src_image/%{vcstag} %{vcstag}
|
||||
mkdir build
|
||||
pushd build
|
||||
ln -s ../$src_image/%{vcstag}/src jdk%{featurever}.build
|
||||
ln -s ../$src_image/%{vcstag}/src jdk%{featurever}.build-fastdebug
|
||||
ln -s ../$src_image/%{vcstag}/src jdk%{featurever}.build-slowdebug
|
||||
cp -r ../$misc_image/%{generated_sources_name}/jdk%{featurever}.build* .
|
||||
popd
|
||||
doc_image=`ls -d %{compatiblename}*%{version}*portable.docs.%{_arch}`
|
||||
# in addition the builddir must match the builddir of the portables, including release
|
||||
# be aware, even os may be different, especially with buildonce, repack everywhere
|
||||
# so deducting it from installed deps
|
||||
portablenvr=`ls -d %{compatiblename}*%{version}*portable*.misc.%{_arch} | sed "s/portable.*.misc.//"`
|
||||
portablenvr=`echo ${misc_image} | sed "s/portable.*.misc.//"`
|
||||
portablebuilddir=/builddir/build/BUILD
|
||||
# Fix build paths in ELF files so it looks like we built them
|
||||
for file in $(find `pwd` -type f | grep -v -e "$src_image" -e "$doc_image") ; do
|
||||
@ -2004,6 +2004,7 @@ done
|
||||
|
||||
cp -a ${jdk_image} $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
|
||||
cp -a ${src_image} $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/full_sources
|
||||
cp -a ${misc_image}/%{generated_sources_name} $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
|
||||
cp -a ${misc_image}/alt-java $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/bin
|
||||
|
||||
pushd ${jdk_image}
|
||||
@ -2418,6 +2419,9 @@ cjc.mainProgram(args)
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sat Dec 16 2023 Jiri Vanek <jvanek@redhat.com> - 1:21.0.1.0.12-4.rolling
|
||||
* using generated sources from portables for final debuginfo
|
||||
|
||||
* Sat Dec 09 2023 Jiri Vanek <jvanek@redhat.com> - 1:21.0.1.0.12-3.rolling
|
||||
- proeprly filing debugsources pkg
|
||||
by addedd symlinks restructuring the structure for original build sources
|
||||
|
Loading…
Reference in New Issue
Block a user