summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-06 17:28:08 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-06 17:28:08 +0000
commitca4f77cca26ae6cd1c64237d2d4b2385df7c3f18 (patch)
tree2c73d2e2ba309ee74fff805bb8bdc7fe9290f931
parent580238a8ad608b1a39c7a5235a03058ac433e452 (diff)
automatic import of libtraceeventopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--0001-fix-missing-fstack-protector-strong.patch26
-rw-r--r--libtraceevent.spec83
-rw-r--r--sources1
4 files changed, 111 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c5f0e86 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libtraceevent-1.8.4.tar.gz
diff --git a/0001-fix-missing-fstack-protector-strong.patch b/0001-fix-missing-fstack-protector-strong.patch
new file mode 100644
index 0000000..ef85098
--- /dev/null
+++ b/0001-fix-missing-fstack-protector-strong.patch
@@ -0,0 +1,26 @@
+diff --git a/Makefile b/Makefile
+index 41ad866..20ae048 100644
+--- a/Makefile
++++ b/Makefile
+@@ -127,7 +127,7 @@ export LIBTRACEEVENT_STATIC LIBTRACEEVENT_SHARED EP_HEADERS_DIR
+ ifdef EXTRA_CFLAGS
+ CFLAGS := $(EXTRA_CFLAGS)
+ else
+- CFLAGS := -g -Wall
++ CFLAGS := -g -Wall -fstack-protector-strong
+ endif
+
+ LIBS ?= -ldl
+diff --git a/plugins/Makefile b/plugins/Makefile
+index 4c8cb17..56b5646 100644
+--- a/plugins/Makefile
++++ b/plugins/Makefile
+@@ -68,7 +68,7 @@ INCLUDES = -I. -I.. -I../src -I $(srctree)/include -I $(EP_HEADERS_DIR) $(CONFIG
+ ifdef EXTRA_CFLAGS
+ CFLAGS := $(EXTRA_CFLAGS)
+ else
+- CFLAGS := -g -Wall
++ CFLAGS := -g -Wall -fstack-protector-strong
+ endif
+
+ # Append required CFLAGS
diff --git a/libtraceevent.spec b/libtraceevent.spec
new file mode 100644
index 0000000..2679b31
--- /dev/null
+++ b/libtraceevent.spec
@@ -0,0 +1,83 @@
+Name: libtraceevent
+Version: 1.8.4
+Release: 2
+License: LGPLv2+ and GPLv2+
+Summary: Library to parse raw trace event formats
+
+URL: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
+Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-%{version}.tar.gz
+
+Patch0000: 0001-fix-missing-fstack-protector-strong.patch
+
+BuildRequires: gcc
+BuildRequires: xmlto
+BuildRequires: asciidoc
+
+Conflicts: perf < 6.2.0
+
+%global __provides_exclude_from ^%{_libdir}/traceevent/plugins
+
+%description
+libtraceevent is a library to parse raw trace event formats.
+
+%package devel
+Summary: Development headers of %{name}
+Requires: %{name}%{_isa} = %{version}-%{release}
+
+%description devel
+Development headers of %{name}-libs
+
+%prep
+%autosetup -n %{name}-%{version} -p1
+
+%build
+MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
+# Parallel build does not work
+make -O -j1 V=1 VERBOSE=1 CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc
+
+%install
+%make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install
+rm -rf %{buildroot}/%{_libdir}/libtraceevent.a
+
+%files
+%license LICENSES/LGPL-2.1
+%license LICENSES/GPL-2.0
+%{_libdir}/traceevent/
+%{_libdir}/libtraceevent.so.%{version}
+%{_libdir}/libtraceevent.so.1
+%{_mandir}/man3/tep_*.3*
+%{_mandir}/man3/libtraceevent.3*
+%{_mandir}/man3/trace_seq*.3*
+%{_mandir}/man3/kbuffer_*.3*
+%{_docdir}/%{name}-doc
+
+%files devel
+%{_includedir}/traceevent/
+%{_libdir}/libtraceevent.so
+%{_libdir}/pkgconfig/libtraceevent.pc
+
+%changelog
+* Wed Dec 25 2024 xu_ping <707078654@qq.com> - 1.8.4-2
+- add conflict perf version.
+
+* Mon Dec 02 2024 xu_ping <707078654@qq.com> - 1.8.4-1
+- update to 1.8.4
+ * Add meson build targets to Makefile
+ * Close shared object in the error path of load_plugin()
+ * prevent a memory leak in tep_plugin_add_option()
+ * Prevent a memory leak in process_fields()
+
+* Sun Jun 30 2024 shafeipaozi <sunbo.oerv@isrc.iscas.ac.cn> - 1.8.2-1
+- update to 1.8.2
+
+* Thu Jul 13 2023 liyanan <thistleslyn@163.com> - 1.2.1-4
+- Delete confilt with perf when the kernel is greater than 6.2
+
+* Thu Jan 19 2023 yaoxin <yaoxin30@h-partners.com> - 1.2.1-3
+- Add conflict with perf
+
+* Mon Dec 05 2022 xu_ping <xuping33@h-partners.com> - 1.2.1-2
+- Add -fstack-protector-strong compile options
+
+* Fri Jan 14 2022 houyingchao <houyingchao@huawei.com> - 1.2.1-1
+- Init package
diff --git a/sources b/sources
new file mode 100644
index 0000000..7aa6a80
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+938bab0e7d413a4082406a7e9bae471e libtraceevent-1.8.4.tar.gz