forked from pool/gcc13
Accepting request 1043900 from devel:gcc
- update floatn fixinclude pickup to check each header separately (bsc#1206480) (forwarded request 1043820 from dirkmueller) OBS-URL: https://build.opensuse.org/request/show/1043900 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=2
This commit is contained in:
commit
8cdb1780c8
36
gcc.spec.in
36
gcc.spec.in
@ -114,15 +114,6 @@
|
||||
%define build_jit 0
|
||||
%endif
|
||||
|
||||
%if 0%{suse_version} >= 1599 || 0%{?sle_version:%sle_version} >= 150300
|
||||
# FIXME: more once glibc 2.37 is released
|
||||
%define glibc_version %(rpm -q glibc --qf '%%{VERSION}')
|
||||
%define floatn_fixed_glibc %(case " %{glibc_version} " in (*9000*) echo 1;; (*) echo 0;; esac)
|
||||
%else
|
||||
# The headers are not present in earlier glibc
|
||||
%define floatn_fixed_glibc 1
|
||||
%endif
|
||||
|
||||
# Shared library SONAME versions
|
||||
%ifarch hppa
|
||||
%define libgcc_s 4
|
||||
@ -1900,6 +1891,23 @@ rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/ucontext.h
|
||||
rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/statx.h
|
||||
rm -f %{buildroot}/%{libsubdir}/include-fixed/pthread.h
|
||||
rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/rseq.h
|
||||
echo > ../floatn-fixes.list
|
||||
# Whether floatn.h is fixed depends on the glibc version and architecture.
|
||||
# For now keep it if it's there but in the end we want to fix glibc itself
|
||||
# everywhere.
|
||||
if test -f %{buildroot}/%{libsubdir}/include-fixed/bits/floatn.h; then
|
||||
cat >> ../floatn-fixes.list <<EOF
|
||||
%dir %{libsubdir}/include-fixed/bits
|
||||
%{libsubdir}/include-fixed/bits/floatn.h
|
||||
EOF
|
||||
fi
|
||||
if test -f %{buildroot}/%{libsubdir}/include-fixed/bits/floatn-common.h; then
|
||||
cat >> ../floatn-fixes.list <<EOF
|
||||
%dir %{libsubdir}/include-fixed/bits
|
||||
%{libsubdir}/include-fixed/bits/floatn-common.h
|
||||
EOF
|
||||
fi
|
||||
|
||||
%if !%{enable_plugins}
|
||||
# no plugins
|
||||
rm -rf %{buildroot}/%{libsubdir}/plugin
|
||||
@ -1995,16 +2003,13 @@ cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc@base_ver@-locale.lang
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files -f floatn-fixes.list
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/gcc
|
||||
%dir %{_libdir}/gcc/%{GCCDIST}
|
||||
%dir %{libsubdir}
|
||||
%dir %{libsubdir}/include
|
||||
%dir %{libsubdir}/include-fixed
|
||||
%if !%{floatn_fixed_glibc}
|
||||
%dir %{libsubdir}/include-fixed/bits
|
||||
%endif
|
||||
%if %{biarch}
|
||||
%if %{build_primary_64bit}
|
||||
%dir %{libsubdir}/32
|
||||
@ -2027,11 +2032,6 @@ cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc@base_ver@-locale.lang
|
||||
%{libsubdir}/liblto_plugin.so*
|
||||
%{libsubdir}/include/limits.h
|
||||
%{libsubdir}/include/syslimits.h
|
||||
%if !%{floatn_fixed_glibc}
|
||||
%{libsubdir}/include-fixed/README
|
||||
%{libsubdir}/include-fixed/bits/floatn-common.h
|
||||
%{libsubdir}/include-fixed/bits/floatn.h
|
||||
%endif
|
||||
%{libsubdir}/include-fixed/README
|
||||
%{libsubdir}/include/omp.h
|
||||
%{libsubdir}/include/float.h
|
||||
|
@ -134,15 +134,6 @@
|
||||
%define build_jit 0
|
||||
%endif
|
||||
|
||||
%if 0%{suse_version} >= 1599 || 0%{?sle_version:%sle_version} >= 150300
|
||||
# FIXME: more once glibc 2.37 is released
|
||||
%define glibc_version %(rpm -q glibc --qf '%%{VERSION}')
|
||||
%define floatn_fixed_glibc %(case " %{glibc_version} " in (*9000*) echo 1;; (*) echo 0;; esac)
|
||||
%else
|
||||
# The headers are not present in earlier glibc
|
||||
%define floatn_fixed_glibc 1
|
||||
%endif
|
||||
|
||||
# Shared library SONAME versions
|
||||
%ifarch hppa
|
||||
%define libgcc_s 4
|
||||
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 19 14:59:32 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update floatn fixinclude pickup to check each header separately (bsc#1206480)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 14 07:52:36 UTC 2022 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Redo floatn fixinclude pick-up to simply keep what is there.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 13 10:34:35 UTC 2022 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
36
gcc13.spec
36
gcc13.spec
@ -113,15 +113,6 @@
|
||||
%define build_jit 0
|
||||
%endif
|
||||
|
||||
%if 0%{suse_version} >= 1599 || 0%{?sle_version:%sle_version} >= 150300
|
||||
# FIXME: more once glibc 2.37 is released
|
||||
%define glibc_version %(rpm -q glibc --qf '%%{VERSION}')
|
||||
%define floatn_fixed_glibc %(case " %{glibc_version} " in (*9000*) echo 1;; (*) echo 0;; esac)
|
||||
%else
|
||||
# The headers are not present in earlier glibc
|
||||
%define floatn_fixed_glibc 1
|
||||
%endif
|
||||
|
||||
# Shared library SONAME versions
|
||||
%ifarch hppa
|
||||
%define libgcc_s 4
|
||||
@ -2707,6 +2698,23 @@ rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/ucontext.h
|
||||
rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/statx.h
|
||||
rm -f %{buildroot}/%{libsubdir}/include-fixed/pthread.h
|
||||
rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/rseq.h
|
||||
echo > ../floatn-fixes.list
|
||||
# Whether floatn.h is fixed depends on the glibc version and architecture.
|
||||
# For now keep it if it's there but in the end we want to fix glibc itself
|
||||
# everywhere.
|
||||
if test -f %{buildroot}/%{libsubdir}/include-fixed/bits/floatn.h; then
|
||||
cat >> ../floatn-fixes.list <<EOF
|
||||
%dir %{libsubdir}/include-fixed/bits
|
||||
%{libsubdir}/include-fixed/bits/floatn.h
|
||||
EOF
|
||||
fi
|
||||
if test -f %{buildroot}/%{libsubdir}/include-fixed/bits/floatn-common.h; then
|
||||
cat >> ../floatn-fixes.list <<EOF
|
||||
%dir %{libsubdir}/include-fixed/bits
|
||||
%{libsubdir}/include-fixed/bits/floatn-common.h
|
||||
EOF
|
||||
fi
|
||||
|
||||
%if !%{enable_plugins}
|
||||
# no plugins
|
||||
rm -rf %{buildroot}/%{libsubdir}/plugin
|
||||
@ -2800,16 +2808,13 @@ cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc13-locale.lang
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files -f floatn-fixes.list
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/gcc
|
||||
%dir %{_libdir}/gcc/%{GCCDIST}
|
||||
%dir %{libsubdir}
|
||||
%dir %{libsubdir}/include
|
||||
%dir %{libsubdir}/include-fixed
|
||||
%if !%{floatn_fixed_glibc}
|
||||
%dir %{libsubdir}/include-fixed/bits
|
||||
%endif
|
||||
%if %{biarch}
|
||||
%if %{build_primary_64bit}
|
||||
%dir %{libsubdir}/32
|
||||
@ -2832,11 +2837,6 @@ cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc13-locale.lang
|
||||
%{libsubdir}/liblto_plugin.so*
|
||||
%{libsubdir}/include/limits.h
|
||||
%{libsubdir}/include/syslimits.h
|
||||
%if !%{floatn_fixed_glibc}
|
||||
%{libsubdir}/include-fixed/README
|
||||
%{libsubdir}/include-fixed/bits/floatn-common.h
|
||||
%{libsubdir}/include-fixed/bits/floatn.h
|
||||
%endif
|
||||
%{libsubdir}/include-fixed/README
|
||||
%{libsubdir}/include/omp.h
|
||||
%{libsubdir}/include/float.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user