- Move gcc-PIE contents to gccVER-PIE and only require that from
the gcc-PIE package. [bsc#1195628] OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=113
This commit is contained in:
parent
a9819cffb1
commit
b118b29152
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 10 12:33:25 UTC 2022 - Richard Biener <rguenther@suse.com>
|
||||||
|
|
||||||
|
- Move gcc-PIE contents to gccVER-PIE and only require that from
|
||||||
|
the gcc-PIE package. [bsc#1195628]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 29 13:02:30 UTC 2021 - Richard Biener <rguenther@suse.com>
|
Wed Sep 29 13:02:30 UTC 2021 - Richard Biener <rguenther@suse.com>
|
||||||
|
|
||||||
|
15
gcc.spec
15
gcc.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gcc
|
# spec file for package gcc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -133,6 +133,7 @@ The system GNU Compiler documentation.
|
|||||||
|
|
||||||
|
|
||||||
# install / update the entries
|
# install / update the entries
|
||||||
|
|
||||||
%post -n gcc-info
|
%post -n gcc-info
|
||||||
%install_info --info-dir=%{_infodir} --name=cpp --description='The GNU C preprocessor.' %{_infodir}/cpp.info.gz
|
%install_info --info-dir=%{_infodir} --name=cpp --description='The GNU C preprocessor.' %{_infodir}/cpp.info.gz
|
||||||
%install_info --info-dir=%{_infodir} --name=gcc --description='The GNU Compiler Collection.' %{_infodir}/gcc.info.gz
|
%install_info --info-dir=%{_infodir} --name=gcc --description='The GNU Compiler Collection.' %{_infodir}/gcc.info.gz
|
||||||
@ -287,7 +288,7 @@ The system GNU Objective C++ Compiler.
|
|||||||
Summary: A default configuration to build all binaries in PIE mode
|
Summary: A default configuration to build all binaries in PIE mode
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Requires: gcc
|
Requires: gcc%{gcc_version}-PIE
|
||||||
|
|
||||||
%description -n gcc-PIE
|
%description -n gcc-PIE
|
||||||
This package contains a configuration file (spec) that changes the
|
This package contains a configuration file (spec) that changes the
|
||||||
@ -465,14 +466,6 @@ ln -sf gcc-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cc.1.gz
|
|||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/bfd-plugins
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/bfd-plugins
|
||||||
ln -s `gcc-%{gcc_suffix} -print-file-name=liblto_plugin.so` $RPM_BUILD_ROOT%{_libdir}/bfd-plugins/liblto_plugin.so
|
ln -s `gcc-%{gcc_suffix} -print-file-name=liblto_plugin.so` $RPM_BUILD_ROOT%{_libdir}/bfd-plugins/liblto_plugin.so
|
||||||
|
|
||||||
dir=`gcc-%{gcc_suffix} -print-prog-name=cc1`
|
|
||||||
dir=${dir%/cc1}
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/$dir
|
|
||||||
cat > $RPM_BUILD_ROOT/$dir/defaults.spec <<EOF
|
|
||||||
*default_spec:
|
|
||||||
%%{pie|fpic|fPIC|fpie|fPIE|no-pie|fno-pic|fno-PIC|fno-pie|fno-PIE|shared|static|nostdlib|nodefaultlibs|nostartfiles:;:-fPIE}%%{fno-pic|fno-PIC|fno-pie|fno-PIE|pie|no-pie|shared|static|nostdlib|nodefaultlibs|nostartfiles:;: -pie}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
%post -n gcc-go
|
%post -n gcc-go
|
||||||
# we don't want a BuildRequires on gccN-go but otherwise the install
|
# we don't want a BuildRequires on gccN-go but otherwise the install
|
||||||
# step of the build fails, so simply skip the script when gccN-go isn't there
|
# step of the build fails, so simply skip the script when gccN-go isn't there
|
||||||
@ -544,7 +537,7 @@ fi
|
|||||||
|
|
||||||
%files -n gcc-PIE
|
%files -n gcc-PIE
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/lib*/gcc/*-suse-linux*/*/defaults.spec
|
# empty - only for the dependency
|
||||||
|
|
||||||
%files -n gcc-locale
|
%files -n gcc-locale
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user