[packages/libipt] - added uninitialized patch to fix -Werror=maybe-uninitialized build failure; release 2
qboosh
qboosh at pld-linux.org
Wed Nov 17 20:43:36 CET 2021
commit 134b3e1fd814fa15901af1bd64ea05b5a6d45704
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Nov 17 20:43:50 2021 +0100
- added uninitialized patch to fix -Werror=maybe-uninitialized build failure; release 2
libipt-uninitialized.patch | 21 +++++++++++++++++++++
libipt.spec | 4 +++-
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/libipt.spec b/libipt.spec
index f90fa2a..0ab2098 100644
--- a/libipt.spec
+++ b/libipt.spec
@@ -8,12 +8,13 @@ Summary: Intel Processor Trace Decoder Library
Summary(pl.UTF-8): Biblioteka dekodera Intel PT (śladów procesora Intel)
Name: libipt
Version: 2.0.4
-Release: 1
+Release: 2
License: BSD
Group: Libraries
#Source0Download: https://github.com/intel/libipt/tags
Source0: https://github.com/intel/libipt/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: cf2c97292dc61ea898dd84b460921f79
+Patch0: %{name}-uninitialized.patch
URL: https://github.com/intel/libipt
BuildRequires: cmake >= 2.8.6
%{?with_xed:BuildRequires: intel-xed-devel}
@@ -63,6 +64,7 @@ Narzędzia Intel PT.
%prep
%setup -q
+%patch0 -p1
%build
install -d build
diff --git a/libipt-uninitialized.patch b/libipt-uninitialized.patch
new file mode 100644
index 0000000..c1376dc
--- /dev/null
+++ b/libipt-uninitialized.patch
@@ -0,0 +1,21 @@
+Avoid build failure with -Werror=maybe-uninitialized
+--- libipt-2.0.1/libipt/test/src/ptunit-msec_cache.c.orig 2019-08-13 10:39:44.000000000 +0200
++++ libipt-2.0.1/libipt/test/src/ptunit-msec_cache.c 2021-11-17 19:14:27.713062249 +0100
+@@ -296,7 +296,7 @@ static struct ptunit_result read(struct
+ static struct ptunit_result fill_nomap(struct test_fixture *tfix)
+ {
+ const struct pt_mapped_section *msec;
+- struct pt_asid asid;
++ struct pt_asid asid = {0, };
+ struct pt_section *section;
+ int status;
+
+@@ -320,7 +320,7 @@ static struct ptunit_result fill(struct
+ {
+ const struct pt_mapped_section *msec;
+ struct pt_section *section;
+- struct pt_asid asid;
++ struct pt_asid asid = {0, };
+ int status;
+
+ status = pt_msec_cache_fill(&tfix->mcache, &msec, &tfix->image, &asid,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libipt.git/commitdiff/134b3e1fd814fa15901af1bd64ea05b5a6d45704
More information about the pld-cvs-commit
mailing list