Compare commits
10 Commits
7a5f396d1f
...
90139aa182
Author | SHA1 | Date |
---|---|---|
Michael Petlan | 90139aa182 | |
Michael Petlan | 7f3fa6c293 | |
Michael Petlan | ad49eaccff | |
Michael Petlan | 3b89f9d836 | |
Jerome Marchand | da5db2aa83 | |
Jerome Marchand | 7869a7598a | |
Mohan Boddu | 71f1ca019c | |
Qiao Zhao | c18cbbdc50 | |
Michael Petlan | bec72de4b3 | |
Jerome Marchand | d2909581c8 |
|
@ -1 +1,2 @@
|
||||||
/libtraceevent-1.1.1.tar.gz
|
/libtraceevent-1.1.1.tar.gz
|
||||||
|
/libtraceevent-1.5.3.tar.gz
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
72d2ca781728169d9b17679b890f496d4c303040 libtraceevent-1.5.3.tar.gz
|
|
@ -0,0 +1,6 @@
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
@ -4,8 +4,8 @@
|
||||||
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
|
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
|
||||||
|
|
||||||
Name: libtraceevent
|
Name: libtraceevent
|
||||||
Version: 1.1.1
|
Version: 1.5.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: LGPLv2+ and GPLv2+
|
License: LGPLv2+ and GPLv2+
|
||||||
Summary: Library to parse raw trace event formats
|
Summary: Library to parse raw trace event formats
|
||||||
|
|
||||||
|
@ -16,11 +16,10 @@ URL: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
|
||||||
# git archive --prefix=libtraceevent-%%{version}/ -o libtraceevent-%%{version}.tar.gz %%{git_commit}
|
# git archive --prefix=libtraceevent-%%{version}/ -o libtraceevent-%%{version}.tar.gz %%{git_commit}
|
||||||
#Source0: libtraceevent-%%{version}.tar.gz
|
#Source0: libtraceevent-%%{version}.tar.gz
|
||||||
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-%{version}.tar.gz
|
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
# The libtraceevent is meant to be used by perf, trace-cmd etc. in the future, before it's ready in perf, let's add a conflict
|
|
||||||
Conflicts: perf
|
|
||||||
|
|
||||||
%global __provides_exclude_from ^%{_libdir}/traceevent/plugins
|
%global __provides_exclude_from ^%{_libdir}/traceevent/plugins
|
||||||
|
|
||||||
|
@ -36,14 +35,21 @@ Requires: %{name}%{_isa} = %{version}-%{release}
|
||||||
Development headers of %{name}-libs
|
Development headers of %{name}-libs
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
|
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
%make_build prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc
|
#looks like CFLAGS is ignored when compiling plugins, but not EXTRA_CFLAGS
|
||||||
|
export EXTRA_CFLAGS="%{optflags}"
|
||||||
|
export LDFLAGS="-Wl,-z,now"
|
||||||
|
make -O -j1 V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%set_build_flags
|
||||||
|
#looks like CFLAGS is ignored when compiling plugins, but not EXTRA_CFLAGS
|
||||||
|
export EXTRA_CFLAGS="%{optflags}"
|
||||||
|
export LDFLAGS="-Wl,-z,now"
|
||||||
%make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install
|
%make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install
|
||||||
rm -rf %{buildroot}/%{_libdir}/libtraceevent.a
|
rm -rf %{buildroot}/%{_libdir}/libtraceevent.a
|
||||||
|
|
||||||
|
@ -64,6 +70,38 @@ rm -rf %{buildroot}/%{_libdir}/libtraceevent.a
|
||||||
%{_libdir}/pkgconfig/libtraceevent.pc
|
%{_libdir}/pkgconfig/libtraceevent.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 19 2022 Michael Petlan <mpetlan@redhat.com> - 1.5.3-3
|
||||||
|
- Rebuild due to broken brew build again, disable parallel build
|
||||||
|
Related: rhbz#2134397
|
||||||
|
|
||||||
|
* Fri Oct 14 2022 Michael Petlan <mpetlan@redhat.com> - 1.5.3-2
|
||||||
|
- Rebuild due to broken brew environment
|
||||||
|
Related: rhbz#2134397
|
||||||
|
|
||||||
|
* Tue Aug 30 2022 Michael Petlan <mpetlan@redhat.com> - 1.5.3-1
|
||||||
|
- Rebase to v1.5.3
|
||||||
|
Related: rhbz#2075213
|
||||||
|
|
||||||
|
* Fri Jan 14 2022 Michael Petlan <mpetlan@redhat.com> - 1.1.1-8
|
||||||
|
- Harden linking to meet annocheck requirements
|
||||||
|
Related: rhbz#2037125
|
||||||
|
|
||||||
|
* Fri Nov 19 2021 Jerome Marchand <jmarchan@redhat.com> - 1.1.1-7
|
||||||
|
- Fix rpminspect annocheck issue.
|
||||||
|
|
||||||
|
* Tue Oct 26 2021 Jerome Marchand <jmarchan@redhat.com> - 1.1.1-6
|
||||||
|
- Handle parsing of "(REC)->" case
|
||||||
|
|
||||||
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-5
|
||||||
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
|
Related: rhbz#1991688
|
||||||
|
|
||||||
|
* Thu May 6 2021 Michael Petlan <mpetlan@redhat.com> - 1.1.1-4
|
||||||
|
- Remove conflict to enable perf linking. Resolves: rhbz#1957733
|
||||||
|
|
||||||
|
* Wed Apr 21 2021 Jerome Marchand <jmarchan@redhat.com> - 1.1.1-3
|
||||||
|
- Multi-build with libtracefs, trace-cmd and kernelshark
|
||||||
|
|
||||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-2
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-2
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
||||||
SHA512 (libtraceevent-1.1.1.tar.gz) = 659f4666c987514d9b101761203a61fe2d0fc9c7d6d7236e6cb84962bc7a8a0ac80e4b0a2d95c721f453f25327bef5b9e4104b30324b48e459dd1b455550d90e
|
SHA512 (libtraceevent-1.5.3.tar.gz) = 87cd8dbb51603e6d9f7fbc42f62175b4a1837d26bcfd187ac37afadfd34e7387d24322aaa6ac8e635755e905a4521a8a1b6c099dc983f5b248a1aefcd4a6f261
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
if rpm -q --quiet libtraceevent; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
sudo dnf install -y libtraceevent
|
||||||
|
if [[ $? != 0 ]]; then
|
||||||
|
echo "install of libtraceevent failed!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "libtraceevent is a library to parse raw trace event formats. Check installation."
|
||||||
|
if [[ ! -f /usr/lib64/libtraceevent.so.1 ]]; then
|
||||||
|
echo "/usr/lib64/libtraceevent.so.1 not found!"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Check the trace-cmd works."
|
||||||
|
if ! rpm -q --quiet trace-cmd; then
|
||||||
|
sudo dnf install -y trace-cmd
|
||||||
|
if [[ $? != 0 ]]; then
|
||||||
|
echo "install trace-cmd failed when libtraceevent exist!"
|
||||||
|
exit 3
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
trace-cmd list || exit 4
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tests:
|
||||||
|
- simple:
|
||||||
|
dir: scripts
|
||||||
|
run: ./run_tests.sh
|
||||||
|
required_packages:
|
||||||
|
- libtraceevent trace-cmd
|
Loading…
Reference in New Issue