diff options
author | Slava Barinov <v.barinov@samsung.com> | 2020-06-04 14:57:56 +0300 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2024-05-09 13:50:21 +0900 |
commit | 12014e00237ef839c8c0670c928ecf7d76b4f26c (patch) | |
tree | 88ca21d1295c60146c61a840d783d3035d6c29e9 | |
parent | 8c4ca0643e0b323a708aa8648883919c8cd0c85b (diff) | |
download | gcc-12014e00237ef839c8c0670c928ecf7d76b4f26c.tar.gz gcc-12014e00237ef839c8c0670c928ecf7d76b4f26c.tar.bz2 gcc-12014e00237ef839c8c0670c928ecf7d76b4f26c.zip |
packaging: Add configure-dumper support
Change-Id: I1b83928110a067023e527983046700612deb509f
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r-- | packaging/gcc-aarch64.spec | 33 | ||||
-rw-r--r-- | packaging/gcc-armv7hl.spec | 33 | ||||
-rw-r--r-- | packaging/gcc-armv7l.spec | 33 | ||||
-rw-r--r-- | packaging/gcc.spec | 33 |
4 files changed, 132 insertions, 0 deletions
diff --git a/packaging/gcc-aarch64.spec b/packaging/gcc-aarch64.spec index 91e5b3b2ed8..05c38bbad39 100644 --- a/packaging/gcc-aarch64.spec +++ b/packaging/gcc-aarch64.spec @@ -23,6 +23,10 @@ %define gcc_run_tests 1 %endif +%if 0%{?dump_configure} +%define gcc_dump_configure 1 +%endif + # Enable this when testing on device to: # 1. Enable macro to turn on testsuite building ('gcc_run_tests 1') # 2. Keep 'obj/' folder in build stage as we do not want to rebuild all gcc @@ -111,6 +115,9 @@ BuildRequires: perl BuildRequires: dejagnu BuildRequires: expect %endif +%if 0%{?gcc_dump_configure} +BuildRequires: configure-dumper +%endif URL: http://gcc.gnu.org/ Version: 9.2.0 Release: 0 @@ -671,6 +678,15 @@ Group: Development/Languages This package contains static libraries from GCC } +%{?gcc_dump_configure: +%package configure-dump +Summary: GNU GCC configure dump +License: GPL-3.0+ +Group: Development/Languages +%description configure-dump +This package contains dump of configure variables of GCC +} + %prep %setup -q -n gcc-%{version} cp %{SOURCE20} . @@ -738,6 +754,7 @@ cur_arch=$(echo ${RPM_OPT_FLAGS} | sed -e 's/.*-march=\([^[:space:]]\+\).*/\1/') cd obj %{!?gcc_skip_configure: +%{?gcc_dump_configure:patch_configure.pl ..} # Add debug prints into configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ ../configure \ @@ -830,6 +847,12 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ %{!?gcc_skip_make: make BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %{!?cross:%{?gcc_profiledbootstrap:profiledbootstrap}} +%{?gcc_dump_configure: + dump_configure.pl .. . \ + --project gcc \ + --project-version %{version} \ + --out_db gcc-%{version}-%{release}-%_project-%_repository.db + } } %{?gcc_exit_on_make_finish: @@ -853,6 +876,10 @@ cd obj make install DESTDIR=$RPM_BUILD_ROOT +%{?gcc_dump_configure: + install -D -m 0644 gcc-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/gcc-%{version}-%{release}-%_project-%_repository.db +} + %{?gcc_run_tests: find . \( -name "*.sum" -o -name "*.log" -a \! -name "config.log" \) -exec tar -rf testresults.tar {} \; mkdir -p ../testresults && tar -xf testresults.tar -C ../testresults @@ -1224,4 +1251,10 @@ mv -v libsanitizer.tar.bz %{buildroot}/src %endif } +%{?gcc_dump_configure: +%files configure-dump +%manifest gcc.manifest +%{_datadir}/gcc-%{version}-%{release}-%_project-%_repository.db +} + %changelog diff --git a/packaging/gcc-armv7hl.spec b/packaging/gcc-armv7hl.spec index bb568287d3f..c6c6a7befeb 100644 --- a/packaging/gcc-armv7hl.spec +++ b/packaging/gcc-armv7hl.spec @@ -23,6 +23,10 @@ %define gcc_run_tests 1 %endif +%if 0%{?dump_configure} +%define gcc_dump_configure 1 +%endif + # Enable this when testing on device to: # 1. Enable macro to turn on testsuite building ('gcc_run_tests 1') # 2. Keep 'obj/' folder in build stage as we do not want to rebuild all gcc @@ -111,6 +115,9 @@ BuildRequires: perl BuildRequires: dejagnu BuildRequires: expect %endif +%if 0%{?gcc_dump_configure} +BuildRequires: configure-dumper +%endif URL: http://gcc.gnu.org/ Version: 9.2.0 Release: 0 @@ -671,6 +678,15 @@ Group: Development/Languages This package contains static libraries from GCC } +%{?gcc_dump_configure: +%package configure-dump +Summary: GNU GCC configure dump +License: GPL-3.0+ +Group: Development/Languages +%description configure-dump +This package contains dump of configure variables of GCC +} + %prep %setup -q -n gcc-%{version} cp %{SOURCE20} . @@ -738,6 +754,7 @@ cur_arch=$(echo ${RPM_OPT_FLAGS} | sed -e 's/.*-march=\([^[:space:]]\+\).*/\1/') cd obj %{!?gcc_skip_configure: +%{?gcc_dump_configure:patch_configure.pl ..} # Add debug prints into configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ ../configure \ @@ -830,6 +847,12 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ %{!?gcc_skip_make: make BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %{!?cross:%{?gcc_profiledbootstrap:profiledbootstrap}} +%{?gcc_dump_configure: + dump_configure.pl .. . \ + --project gcc \ + --project-version %{version} \ + --out_db gcc-%{version}-%{release}-%_project-%_repository.db + } } %{?gcc_exit_on_make_finish: @@ -853,6 +876,10 @@ cd obj make install DESTDIR=$RPM_BUILD_ROOT +%{?gcc_dump_configure: + install -D -m 0644 gcc-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/gcc-%{version}-%{release}-%_project-%_repository.db +} + %{?gcc_run_tests: find . \( -name "*.sum" -o -name "*.log" -a \! -name "config.log" \) -exec tar -rf testresults.tar {} \; mkdir -p ../testresults && tar -xf testresults.tar -C ../testresults @@ -1224,4 +1251,10 @@ mv -v libsanitizer.tar.bz %{buildroot}/src %endif } +%{?gcc_dump_configure: +%files configure-dump +%manifest gcc.manifest +%{_datadir}/gcc-%{version}-%{release}-%_project-%_repository.db +} + %changelog diff --git a/packaging/gcc-armv7l.spec b/packaging/gcc-armv7l.spec index 05e05021271..5bc2c0a2cfd 100644 --- a/packaging/gcc-armv7l.spec +++ b/packaging/gcc-armv7l.spec @@ -23,6 +23,10 @@ %define gcc_run_tests 1 %endif +%if 0%{?dump_configure} +%define gcc_dump_configure 1 +%endif + # Enable this when testing on device to: # 1. Enable macro to turn on testsuite building ('gcc_run_tests 1') # 2. Keep 'obj/' folder in build stage as we do not want to rebuild all gcc @@ -111,6 +115,9 @@ BuildRequires: perl BuildRequires: dejagnu BuildRequires: expect %endif +%if 0%{?gcc_dump_configure} +BuildRequires: configure-dumper +%endif URL: http://gcc.gnu.org/ Version: 9.2.0 Release: 0 @@ -671,6 +678,15 @@ Group: Development/Languages This package contains static libraries from GCC } +%{?gcc_dump_configure: +%package configure-dump +Summary: GNU GCC configure dump +License: GPL-3.0+ +Group: Development/Languages +%description configure-dump +This package contains dump of configure variables of GCC +} + %prep %setup -q -n gcc-%{version} cp %{SOURCE20} . @@ -738,6 +754,7 @@ cur_arch=$(echo ${RPM_OPT_FLAGS} | sed -e 's/.*-march=\([^[:space:]]\+\).*/\1/') cd obj %{!?gcc_skip_configure: +%{?gcc_dump_configure:patch_configure.pl ..} # Add debug prints into configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ ../configure \ @@ -830,6 +847,12 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ %{!?gcc_skip_make: make BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %{!?cross:%{?gcc_profiledbootstrap:profiledbootstrap}} +%{?gcc_dump_configure: + dump_configure.pl .. . \ + --project gcc \ + --project-version %{version} \ + --out_db gcc-%{version}-%{release}-%_project-%_repository.db + } } %{?gcc_exit_on_make_finish: @@ -853,6 +876,10 @@ cd obj make install DESTDIR=$RPM_BUILD_ROOT +%{?gcc_dump_configure: + install -D -m 0644 gcc-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/gcc-%{version}-%{release}-%_project-%_repository.db +} + %{?gcc_run_tests: find . \( -name "*.sum" -o -name "*.log" -a \! -name "config.log" \) -exec tar -rf testresults.tar {} \; mkdir -p ../testresults && tar -xf testresults.tar -C ../testresults @@ -1224,4 +1251,10 @@ mv -v libsanitizer.tar.bz %{buildroot}/src %endif } +%{?gcc_dump_configure: +%files configure-dump +%manifest gcc.manifest +%{_datadir}/gcc-%{version}-%{release}-%_project-%_repository.db +} + %changelog diff --git a/packaging/gcc.spec b/packaging/gcc.spec index 61e9306db20..9ae56a529fc 100644 --- a/packaging/gcc.spec +++ b/packaging/gcc.spec @@ -20,6 +20,10 @@ %define gcc_run_tests 1 %endif +%if 0%{?dump_configure} +%define gcc_dump_configure 1 +%endif + # Enable this when testing on device to: # 1. Enable macro to turn on testsuite building ('gcc_run_tests 1') # 2. Keep 'obj/' folder in build stage as we do not want to rebuild all gcc @@ -108,6 +112,9 @@ BuildRequires: perl BuildRequires: dejagnu BuildRequires: expect %endif +%if 0%{?gcc_dump_configure} +BuildRequires: configure-dumper +%endif URL: http://gcc.gnu.org/ Version: 9.2.0 Release: 0 @@ -668,6 +675,15 @@ Group: Development/Languages This package contains static libraries from GCC } +%{?gcc_dump_configure: +%package configure-dump +Summary: GNU GCC configure dump +License: GPL-3.0+ +Group: Development/Languages +%description configure-dump +This package contains dump of configure variables of GCC +} + %prep %setup -q -n gcc-%{version} cp %{SOURCE20} . @@ -735,6 +751,7 @@ cur_arch=$(echo ${RPM_OPT_FLAGS} | sed -e 's/.*-march=\([^[:space:]]\+\).*/\1/') cd obj %{!?gcc_skip_configure: +%{?gcc_dump_configure:patch_configure.pl ..} # Add debug prints into configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ ../configure \ @@ -827,6 +844,12 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ %{!?gcc_skip_make: make BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} %{!?cross:%{?gcc_profiledbootstrap:profiledbootstrap}} +%{?gcc_dump_configure: + dump_configure.pl .. . \ + --project gcc \ + --project-version %{version} \ + --out_db gcc-%{version}-%{release}-%_project-%_repository.db + } } %{?gcc_exit_on_make_finish: @@ -850,6 +873,10 @@ cd obj make install DESTDIR=$RPM_BUILD_ROOT +%{?gcc_dump_configure: + install -D -m 0644 gcc-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/gcc-%{version}-%{release}-%_project-%_repository.db +} + %{?gcc_run_tests: find . \( -name "*.sum" -o -name "*.log" -a \! -name "config.log" \) -exec tar -rf testresults.tar {} \; mkdir -p ../testresults && tar -xf testresults.tar -C ../testresults @@ -1221,4 +1248,10 @@ mv -v libsanitizer.tar.bz %{buildroot}/src %endif } +%{?gcc_dump_configure: +%files configure-dump +%manifest gcc.manifest +%{_datadir}/gcc-%{version}-%{release}-%_project-%_repository.db +} + %changelog |