From 7da87bc52ae423e96caaea033f276390d211d166 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Sun, 31 Mar 2024 01:01:21 +0300 Subject: [PATCH] import abi-dumper-1.2-12.el9 --- .abi-dumper.metadata | 1 + .gitignore | 1 + ...1-Support-for-new-elfutils-Fedora-30.patch | 50 ++++ SOURCES/abi-dumper-perl-brace.patch | 14 ++ SPECS/abi-dumper.spec | 231 ++++++++++++++++++ 5 files changed, 297 insertions(+) create mode 100644 .abi-dumper.metadata create mode 100644 .gitignore create mode 100644 SOURCES/0001-Support-for-new-elfutils-Fedora-30.patch create mode 100644 SOURCES/abi-dumper-perl-brace.patch create mode 100644 SPECS/abi-dumper.spec diff --git a/.abi-dumper.metadata b/.abi-dumper.metadata new file mode 100644 index 0000000..75cb54b --- /dev/null +++ b/.abi-dumper.metadata @@ -0,0 +1 @@ +c4bfbcf878877b80c12c18cc5998b9184514887a SOURCES/abi-dumper-1.2.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..19c99e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/abi-dumper-1.2.tar.gz diff --git a/SOURCES/0001-Support-for-new-elfutils-Fedora-30.patch b/SOURCES/0001-Support-for-new-elfutils-Fedora-30.patch new file mode 100644 index 0000000..6a20279 --- /dev/null +++ b/SOURCES/0001-Support-for-new-elfutils-Fedora-30.patch @@ -0,0 +1,50 @@ +From 3d6dbb6d48d10579984fb7fda2e79d3d73e10f70 Mon Sep 17 00:00:00 2001 +From: Andrey Ponomarenko +Date: Wed, 3 Jul 2019 16:51:32 +0300 +Subject: [PATCH] Support for new elfutils (Fedora 30) + +--- + abi-dumper.pl | 11 ++++++++--- + 1 file changed, 8 insertions(+), 3 deletions(-) + +--- a/abi-dumper.pl ++++ b/abi-dumper.pl +@@ -3,7 +3,7 @@ + # ABI Dumper 1.1 + # Dump ABI of an ELF object containing DWARF debug info + # +-# Copyright (C) 2013-2017 Andrey Ponomarenko's ABI Laboratory ++# Copyright (C) 2013-2019 Andrey Ponomarenko's ABI Laboratory + # + # Written by Andrey Ponomarenko + # +@@ -92,7 +92,7 @@ my %ERROR_CODE = ( + + my $ShortUsage = "ABI Dumper $TOOL_VERSION + Dump ABI of an ELF object containing DWARF debug info +-Copyright (C) 2017 Andrey Ponomarenko's ABI Laboratory ++Copyright (C) 2019 Andrey Ponomarenko's ABI Laboratory + License: GNU LGPL or GNU GPL + + Usage: $CmdName [options] [object] +@@ -4276,6 +4276,11 @@ sub setSource(@) + + if(defined $File) + { ++ if(index($File, "(")!=-1) ++ { # Support for new elfutils (Fedora 30) ++ $File=~s/.+ \((\d+)\)/$1/; ++ } ++ + my $Name = undef; + + if($ID>=0) { +@@ -6504,7 +6509,7 @@ sub scenario() + if($ShowVersion) + { + printMsg("INFO", "ABI Dumper $TOOL_VERSION"); +- printMsg("INFO", "Copyright (C) 2017 Andrey Ponomarenko's ABI Laboratory"); ++ printMsg("INFO", "Copyright (C) 2019 Andrey Ponomarenko's ABI Laboratory"); + printMsg("INFO", "License: LGPL or GPL "); + printMsg("INFO", "This program is free software: you can redistribute it and/or modify it.\n"); + printMsg("INFO", "Written by Andrey Ponomarenko."); diff --git a/SOURCES/abi-dumper-perl-brace.patch b/SOURCES/abi-dumper-perl-brace.patch new file mode 100644 index 0000000..04d3c73 --- /dev/null +++ b/SOURCES/abi-dumper-perl-brace.patch @@ -0,0 +1,14 @@ +Unescaped left brace in regex is deprecated +https://bugzilla.redhat.com/show_bug.cgi?id=1685441 + +--- a/abi-dumper.pl ++++ b/abi-dumper.pl +@@ -3197,7 +3197,7 @@ sub formatName($$) + + if(defined $LambdaSupport) + { # struct {lambda()} +- $N=~s/(\w){/$1 {/g; ++ $N=~s/(\w)\{/$1 {/g; + } + + return ($Cache{"formatName"}{$_[1]}{$_[0]} = $N); diff --git a/SPECS/abi-dumper.spec b/SPECS/abi-dumper.spec new file mode 100644 index 0000000..16a115d --- /dev/null +++ b/SPECS/abi-dumper.spec @@ -0,0 +1,231 @@ +Name: abi-dumper +Version: 1.2 +Release: 12%{?dist} +Summary: Tool to dump ABI of an ELF object containing DWARF debug info + +License: GPL AND LGPL-2.1-or-later +URL: http://github.com/lvc/abi-dumper/ +Source0: https://github.com/lvc/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: coreutils +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(Cwd) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(Storable) +BuildRequires: perl(strict) +BuildRequires: sed +BuildRequires: txt2man + +Requires: elfutils +Requires: vtable-dumper >= 1.1 + +%{?perl_default_filter} + +%description +A tool to dump ABI of an ELF object containing DWARF debug info. + +The tool is intended to be used with ABI Compliance Checker tool for tracking +ABI changes of a C/C++ library or kernel module. + +%prep +%autosetup -p1 + + +%build +# Nothing to build. + + +%install +mkdir -p %{buildroot}%{_prefix} +%{__perl} Makefile.pl -install --prefix=%{buildroot}%{_prefix} + +chmod 0755 %{buildroot}%{_bindir}/%{name} + +# Create manpage +mkdir -p %{buildroot}%{_mandir}/man1 +%{__perl} abi-dumper.pl --help | sed "s|:$||g" | \ + txt2man -t ABI-DUMPER -s 1 -v "User Commands" -r "ABI Dumper %{version}" > \ + %{buildroot}%{_mandir}/man1/%{name}.1 + + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* + + +%changelog +* Sun Mar 31 2024 MSVSphere Packaging Team - 1.2-12 +- Rebuilt for MSVSphere 9.3 + +* Mon Jan 22 2024 Fedora Release Engineering - 1.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 1.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Apr 07 2023 Richard Shaw - 1.2-9 +- Update license to SPDX format. + +* Wed Jan 18 2023 Fedora Release Engineering - 1.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 1.2-6 +- Perl 5.36 rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1.2-3 +- Perl 5.34 rebuild + +* Mon Jan 25 2021 Fedora Release Engineering - 1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Nov 22 2020 Richard Shaw - 1.2-1 +- Update to 1.2. + +* Mon Jul 27 2020 Fedora Release Engineering - 1.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 1.1-12 +- Perl 5.32 rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 1.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 1.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jul 04 2019 Richard Shaw - 1.1-9 +- Appy patch to fix debuginfo ouput for Fedora 30+, fixes RHBZ#1726719. + +* Thu May 30 2019 Jitka Plesnikova - 1.1-8.1 +- Perl 5.30 rebuild + +* Tue Mar 12 2019 Richard Shaw - 1.1-7.1 +- Actually apply the patch. + +* Mon Mar 11 2019 Richard Shaw - 1.1-7 +- Fix un-escaped left brace, fixex BZ#1685441. + +* Thu Jan 31 2019 Fedora Release Engineering - 1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 1.1-4 +- Perl 5.28 rebuild + +* Thu May 10 2018 Richard Shaw - 1.1-3 +- Add elfutils as a package requirement, fixes 1576565. + +* Wed Feb 07 2018 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 30 2017 Richard Shaw - 1.1-1 +- Update to latest upstream release. + +* Wed Jul 26 2017 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Jun 20 2017 Richard Shaw - 1.0-1 +- Update to latest upstream release. + +* Sun Jun 04 2017 Jitka Plesnikova - 0.99.19-3 +- Perl 5.26 rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.99.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Oct 10 2016 Richard Shaw - 0.99.19-1 +- Update to latest upstream release. + +* Thu Oct 6 2016 Richard Shaw - 0.99.18-1 +- Update to latest upstream release. + +* Fri Aug 26 2016 Richard Shaw - 0.99.17-1 +- Update to latest upstream release. + +* Wed Jul 6 2016 Richard Shaw - 0.99.16-1 +- Update to latest upstream release. + +* Sun May 15 2016 Jitka Plesnikova - 0.99.15-2 +- Perl 5.24 rebuild + +* Sun Mar 13 2016 Richard Shaw - 0.99.15-1 +- Update to latest upstream release. + +* Wed Feb 03 2016 Fedora Release Engineering - 0.99.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jan 25 2016 Richard Shaw - 0.99.14-1 +- Update to latest upstream release. + +* Sat Dec 12 2015 Richard Shaw - 0.99.13-1 +- Update to latest upstream release. + +* Sun Nov 1 2015 Richard Shaw - 0.99.12-1 +- Update to latest upstream release. + +* Sun Oct 18 2015 Richard Shaw - 0.99.11-1 +- Update to latest upstream release. + +* Thu Sep 17 2015 Richard Shaw - 0.99.10-1 +- Update to latest upstream release. + +* Thu Aug 27 2015 Petr Ĺ abata - 0.99.8-6 +- Prevent FTBFS by correcting the build time dependency list + +* Tue Jun 16 2015 Fedora Release Engineering - 0.99.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 03 2015 Jitka Plesnikova - 0.99.8-4 +- Perl 5.22 rebuild + +* Wed Aug 27 2014 Jitka Plesnikova - 0.99.8-3 +- Perl 5.20 rebuild + +* Fri Jun 06 2014 Fedora Release Engineering - 0.99.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Mar 4 2014 Richard Shaw - 0.99.8-1 +- Update to latest upstream release. + +* Sun Oct 27 2013 Richard Shaw - 0.99.7-1 +- Update to latest upstream release. + +* Wed Sep 18 2013 Richard Shaw - 0.99.6-1 +- Update to latest upstream release. + +* Thu Aug 8 2013 Richard Shaw - 0.99.5-1 +- Update to latest upstream release. + +* Wed Jul 31 2013 Richard Shaw - 0.99.1-1 +- Update to latest upstream release with reduced memory usage. + +* Fri Jul 19 2013 Richard Shaw - 0.99-1 +- Update to latest upstream release. + +* Wed Jul 3 2013 Richard Shaw - 0.98-1 +- Initial packaging.