Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
8059a9b6c2
!19 revert version to 0.14
From: @renxichen 
Reviewed-by: @zhoupengcheng11, @gaoruoshu 
Signed-off-by: @gaoruoshu
2023-11-14 08:45:18 +00:00
renxichen
0fb8384014 revert version to 0.14 2023-11-14 15:03:47 +08:00
openeuler-ci-bot
00b068a947
!18 upgrade version to 0.15
From: @renxichen 
Reviewed-by: @znzjugod, @hubin95 
Signed-off-by: @hubin95
2023-10-31 01:58:27 +00:00
renxichen
f2e1dec7ab upgrade version to 0.15 2023-10-24 11:39:15 +08:00
openeuler-ci-bot
1a9a4436ea
!13 【轻量级 PR】:rebuild for next release
From: @markeryang 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-11-03 02:57:17 +00:00
Markeryang
5034570f73
update for mass rebuild and upgrade verification 2022-11-02 08:13:59 +00:00
openeuler-ci-bot
ff03e4c19a
!10 add gdb to buildrequires for testsuite
From: @renxichen 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-03-08 03:17:18 +00:00
rwx403335
68722f904b add gdb to buildrequires for testcase 2022-03-08 10:08:43 +08:00
openeuler-ci-bot
8870d0f0c7
!7 bugfix testcase by adding gcc-c++ to buildrequires
Merge pull request !7 from renxichen/openEuler-22.03-LTS-Next
2022-01-11 01:23:07 +00:00
rwx403335
16611e51af bugfix testcase 2022-01-11 08:58:39 +08:00
2 changed files with 85 additions and 3 deletions

View File

@ -1,11 +1,14 @@
Name: dwz
Version: 0.14
Release: 1
Release: 4
Summary: A DWARF optimization and duplicate removal tool
License: GPLv2+ and GPLv3+
URL: https://sourceware.org/dwz/
Source0:https://sourceware.org/ftp/dwz/releases/%{name}-%{version}.tar.xz
BuildRequires:gcc elfutils-libelf-devel dejagnu
Patch1: testsuite-Handle-readelf-following-links-by-default.patch
BuildRequires:gcc elfutils-libelf-devel dejagnu gcc-c++ gdb
%description
The package contains a program that attempts to optimize DWARF debugging
@ -19,7 +22,7 @@ using DW_TAG_imported_unit to import it into each CU that needs it.
%package_help
%prep
%autosetup -n %{name}
%autosetup -n %{name} -p1
%build
make %{?_smp_mflags} CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
@ -51,6 +54,27 @@ make check
%{_mandir}/man1/dwz*
%changelog
* Tue Nov 14 2023 renhongxun <renhongxun@h-partners.com> - 0.14-4
- revert version to 0.14
* Tue Oct 24 2023 renhongxun <renhongxun@h-partners.com> - 0.15-1
- upgrade version to 0.15
* Tue Oct 25 2022 yanglongkang <yanglongkang@h-partners.com> - 0.14-4
- rebuild for next release
* Mon Mar 07 2022 renhongxun <renhongxun@h-partners.com> - 0.14-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add buildrequires for testcase
* Mon Jan 10 2022 renhongxun <renhongxun@huawei.com> - 0.14-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:bugfix testcase
* Sat Jul 24 2021 shixuantong <shixuantong@huawei.com> - 0.14-1
- Type:bugfix
- ID:NA

View File

@ -0,0 +1,58 @@
From b1f26dc76158e1f3364836d8b540b17a7a1ccb3d Mon Sep 17 00:00:00 2001
From: Tom de Vries <tdevries@suse.de>
Date: Sat, 20 Mar 2021 09:37:31 +0100
Subject: [PATCH] [testsuite] Handle readelf following links by default
Since binutils commit c46b706620e "Change the readelf and objdump programs so
that they will automatically follow links to separate debug info files" there
are a few FAILs in the dwz testsuite.
This is just due to changing the default behaviour for readelf.
Fix this by testing whether the new -Wn readelf flag is supported,
and if so, adding it to the readelf call.
2021-03-20 Tom de Vries <tdevries@suse.de>
PR dwz/27592
* testsuite/dwz.tests/odr-struct-multifile.sh: Call readelf with -wN
if supported.
* testsuite/dwz.tests/cycle.sh: Same.
---
testsuite/dwz.tests/odr-struct-multifile.sh | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/testsuite/dwz.tests/odr-struct-multifile.sh b/testsuite/dwz.tests/odr-struct-multifile.sh
index cc462c9..20b682b 100644
--- a/testsuite/dwz.tests/odr-struct-multifile.sh
+++ b/testsuite/dwz.tests/odr-struct-multifile.sh
@@ -2,6 +2,11 @@ if ! $execs/dwz-for-test --odr -v 2>/dev/null; then
exit 77
fi
+readelf_flags=""
+if readelf -h 2>&1 | grep -q "\-wN"; then
+ readelf_flags=-wN
+fi
+
cp $execs/odr-struct 1
cp 1 2
@@ -41,12 +46,12 @@ done
for name in aaa bbb ccc; do
- cnt=$(readelf -wi 1 | grep -c "DW_AT_name.*:.*$name" || true)
+ cnt=$(readelf -wi $readelf_flags 1 | grep -c "DW_AT_name.*:.*$name" || true)
[ $cnt -eq 0 ]
done
for name in member_one member_two member_three member_four; do
- cnt=$(readelf -wi 1 | grep -c "DW_AT_name.*:.*$name" || true)
+ cnt=$(readelf -wi $readelf_flags 1 | grep -c "DW_AT_name.*:.*$name" || true)
[ $cnt -eq 0 ]
done
--
1.8.3.1