Browse Source

updated 8 packages

binutils-2.37-1

dwz-0.14-3

elfutils-0.185-1

gcc-11.2.1-1

gdb-10.2-2

glibc-2.34-1

libtool-2.4.6-9

valgrind-3.17.0-2
Tomohiro "Tomo-p" KATO 2 years ago
parent
commit
328dc771d3

+ 67 - 37
b/binutils/binutils-vl.spec

@@ -6,6 +6,10 @@
 # Enable support for GCC LTO compilation.
 %define enable_lto 1
 
+# Enable support for generating new dtags in the linker
+# Disable if it is necessary to use RPATH instead.
+%define enable_new_dtags 1
+
 # Disable the default generation of compressed debug sections.
 %define default_compress_debug 0
 
@@ -35,8 +39,8 @@
 Summary:        A GNU collection of binary utilities.
 Summary(ja):    GNU 版バイナリユーティリティ集
 Name:           binutils
-Version:        2.36.1
-Release:        2%{?_dist_release}
+Version:        2.37
+Release:        1%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
 Distribution:   Vine Linux
@@ -53,7 +57,7 @@ Source2:        binutils-2.19.50.0.1-output-format.sed
 
 #----------------------------------------------------------------------------
 
-Patch00: binutils-2.36-20210410.patch
+Patch00: binutils-2.37-20210802.patch
 
 # Purpose:  Use /lib64 and /usr/lib64 instead of /lib and /usr/lib in the
 #           default library search path of 64-bit targets.
@@ -62,12 +66,12 @@ Patch00: binutils-2.36-20210410.patch
 #           libtool.m4 file).  These are based on a version released in 2009
 #           (2.2.6?) rather than the latest version.  (Definitely fixed in
 #           libtool version 2.4.6).
-Patch01: binutils-2.20.51.0.2-libtool-lib64.patch
+Patch01: binutils-libtool-lib64.patch
 
 # Purpose:  Appends a RHEL or Fedora release string to the generic binutils
 #           version string.
 # Lifetime: Permanent.  This is a RHEL/Fedora specific patch.
-Patch02: binutils-2.25-version.patch
+Patch02: binutils-version.patch
 
 # Purpose:  Exports the demangle.h header file (associated with the libiberty
 #           sources) with the binutils-devel rpm.
@@ -83,7 +87,7 @@ Patch03: binutils-export-demangle.h.patch
 # FIXME:    It would be better if the packages using the bfd.h header were
 #           fixed so that they do include the header files in the correct
 #           order.
-Patch04: binutils-2.22.52.0.4-no-config-h-check.patch
+Patch04: binutils-no-config-h-check.patch
 
 # Purpose:  Include the filename concerned in readelf error messages.  This
 #           makes readelf's output more helpful when it is run on multiple
@@ -92,7 +96,7 @@ Patch04: binutils-2.22.52.0.4-no-config-h-check.patch
 #           making it better (IMHO) but also potentially breaking tools that
 #           depend upon readelf's current format.  Hence it remains a local
 #           patch.
-Patch05: binutils-2.29-filename-in-error-messages.patch
+Patch05: binutils-filename-in-error-messages.patch
 
 # Purpose:  Disable an x86/x86_64 optimization that moves functions from the
 #           PLT into the GOTPLT for faster access.  This optimization is
@@ -100,7 +104,7 @@ Patch05: binutils-2.29-filename-in-error-messages.patch
 #           as ltrace and LD_AUDIT.  See BZs 1452111 and 1333481.
 # Lifetime: Permanent.  But it should not be.
 # FIXME:    Replace with a configure time option.
-Patch06: binutils-2.29-revert-PLT-elision.patch
+Patch06: binutils-revert-PLT-elision.patch
 
 # Purpose:  Changes readelf so that when it displays extra information about
 #           a symbol, this information is placed at the end of the line.
@@ -121,40 +125,28 @@ Patch08: binutils-2.27-aarch64-ifunc.patch
 Patch09: binutils-do-not-link-with-static-libstdc++.patch
 
 # Purpose:  Allow OS specific sections in section groups.
-# Lifetime: Fixed in 2.36 (maybe)
-Patch11: binutils-special-sections-in-groups.patch
+# Lifetime: Fixed in 2.38 (maybe)
+Patch10: binutils-special-sections-in-groups.patch
 
 # Purpose:  Fix linker testsuite failures.
-# Lifetime: Fixed in 2.36 (maybe)
-Patch12: binutils-fix-testsuite-failures.patch
+# Lifetime: Fixed in 2.37 (maybe)
+Patch11: binutils-fix-testsuite-failures.patch
 
 # Purpose:  Stop gold from aborting when input sections with the same name
 #            have different flags.
-# Lifetime: Fixed in 2.36 (maybe)
-Patch13: binutils-gold-mismatched-section-flags.patch
+# Lifetime: Fixed in 2.38 (maybe)
+Patch12: binutils-gold-mismatched-section-flags.patch
 
 # Purpose:  Add a check to the GOLD linker for a corrupt input file
 #            with a fuzzed section offset.
-# Lifetime: Fixed in 2.36 (maybe)
-Patch14: binutils-CVE-2019-1010204.patch
+# Lifetime: Fixed in 2.38 (maybe)
+Patch13: binutils-CVE-2019-1010204.patch
 
 # Purpose:  Change the gold configuration script to only warn about
 #            unsupported targets.  This allows the binutils to be built with
 #            BPF support enabled.
 # Lifetime: Permanent.
-Patch15: binutils-gold-warn-unsupported.patch
-
-# Purpose:  Fix LTO problems running config mini-builds.
-# Lifetime: Should be fixed in 2.36.
-Patch17: binutils-config.patch
-
-# Purpose:  Fix compile time warning messages building with gcc-10.
-# Lifetime: Should be fixed in 2.36.
-Patch18: binutils-warnings.patch
-
-# Purpose:  Fix compile time warning messages building with gcc-10. (part 2).
-# Lifetime: Should be fixed in 2.36.
-Patch19: binutils-gcc-10-fixes.patch
+Patch14: binutils-gold-warn-unsupported.patch
 
 # Purpose:  Use the "unsigned long long" type for pointers on hosts where
 #           long is a 32-bit type but pointers are a 64-bit type.  Necessary
@@ -162,11 +154,16 @@ Patch19: binutils-gcc-10-fixes.patch
 #           x86_64 versions of binutils-devel on the same machine, so they
 #           need to identical versions of the bfd.h header file.
 # Lifetime: Permanent.
-Patch30: binutils-use-long-long.patch
+Patch15: binutils-use-long-long.patch
 
-# Purpose:  Fix FAIL results in gas and ld testsuites.
-# Lifetime: Fixed in 2.36
-Patch34: binutils-testsuite-failures.patch
+# Purpose:  Fix testsuite failures due to the patches applied here.
+# Lifetime: Permanent, but varying with each new rebase.
+Patch16: binutils-testsuite-fixes.patch
+
+# Purpose:  Enable the creation of .note.gnu.property sections by the GOLD
+#            linker for x86 binaries.
+# Lifetime: Fixed in 2.38 maybe
+Patch17: binutils-gold-i386-gnu-property-notes.patch
 
 #----------------------------------------------------------------------------
 
@@ -292,9 +289,24 @@ touch */configure
   find . -name *.info -print -exec touch {} \;
 %endif
 
+# revert development mode
+sed -i -e 's/development=true/development=false/' bfd/development.sh
+
+# use newer autoconf
+sed -i -e 's/2\.69/2.71/' config/override.m4
+
 
 %build
 echo target is %{binutils_target}
+
+%set_build_flags
+
+# BZ 1541027 - include the linker flags from redhat-rpm-config as well.
+export LDFLAGS=$RPM_LD_FLAGS
+%if %{enable_new_dtags}
+export LDFLAGS="$LD_FLAGS -Wl,--enable-new-dtags"
+%endif
+
 export CFLAGS="$RPM_OPT_FLAGS"
 CARGS=
 
@@ -319,6 +331,17 @@ CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
 %define enable_shared 0
 %endif
 
+# Dependencies are not set up to rebuild the configure files
+# in the subdirectories.  So we just rebuild the ones we care
+# about after applying the configure patches
+pushd libiberty
+autoconf
+sed -i -e 's/^ac_aux_dir_candidates=.*$/ac_aux_dir_candidates=../' configure
+popd
+pushd intl
+autoconf
+popd
+
 # We could optimize the cross builds size by --enable-shared but the produced
 # binaries may be less convenient in the embedded environment.
 %configure \
@@ -346,6 +369,10 @@ CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
 %if %{enable_lto}
   --enable-lto \
 %endif
+%if %{enable_new_dtags}
+  --enable-new-dtags \
+  --disable-rpath \
+%endif
 %if %{default_compress_debug}
   --enable-compressed-debug-sections=all \
 %else
@@ -364,7 +391,8 @@ CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
   $CARGS \
   --enable-plugins \
   --disable-werror \
-  --with-bugurl=http://mantis.vinelinux.org/
+  --with-bugurl=http://mantis.vinelinux.org/ \
+  || cat config.log
 
 %if %{with docs}
 make %{_smp_mflags} tooldir=%{_prefix} all
@@ -538,7 +566,6 @@ rm -rf $RPM_BUILD_ROOT
   /sbin/alternatives --auto ld 
 %endif
 
-/sbin/ldconfig
 if [ -e %{_infodir}/binutils.info.gz ]
 then
   /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz
@@ -565,8 +592,6 @@ if [ $1 = 0 ] ;then
   fi
 fi
 
-%postun -p /sbin/ldconfig
-
 %post devel
 if [ -e %{_infodir}/bfd.info.gz ] 
 then
@@ -613,6 +638,11 @@ fi
 
 
 %changelog
+* Wed Aug 04 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.37-1
+- updated to 2.37.
+- imported Patch00 from upstream.
+- re-imported patches from rawhide.
+
 * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.36.1-2
 - imported Patch00 from upstream.
 - built with gcc-10.3.

+ 178 - 0
d/dwz/dwz-vl.spec

@@ -0,0 +1,178 @@
+Summary: DWARF optimization and duplicate removal tool
+Summary(ja): DWARF 最適化・重複排除ツール
+Name: dwz
+Version: 0.14
+Release: 3%{?_dist_release}
+Group: programming
+Vendor: Project Vine
+Distribution: Vine Linux
+
+License: GPLv2+ and GPLv3+
+URL: https://sourceware.org/dwz/
+Source: %{name}-0.14.tar.xz
+Patch0: dwz-fix-testsuite.patch
+
+BuildRequires: gcc, gcc-c++, gdb, elfutils-libelf-devel, dejagnu
+BuildRequires: make
+
+%description
+The dwz package contains a program that attempts to optimize DWARF
+debugging information contained in ELF shared libraries and ELF executables
+for size, by replacing DWARF information representation with equivalent
+smaller representation where possible and by reducing the amount of
+duplication using techniques from DWARF standard appendix E - creating
+DW_TAG_partial_unit compilation units (CUs) for duplicated information
+and using DW_TAG_imported_unit to import it into each CU that needs it.
+
+
+%debug_package
+
+
+%prep
+%autosetup -p1 -n dwz
+
+
+%build
+%make_build CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
+  prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
+
+
+%install
+rm -rf %{buildroot}
+%make_install prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
+
+
+%check
+make check
+
+
+%files
+%license COPYING COPYING3 COPYING.RUNTIME
+%{_bindir}/dwz
+%{_mandir}/man1/dwz.1*
+
+
+%changelog
+* Thu Aug 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.14-3
+- initial build for Vine Linux.
+- imported Patch0 from upstream.
+
+* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
+* Tue Mar 09 2021 Jakub Jelinek <jakub@redhat.com> 0.14-1
+- update to a new upstream release
+
+* Fri Jan 22 2021 Mark Wielaard <mjw@fedoraproject.org> 0.13-7
+- Don't crash on DWARF5 .debug_line table with zero files (#1919243)
+
+* Thu Jan 21 2021 Jakub Jelinek <jakub@redhat.com> 0.13-6
+- DW_FORM_implicit_const handling fixes (sw#27212, sw#27213)
+- temporarily build odr tests with -gdwarf-4 as they are incompatible with
+  DWARF 5
+
+* Mon Jan 18 2021 Jakub Jelinek <jakub@redhat.com> 0.13-5
+- update to latest git snapshot
+  - DWARF5 support
+
+* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 0.13-3
+- Use make macros
+- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
+
+* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Wed Dec 11 2019 Jakub Jelinek <jakub@redhat.com> 0.13-1
+- update to a new upstream release
+- add make check
+
+* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-11
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Thu Jul 19 2018 Marek Polacek <polacek@redhat.com> 0.12-9
+- remove %{?_isa} from BuildRequires (#1545173)
+- add gcc to BuildRequires
+
+* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 0.12-7
+- Use LDFLAGS from redhat-rpm-config
+
+* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.12-3
+- Add missing %%license macro
+
+* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Mon Jul 13 2015 Jakub Jelinek <jakub@redhat.com> 0.12-1
+- fix up alignment of moved non-allocated sections and section header table
+
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.11-5
+- Rebuilt for Fedora 23 Change
+  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
+
+* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Tue Jul  2 2013 Jakub Jelinek <jakub@redhat.com> 0.11-1
+- handle .gdb_index version 8 (#969454)
+
+* Mon Mar 11 2013 Jakub Jelinek <jakub@redhat.com> 0.10-1
+- when creating DW_AT_stmt_list, use DW_FORM_sec_offset for dwarf4
+  and DW_FORM_data4 for dwarf[23] rather than vice versa (#919755)
+
+* Mon Feb  4 2013 Jakub Jelinek <jakub@redhat.com> 0.9-1
+- fix up handling of DIE equality if more than one DIE in the same
+  CU compare equal (#889283)
+- check DW_FORM_ref_addr properly during fi_multifile phase
+
+* Thu Nov 29 2012 Jakub Jelinek <jakub@redhat.com> 0.8-1
+- fix recompute_abbrevs (#880634)
+- optimize DW_FORM_data[48] DW_AT_high_pc that GCC 4.8 produces
+
+* Fri Aug 10 2012 Jakub Jelinek <jakub@redhat.com> 0.7-1
+- fix iterative hasing on big-endian targets (#846685)
+
+* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Tue Jul 17 2012 Jakub Jelinek <jakub@redhat.com> 0.6-1
+- add --version/-v option support (Matt Newsome)
+- fix building on RHEL 5
+
+* Wed Jul  4 2012 Jakub Jelinek <jakub@redhat.com> 0.5-1
+- handle .gdb_index version 7
+
+* Fri Jun 22 2012 Jakub Jelinek <jakub@redhat.com> 0.4-1
+- fix up DIE counting in low-mem mode for testing the -L limit
+
+* Fri Jun 15 2012 Jakub Jelinek <jakub@redhat.com> 0.3-1
+- update to dwz-0.3 (#830863)
+
+* Mon Jun 11 2012 Jakub Jelinek <jakub@redhat.com> 0.2-1
+- new package

+ 15 - 5
e/elfutils/elfutils-vl.spec

@@ -5,8 +5,8 @@
 Summary: A collection of utilities and DSOs to handle compiled objects
 Summary(ja): コンパイル済みオブジェクトを扱うためのユーティリティ集
 Name: elfutils
-Version:        0.183
-Release:        2%{?_dist_release}
+Version:        0.185
+Release:        1%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
 Distribution:   Vine Linux
@@ -156,7 +156,7 @@ for libelf.
 Summary: Library to read and write ELF files
 Summary(ja): ELF ファイルを読み書きするためのライブラリ
 License: GPLv2+ or LGPLv3+
-Group: system
+Group: system,legacy
 Provides: compat32-libelf = %{version}-%{release}
 
 %description -n compat32-%{name}-libelf
@@ -171,11 +171,17 @@ elfutils package use it also to generate new ELF files.
 
 %prep
 %setup -q
-
 autoreconf -f -v -i
-
 find . -name \*.sh ! -perm -0100 -print | xargs chmod +x
 
+# disable some tests
+sed -i -e 's/check_native.*$/exit 0/' \
+	tests/run-backtrace-native.sh \
+	tests/run-backtrace-native-biarch.sh \
+	tests/run-backtrace-native-core.sh \
+	tests/run-backtrace-native-core-biarch.sh \
+	%{nil}
+
 
 %build
 # This package uses top level ASM constructs which are incompatible with LTO.
@@ -221,6 +227,7 @@ chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
 %make_build -s check || (cat tests/test-suite.log; %{nocheck})
 %endif
 
+
 %clean
 rm -rf ${RPM_BUILD_ROOT}
 
@@ -304,6 +311,9 @@ rm -rf ${RPM_BUILD_ROOT}
 
 
 %changelog
+* Thu Aug 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.185-1
+- new upstream release.
+
 * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.183-2
 - rebuilt with current environment.
 

+ 93 - 43
g/gcc/gcc-vl.spec

@@ -1,8 +1,8 @@
 %bcond_with check
 
 # version of tarball
-%global gcc_version 10.3.0
-%global gcc_major 10
+%global gcc_version 11.2.0
+%global gcc_major 11
 # Note, gcc_release must be integer, if you want to add suffixes to
 # %{release}, append them after %{gcc_release} on Release: line.
 %global gcc_release 1
@@ -10,7 +10,7 @@
 Summary:        GNU Compiler Collection (C, C++, Objective-C, ...)
 Summary(ja):    GNU コンパイラコレクション (C, C++, Objective-C, ...)
 Name:           gcc
-Version:        10.3.1
+Version:        11.2.1
 Release:        %{gcc_release}%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
@@ -21,6 +21,8 @@ Distribution:   Vine Linux
 License:        GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
 URL:            https://gcc.gnu.org
 Source0:        https://ftp.gnu.org/gnu/%{name}/%{name}-%{gcc_version}/%{name}-%{gcc_version}.tar.xz
+%global isl_version 0.18
+Source3:        https://gcc.gnu.org/pub/gcc/infrastructure/isl-%{isl_version}.tar.bz2
 
 %{?!_fmoddir: %global _fmoddir %{_libdir}/gfortran/modules}
 %global multilib_64_archs sparc64 ppc64 s390x x86_64
@@ -33,10 +35,11 @@ Source0:        https://ftp.gnu.org/gnu/%{name}/%{name}-%{gcc_version}/%{name}-%
 %global build_java 0
 %ifarch %{ix86} x86_64 %{arm}
 %global build_go 1
-%global go_soversion 16
+%global go_soversion 19
 %else
 %global build_go 0
 %endif
+%global build_d 0
 %ifarch %{ix86} x86_64 ia64
 %global build_libquadmath 1
 %else
@@ -73,7 +76,6 @@ Source0:        https://ftp.gnu.org/gnu/%{name}/%{name}-%{gcc_version}/%{name}-%
 %global build_libitm 0
 %endif
 %global build_isl 1
-%global isl_soversion 23
 %ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
 %global attr_ifunc 1
 %else
@@ -152,16 +154,6 @@ BuildRequires: ppl >= 0.10, ppl-devel >= 0.10
 %endif
 BuildRequires: cloog-ppl >= 0.15, cloog-ppl-devel >= 0.15
 %endif
-%if %{build_isl}
-BuildRequires: isl-devel >= 0.23
-Requires: isl >= 0.23
-%else
-%if 0%{?__isa_bits} == 64
-Requires: libisl.so.%{isl_soversion}()(64bit)
-%else
-Requires: libisl.so.%{isl_soversion}
-%endif
-%endif
 %if %{build_libstdcxx_docs}
 BuildRequires: doxygen >= 1.7.1
 BuildRequires: graphviz
@@ -215,20 +207,21 @@ Requires(post): /sbin/install-info
 Requires(preun): /sbin/install-info
 AutoReq: true
 
-Patch0: gcc10-hack.patch
-Patch1: gcc10-i386-libgomp.patch
-Patch2: gcc10-sparc-config-detection.patch
-Patch3: gcc10-libgomp-omp_h-multilib.patch
-Patch4: gcc10-libtool-no-rpath.patch
-Patch5: gcc10-isl-dl.patch
-Patch6: gcc10-libstdc++-docs.patch
-Patch7: gcc10-no-add-needed.patch
-Patch8: gcc10-foffload-default.patch
-Patch9: gcc10-Wno-format-security.patch
-Patch10: gcc10-rh1574936.patch
-Patch11: gcc10-d-shared-libphobos.patch
-
-Patch10000: gcc-10.3-20210410.patch
+Patch0: gcc11-hack.patch
+Patch2: gcc11-sparc-config-detection.patch
+Patch3: gcc11-libgomp-omp_h-multilib.patch
+Patch4: gcc11-libtool-no-rpath.patch
+Patch5: gcc11-isl-dl.patch
+Patch6: gcc11-isl-dl2.patch
+Patch7: gcc11-libstdc++-docs.patch
+Patch8: gcc11-no-add-needed.patch
+Patch9: gcc11-foffload-default.patch
+Patch10: gcc11-Wno-format-security.patch
+Patch11: gcc11-rh1574936.patch
+Patch12: gcc11-d-shared-libphobos.patch
+Patch13: gcc11-pr99341-revert.patch
+
+Patch10000: gcc-11.2-20210803.patch
 
 # On ARM EABI systems, we do want -gnueabi to be part of the
 # target triple.
@@ -858,31 +851,32 @@ not stable, so plugins must be rebuilt any time GCC is updated.
 
 
 %prep
-%setup -q -n gcc-%{gcc_version}
+%setup -q -n gcc-%{gcc_version} -a 3
 %patch10000 -p1 -b .upstream
 
 %patch0 -p0 -b .hack~
-%patch1 -p0 -b .i386-libgomp~
 %patch2 -p0 -b .sparc-config-detection~
 %patch3 -p0 -b .libgomp-omp_h-multilib~
 %patch4 -p0 -b .libtool-no-rpath~
 %if %{build_isl}
-#patch5 -p0 -b .isl-dl~
+%patch5 -p0 -b .isl-dl~
+%patch6 -p0 -b .isl-dl2~
 %endif
 %if %{build_libstdcxx_docs}
-%patch6 -p0 -b .libstdc++-docs~
+%patch7 -p0 -b .libstdc++-docs~
 %endif
-%patch7 -p0 -b .no-add-needed~
-%patch8 -p0 -b .foffload-default~
-%patch9 -p0 -b .Wno-format-security~
+%patch8 -p0 -b .no-add-needed~
+%patch9 -p0 -b .foffload-default~
+%patch10 -p0 -b .Wno-format-security~
 %if 0%{?fedora} >= 29 || 0%{?rhel} > 7
-%patch10 -p0 -b .rh1574936~
+%patch11 -p0 -b .rh1574936~
 %endif
-%patch11 -p0 -b .d-shared-libphobos~
+%patch12 -p0 -b .d-shared-libphobos~
+%patch13 -p0 -b .pr99341-revert~
 
-cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
+echo 'Vine Linux %{version}-%{gcc_release}' > gcc/DEV-PHASE
 
-echo 'TM_H += $(srcdir)/config/rs6000/rs6000-modes.h' >> gcc/config/rs6000/t-rs6000
+cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
 
 ./contrib/gcc_update --touch
 
@@ -902,6 +896,7 @@ CC=gcc
 CXX=g++
 
 OPT_FLAGS=`echo %{optflags}|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g'`
+OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-flto=auto//g;s/-flto//g;s/-ffat-lto-objects//g'`
 OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
 OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g'`
 OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/ -pipe / /g'`
@@ -922,9 +917,32 @@ rm -rf obj-%{gcc_target_platform}
 mkdir obj-%{gcc_target_platform}
 cd obj-%{gcc_target_platform}
 
+%if %{build_isl}
+mkdir isl-build isl-install
+%ifarch s390 s390x
+ISL_FLAG_PIC=-fPIC
+%else
+ISL_FLAG_PIC=-fpic
+%endif
+cd isl-build
+sed -i 's|libisl|libgcc11privateisl|g' \
+  ../../isl-%{isl_version}/Makefile.{am,in}
+../../isl-%{isl_version}/configure \
+  CC=/usr/bin/gcc CXX=/usr/bin/g++ \
+  CFLAGS="${CFLAGS:-%optflags} $ISL_FLAG_PIC" --prefix=`cd ..; pwd`/isl-install
+make %{?_smp_mflags}
+make install
+cd ../isl-install/lib
+rm libgcc11privateisl.so{,.15}
+mv libgcc11privateisl.so.15.3.0 libisl.so.15
+ln -sf libisl.so.15 libisl.so
+cd ../..
+%endif
+
 enablelgo=
 enablelada=
 enablelobjc=
+enableld=
 %if %{build_objc}
 enablelobjc=,objc,obj-c++
 %endif
@@ -934,16 +952,20 @@ enablelada=,ada
 %if %{build_go}
 enablelgo=,go
 %endif
+%if %{build_d}
+enableld=,d
+%endif
 
 CONFIGURE_OPTS="\
 	--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
 	--with-bugurl=http://mantis.vinelinux.org/ \
 	--enable-shared --enable-threads=posix --enable-checking=release \
+	--enable-multilib \
 	--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
 	--enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only \
 	--enable-plugin --enable-initfini-array \
 %if %{build_isl}
-	--with-isl \
+	--with-isl=`pwd`/isl-install \
 %else
 	--without-isl \
 %endif
@@ -961,6 +983,7 @@ CONFIGURE_OPTS="\
 	--with-arch_32=i686 \
 %endif
 	--build=%{gcc_target_platform} \
+	--with-build-config=bootstrap-lto --enable-link-serialization=1 \
 	"
 
 CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
@@ -968,7 +991,7 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
 		  | sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
 	XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
 	../configure --enable-bootstrap \
-	--enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo},lto \
+	--enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld},lto \
 	$CONFIGURE_OPTS
 
 make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" profiledbootstrap
@@ -998,6 +1021,10 @@ make jit.sphinx.html
 make jit.sphinx.install-html jit_htmldir=`pwd`/../../rpm.doc/libgccjit-devel/html
 cd ..
 
+%if %{build_isl}
+cp -a isl-install/lib/libisl.so.15 gcc/
+%endif
+
 # Make generated man pages even if Pod::Man is not new enough
 perl -pi -e 's/head3/head2/' ../contrib/texi2pod.pl
 for i in ../gcc/doc/*.texi; do
@@ -1078,6 +1105,10 @@ chmod 644 %{buildroot}%{_infodir}/gnat*
 FULLPATH=%{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
 FULLEPATH=%{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
 
+%if %{build_isl}
+cp -a isl-install/lib/libisl.so.15 $FULLPATH/
+%endif
+
 # fix some things
 ln -sf gcc %{buildroot}%{_prefix}/bin/cc
 rm -f %{buildroot}%{_prefix}/lib/cpp
@@ -1906,9 +1937,19 @@ fi
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/acc_prof.h
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bf16intrin.h
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bf16vlintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/enqcmdintrin.h
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vp2intersectintrin.h
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vp2intersectvlintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/enqcmdintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/serializeintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tsxldtrkintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxtileintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxint8intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxbf16intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86gprintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/uintrintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/hresetintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/keylockerintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxvnniintrin.h
 %ifarch %{ix86} x86_64
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xmmintrin.h
@@ -2051,6 +2092,9 @@ fi
 %if %{build_libasan}
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsanitizer.spec
 %endif
+%if %{build_isl}
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libisl.so.*
+%endif
 %ifarch sparcv9 ppc
 %dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/crt*.o
@@ -2197,6 +2241,7 @@ fi
 %dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
 %dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
 %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cc1plus
+%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/g++-mapper-server
 %ifarch sparcv9 ppc
 %dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.so
@@ -2834,6 +2879,11 @@ fi
 
 
 %changelog
+* Wed Aug 04 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 11.2.1-1
+- updated tarball to 11.2.0.
+- re-imported patches from rawhide.
+- imported Patch10000 from upstream (11.2.1).
+
 * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.1-1
 - imported Patch10000 from upstream (10.3.1).
 

+ 4 - 1
g/gdb/gdb-vl.spec

@@ -2,7 +2,7 @@ Summary: A GNU source-level debugger for C, C++ and other languages.
 Summary(ja): C, C++ その他の言語用 GNU ソースレベルデバッガ
 Name: gdb
 Version: 10.2
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 Group: programming
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -128,6 +128,9 @@ fi
 
 
 %changelog
+* Thu Aug 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.2-2
+- rebuilt with gcc-11.2.
+
 * Fri May 07 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.2-1
 - new upstream release.
 

+ 57 - 226
g/glibc/glibc-vl.spec

@@ -1,14 +1,14 @@
 %bcond_with gcc5
 %bcond_with systemd
 
-%define glibcversion 2.33
+%define glibcversion 2.34
 %define glibcsrcdir glibc-%{glibcversion}
 
 Summary: The GNU libc libraries
 Summary(ja): GNU libc ライブラリ
 Name: glibc
 Version: %{glibcversion}
-Release: 4%{?_dist_release}%{?with_systemd:.systemd}
+Release: 1%{?_dist_release}%{?with_systemd:.systemd}
 Group: system
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -31,27 +31,42 @@ Source10: glibc-bench-compare
 # SUPPORTED file is used below to generate the list of locale
 # packages, using a Lua snippet.
 Source11: SUPPORTED
+Source12: wrap-find-debuginfo.sh
 
 Source1000: rpm-old-changelog.txt
 
-# patched form upstream
-Patch0: glibc-2.33-20210601.patch
+######################################################################
+# Activate the wrapper script for debuginfo generation, by rewriting
+# the definition of __debug_install_post.
+%{lua:
+local wrapper = rpm.expand("%{SOURCE12}")
+local sysroot = rpm.expand("%{glibc_sysroot}")
+local original = rpm.expand("%{macrobody:__debug_install_post}")
+-- Strip leading newline.  It confuses the macro redefinition.
+-- Avoid embedded newlines that confuse the macro definition.
+original = original:match("^%s*(.-)%s*$"):gsub("\\\n", "")
+rpm.define("__debug_install_post bash " .. wrapper
+  .. " " .. sysroot .. " " .. original)
+}
+
+# The wrapper script relies on the fact that debugedit does not change
+# build IDs.
+%define _no_recompute_build_ids 1
+%undefine _unique_build_ids
+
+# patch form upstream
+#Patch0: glibc-2.33-20210601.patch
 
 # patches from Fedora
 #Patch1: glibc-post_upgrade.patch
 Patch2: glibc-fedora-nscd.patch
-Patch3: glibc-rh697421.patch
 Patch4: glibc-fedora-linux-tcsetattr.patch
-#Patch5: glibc-rh741105.patch
 Patch6: glibc-fedora-localedef.patch
-#Patch7: glibc-fedora-nis-rh188246.patch
 Patch8: glibc-fedora-manual-dircategory.patch
 Patch9: glibc-rh827510.patch
 # needed by build-locale-archive.c
 Patch10: glibc-fedora-locarchive.patch
-Patch12: glibc-rh819430.patch
 Patch13: glibc-fedora-localedata-rh61908.patch
-#Patch14: glibc-fedora-__libc_multiple_libcs.patch
 Patch15: glibc-rh1070416.patch
 Patch16: glibc-nscd-sysconfig.patch
 Patch17: glibc-cs-path.patch
@@ -63,8 +78,6 @@ Patch29: glibc-fedora-nsswitch.patch
 #Patch10001: glibc-2.18-vine-build-env.patch
 
 # security
-Patch20000: CVE-2021-33574_1.patch
-Patch20001: CVE-2021-33574_2.patch
 
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 
@@ -122,6 +135,7 @@ BuildRequires: /bin/ps, /bin/kill, /bin/awk
 # This is to ensure that __frame_state_for is exported by glibc
 # will be compatible with egcs 1.x.y
 BuildRequires: gcc >= 3.2
+BuildRequires: dwz
 %define enablekernel 3.2
 Conflicts: kernel < %{enablekernel}
 %ifarch i386
@@ -158,10 +172,6 @@ BuildRequires: gcc >= 3.2.1-5
 %ifarch ppc s390 s390x
 BuildRequires: gcc >= 4.1.0-0.17
 %endif
-%if 0%{?_enable_debug_packages}
-BuildRequires: elfutils >= 0.72
-BuildRequires: rpm >= 4.2-0.56
-%endif
 
 # The testsuite builds static C++ binaries that require a static
 # C++ runtime from libstdc++-static.
@@ -454,54 +464,8 @@ xtrace (関数呼出しトレーサ)。
 これらが必要かどうか分からない場合は、インストールする必要はありません。
 
 
-%if 0%{?_enable_debug_packages}
-%define debug_package %{nil}
-%define __debug_install_post %{nil}
-%global __debug_package 1
-# Disable thew new features that glibc packages don't use.
-%undefine _debugsource_packages
-%undefine _debuginfo_subpackages
-%undefine _unique_debug_names
-%undefine _unique_debug_srcs
-
-%package debuginfo
-Summary: Debug information for package %{name}
-Group: Development/Debug
-AutoReqProv: no
-%ifarch %{debuginfocommonarches}
-Requires: glibc-debuginfo-common = %{version}-%{release}
-%else
-%ifarch %{ix86}
-Obsoletes: glibc-debuginfo-common
-%endif
-%endif
-
-%description debuginfo
-This package provides debug information for package %{name}.
-Debug information is useful when developing applications that use this
-package or when debugging this package.
+%debug_package
 
-This package also contains static standard C libraries with
-debugging information.  You need this only if you want to step into
-C library routines during debugging programs statically linked against
-one or more of the standard C libraries.
-To use this debugging information, you need to link binaries
-with -static -L%{_prefix}/lib/debug%{_prefix}/%{_lib} compiler options.
-
-%ifarch %{debuginfocommonarches}
-
-%package debuginfo-common
-Summary: Debug information for package %{name}
-Group: Development/Debug
-AutoReqProv: no
-
-%description debuginfo-common
-This package provides debug information for package %{name}.
-Debug information is useful when developing applications that use this
-package or when debugging this package.
-
-%endif
-%endif
 
 %prep
 %autosetup -n %{glibcsrcdir} -p1
@@ -891,21 +855,6 @@ truncate -s 0 %{glibc_sysroot}/etc/gai.conf
 truncate -s 0 %{glibc_sysroot}%{_libdir}/gconv/gconv-modules.cache
 chmod 644 %{glibc_sysroot}%{_libdir}/gconv/gconv-modules.cache
 
-##############################################################################
-# Install debug copies of unstripped static libraries
-# - This step must be last in order to capture any additional static
-#   archives we might have added.
-##############################################################################
-
-# If we are building a debug package then copy all of the static archives
-# into the debug directory to keep them as unstripped copies.
-%if 0%{?_enable_debug_packages}
-mkdir -p %{glibc_sysroot}%{_prefix}/lib/debug%{_libdir}
-cp -a %{glibc_sysroot}%{_libdir}/*.a \
-	%{glibc_sysroot}%{_prefix}/lib/debug%{_libdir}/
-rm -f %{glibc_sysroot}%{_prefix}/lib/debug%{_libdir}/*_p.a
-%endif
-
 # Remove any zoneinfo files; they are maintained by tzdata.
 rm -rf %{glibc_sysroot}%{_prefix}/share/zoneinfo
 
@@ -961,7 +910,6 @@ cp benchtests/scripts/import_bench.py %{glibc_sysroot}%{_prefix}/libexec/glibc-b
 cp benchtests/scripts/validate_benchout.py %{glibc_sysroot}%{_prefix}/libexec/glibc-benchtests/
 %endif
 
-%if 0%{?_enable_debug_packages}
 # The #line directives gperf generates do not give the proper
 # file name relative to the build directory.
 pushd locale
@@ -970,7 +918,6 @@ popd
 pushd iconv
 ln -sf ../locale/programs/charmap-kw.gperf .
 popd
-%endif # %{?_enable_debug_packages}
 
 %if %{with docs}
 # Remove the `dir' info-heirarchy file which will be maintained
@@ -995,22 +942,6 @@ mv -f %{glibc_sysroot}/%{_lib}/lib{pcprofile,memusage}.so \
 # Strip all of the installed object files.
 strip -g %{glibc_sysroot}%{_libdir}/*.o
 
-###############################################################################
-# Rebuild libpthread.a using --whole-archive to ensure all of libpthread
-# is included in a static link. This prevents any problems when linking
-# statically, using parts of libpthread, and other necessary parts not
-# being included. Upstream has decided that this is the wrong approach to
-# this problem and that the full set of dependencies should be resolved
-# such that static linking works and produces the most minimally sized
-# static application possible.
-###############################################################################
-pushd %{glibc_sysroot}%{_prefix}/%{_lib}/
-$GCC -r -nostdlib -o libpthread.o -Wl,--whole-archive ./libpthread.a
-rm libpthread.a
-ar rcs libpthread.a libpthread.o
-rm libpthread.o
-popd
-
 # The xtrace and memusage scripts have hard-coded paths that need to be
 # translated to a correct set of paths using the $LIB token which is
 # dynamically translated by ld.so as the default lib directory.
@@ -1069,10 +1000,6 @@ ar cr %{glibc_sysroot}%{_prefix}/%{_lib}/libpthread_nonshared.a
 #       - File list with the .so symbolic links for NSS packages.
 # * compat-libpthread-nonshared.filelist.
 #	- File list for compat-libpthread-nonshared subpackage.
-# * debuginfo.filelist
-#	- Files for the glibc debuginfo package.
-# * debuginfocommon.filelist
-#	- Files for the glibc common debuginfo package.
 #
 
 # Create the main file lists. This way we can append to any one of them later
@@ -1091,8 +1018,6 @@ touch nss_db.filelist
 touch nss_hesiod.filelist
 touch nss-devel.filelist
 touch compat-libpthread-nonshared.filelist
-touch debuginfo.filelist
-touch debuginfocommon.filelist
 
 ###############################################################################
 # Master file list, excluding a few things.
@@ -1206,7 +1131,7 @@ grep '%{_infodir}' master.filelist | grep -v '%{_infodir}/dir' > devel.filelist
 
 # Put some static files into the devel package.
 grep '%{_libdir}/lib.*\.a' master.filelist \
-  | grep '/lib\(\(c\|pthread\|nldbl\|mvec\)_nonshared\|g\|ieee\|mcheck\)\.a$' \
+  | grep '/lib\(\(c\|pthread\|nldbl\|mvec\)_nonshared\|g\|ieee\|mcheck\|pthread\|dl\|rt\|util\|anl\)\.a$' \
   >> devel.filelist
 
 # Put all of the object files and *.so (not the versioned ones) into the
@@ -1243,7 +1168,7 @@ grep '%{_prefix}/include' < master.filelist \
 
 # Put the rest of the static files into the static package.
 grep '%{_libdir}/lib.*\.a' < master.filelist \
-  | grep -v '/lib\(\(c\|pthread\|nldbl\|mvec\)_nonshared\|g\|ieee\|mcheck\)\.a$' \
+  | grep -v '/lib\(\(c\|pthread\|nldbl\|mvec\)_nonshared\|g\|ieee\|mcheck\|pthread\|dl\|rt\|util\|anl\)\.a$' \
   > static.filelist
 
 ###############################################################################
@@ -1320,9 +1245,8 @@ grep '/libnss_[a-z]*\.so$' master.filelist >> devel.filelist
 ###############################################################################
 
 # Prepare the libnsl-related file lists.
-grep '/libnsl-[0-9.]*.so$' master.filelist > libnsl.filelist
+grep -E '/libnsl\.so\.[0-9]+$' master.filelist > libnsl.filelist
 test $(wc -l < libnsl.filelist) -eq 1
-grep '/libnsl-[0-9.]*.so$' master.filelist >> devel.filelist
 
 ###############################################################################
 # glibc-benchtests
@@ -1349,114 +1273,6 @@ echo "%{_prefix}/libexec/glibc-benchtests/validate_benchout.py*" >> benchtests.f
 ###############################################################################
 echo "%{_libdir}/libpthread_nonshared.a" >> compat-libpthread-nonshared.filelist
 
-###############################################################################
-# glibc-debuginfocommon, and glibc-debuginfo
-###############################################################################
-%if 0%{?_enable_debug_packages}
-
-find_debuginfo_args='--strict-build-id -g'
-%ifarch %{debuginfocommonarches}
-find_debuginfo_args="$find_debuginfo_args \
-	-l common.filelist \
-	-l utils.filelist \
-	-l nscd.filelist \
-	-p '.*/(sbin|libexec)/.*' \
-	-o debuginfocommon.filelist \
-	-l nss_db.filelist -l nss_hesiod.filelist \
-	-l libnsl.filelist -l glibc.filelist \
-%if %{with benchtests}
-	-l benchtests.filelist
-%endif
-	"
-%endif
-
-/usr/lib/rpm/find-debuginfo.sh $find_debuginfo_args -o debuginfo.filelist
-
-# List all of the *.a archives in the debug directory.
-list_debug_archives()
-{
-	local dir=%{_prefix}/lib/debug%{_libdir}
-	find %{glibc_sysroot}$dir -name "*.a" -printf "$dir/%%P\n"
-}
-
-%ifarch %{debuginfocommonarches}
-
-# Remove the source files from the common package debuginfo.
-sed -i '\#^%{glibc_sysroot}%{_prefix}/src/debug/#d' debuginfocommon.filelist
-
-# Create a list of all of the source files we copied to the debug directory.
-find %{glibc_sysroot}%{_prefix}/src/debug \
-     \( -type d -printf '%%%%dir ' \) , \
-     -printf '%{_prefix}/src/debug/%%P\n' > debuginfocommon.sources
-
-%ifarch %{biarcharches}
-
-# Add the source files to the core debuginfo package.
-cat debuginfocommon.sources >> debuginfo.filelist
-
-%else
-
-%ifarch %{ix86}
-%define basearch i686
-%endif
-%ifarch sparc sparcv9
-%define basearch sparc
-%endif
-
-# The auxarches get only these few source files.
-auxarches_debugsources=\
-'/(generic|linux|%{basearch}|nptl(_db)?)/|/%{glibcsrcdir}/build|/dl-osinfo\.h'
-
-# Place the source files into the core debuginfo pakcage.
-egrep "$auxarches_debugsources" debuginfocommon.sources >> debuginfo.filelist
-
-# Remove the source files from the common debuginfo package.
-egrep -v "$auxarches_debugsources" \
-  debuginfocommon.sources >> debuginfocommon.filelist
-
-%endif # %{biarcharches}
-
-# Add the list of *.a archives in the debug directory to
-# the common debuginfo package.
-list_debug_archives >> debuginfocommon.filelist
-
-%endif # %{debuginfocommonarches}
-
-# Remove some common directories from the common package debuginfo so that we
-# don't end up owning them.
-exclude_common_dirs()
-{
-	exclude_dirs="%{_prefix}/src/debug"
-	exclude_dirs="$exclude_dirs $(echo %{_prefix}/lib/debug{,/%{_lib},/bin,/sbin})"
-	exclude_dirs="$exclude_dirs $(echo %{_prefix}/lib/debug%{_prefix}{,/%{_lib},/libexec,/bin,/sbin})"
-
-	for d in $(echo $exclude_dirs | sed 's/ /\n/g'); do
-		sed -i "\|^%%dir $d/\?$|d" $1
-	done
-}
-
-%ifarch %{debuginfocommonarches}
-exclude_common_dirs debuginfocommon.filelist
-%endif
-exclude_common_dirs debuginfo.filelist
-
-##############################################################################
-# Delete files that we do not intended to ship with the auxarch.
-# This is the only place where we touch the installed files after generating
-# the file lists.
-##############################################################################
-%ifarch %{auxarches}
-echo Cutting down the list of unpackaged files
-sed -e '/%%dir/d;/%%config/d;/%%verify/d;s/%%lang([^)]*) //;s#^/*##' \
-	common.filelist devel.filelist static.filelist headers.filelist \
-	utils.filelist nscd.filelist \
-%ifarch %{debuginfocommonarches}
-	debuginfocommon.filelist \
-%endif
-	| (cd %{glibc_sysroot}; xargs --no-run-if-empty rm -f 2> /dev/null || :)
-%endif # %{auxarches}
-
-%endif # %{?_enable_debug_packages}
 
 %check
 %if %{with testsuite}
@@ -1600,8 +1416,12 @@ install_libs = { "anl", "BrokenLocale", "c", "dl", "m", "mvec",
 -- match "libc-2.0.so" and so on up to "libc-9.9*".
 remove_regexps = {}
 for i = 1, #install_libs do
-  remove_regexps[i] = ("lib" .. install_libs[i]
-                       .. "%%-[2-9]%%.[0-9]+%%.so$")
+  -- Versioned install name.
+  remove_regexps[#remove_regexps + 1] = ("lib" .. install_libs[i]
+                                         .. "%%-[2-9]%%.[0-9]+%%.so$")
+  -- Unversioned install name.
+  remove_regexps[#remove_regexps + 1] = ("lib" .. install_libs[i]
+                                         .. "%%.so%%.[0-9]+$")
 end
 
 -- Two exceptions:
@@ -1613,7 +1433,23 @@ local remove_dirs = { "%{_libdir}/i686",
 		      "%{_libdir}/i686/nosegneg",
 		      "%{_libdir}/power6",
 		      "%{_libdir}/power7",
-		      "%{_libdir}/power8" }
+		      "%{_libdir}/power8",
+		      "%{_libdir}/power9" }
+
+-- Add all the subdirectories of the glibc-hwcaps subdirectory.
+repeat
+  local iter = posix.files("%{_libdir}/glibc-hwcaps")
+  if iter ~= nil then
+    for entry in iter do
+      if entry ~= "." and entry ~= ".." then
+        local path = "%{_libdir}/glibc-hwcaps/" .. entry
+        if posix.access(path .. "/.", "x") then
+          remove_dirs[#remove_dirs + 1] = path
+        end
+      end
+    end
+  end
+until true
 
 -- Walk all the directories with files we need to remove...
 for _, rdir in ipairs (remove_dirs) do
@@ -1957,18 +1793,13 @@ rm -f *.filelist*
 %ghost %config(missingok,noreplace) /etc/sysconfig/nscd
 %endif
 
-%if 0%{?_enable_debug_packages}
-%files debuginfo -f debuginfo.filelist
-%defattr(-,root,root)
-%ifarch %{debuginfocommonarches}
-%ifnarch %{auxarches}
-%files debuginfo-common -f debuginfocommon.filelist
-%defattr(-,root,root)
-%endif
-%endif
-%endif
 
 %changelog
+* Wed Aug 04 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.34-1
+- updated to 2.34.
+- dropped Patch0, 3 and 12.
+- dropped Patch20000 and 20001: fixed in upstream.
+
 * Thu Jun 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.33-4
 - updated Patch0.
 - imported Patch20000 and 20001 from upstream to fix CVE-2021-33574.

+ 5 - 2
lib/libt/libtool/libtool-vl.spec

@@ -1,12 +1,12 @@
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 
-%define gcc_version 10.3.1
+%define gcc_version 11.2.1
 
 Summary: The GNU Portable Library Tool
 Summary(ja): GNU ポータブルライブラリツール
 Name:    libtool
 Version: 2.4.6
-Release: 8%{?_dist_release}
+Release: 9%{?_dist_release}
 Group: programming
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -223,6 +223,9 @@ fi
 
 
 %changelog
+* Thu Aug 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.6-9
+- rebuilt with gcc-11.2.1.
+
 * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.6-8
 - rebuilt with gcc-10.3.1.
 - dropped ldconfig scriptltes.

+ 4 - 1
v/valgrind/valgrind-vl.spec

@@ -30,7 +30,7 @@ Summary:        Tool for finding memory management bugs in programs
 Summary(ja):    プログラムのメモリ管理バグを発見するためのツール
 Name:           valgrind
 Version:        3.17.0
-Release:        1%{?_dist_release}
+Release:        2%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
 Distribution:   Vine Linux
@@ -365,6 +365,9 @@ echo ===============END TESTING===============
 
 
 %changelog
+* Thu Aug 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.17.0-2
+- rebuilt with current environment.
+
 * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.17.0-1
 - new upstream release.
 - dropped Patch4, 7-10.