public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: [dts60+el7] [x86*] Bundle libipt (RH BZ 1256513).
Date: Sat, 27 Jun 2026 23:57:44 GMT [thread overview]
Message-ID: <178260466414.1.2963244303101351053.rpms-gdb-1d224e61d822@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 1d224e61d8227a342eea02918df4e0c810f27a0c
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date : 2016-08-17T23:48:10+02:00
Stats : +56/-2 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/1d224e61d8227a342eea02918df4e0c810f27a0c?branch=gdb-17.2-rebase-f44
Log:
[dts60+el7] [x86*] Bundle libipt (RH BZ 1256513).
---
diff --git a/.gitignore b/.gitignore
index dbb15cb..d17dbf5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/gdb-libstdc++-v3-python-r225521.tar.xz
+/v1.5.tar.gz
/gdb-7.11.1.tar.xz
diff --git a/gdb.spec b/gdb.spec
index 3f68e51..7325dfb 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -27,7 +27,7 @@ Version: 7.11.1
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 77%{?dist}
+Release: 78%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
Group: Development/Debuggers
@@ -128,6 +128,11 @@ Source5: %{libstdcxxpython}.tar.xz
# Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
Source6: gdbtui
+# libipt: Intel Processor Trace Decoder Library
+%global libipt_version 1.5
+Source7: v%{libipt_version}.tar.gz
+Patch1142: v1.5-libipt-static.patch
+
# Work around out-of-date dejagnu that does not have KFAIL
#=drop: That dejagnu is too old to be supported.
Patch1: gdb-6.3-rh-dummykfail-20041202.patch
@@ -619,12 +624,18 @@ BuildRequires: libbabeltrace-devel%{buildisa}
BuildRequires: guile-devel%{buildisa}
%endif
%global have_libipt 0
-%if 0%{!?rhel:1} || 0%{?rhel} > 7
+%if 0%{!?rhel:1} || 0%{?rhel} > 7 || (0%{?rhel} == 7 && 0%{?scl:1})
%ifarch %{ix86} x86_64
%global have_libipt 1
+%if 0%{?scl:1}
+BuildRequires: cmake
+# RHEL-7.3 kernel Bug 1270539
+BuildRequires: kernel-headers >= 3.10.0-352.el7
+%else
BuildRequires: libipt-devel%{buildisa}
%endif
%endif
+%endif
%if 0%{?_with_testsuite:1}
@@ -755,6 +766,14 @@ This package provides INFO, HTML and PDF user manual for GDB.
tar xJf %{SOURCE5}
%endif # 0%{?rhel:1} && 0%{?rhel} <= 7
+%if 0%{have_libipt} && 0%{?scl:1}
+tar xzf %{SOURCE7}
+(
+ cd processor-trace-%{libipt_version}
+%patch1142 -p1
+)
+%endif
+
# Files have `# <number> <file>' statements breaking VPATH / find-debuginfo.sh .
(cd gdb;rm -fv $(perl -pe 's/\\\n/ /' <Makefile.in|sed -n 's/^YYFILES = //p'))
@@ -970,6 +989,25 @@ CFLAGS="$CFLAGS -DNEED_RL_STATE_FEDORA_GDB"
CFLAGS="$CFLAGS -DNEED_DETACH_SIGSTOP"
%endif
+%if 0%{have_libipt} && 0%{?scl:1}
+(
+ mkdir processor-trace-%{libipt_version}-root
+ mkdir processor-trace-%{libipt_version}-build
+ cd processor-trace-%{libipt_version}-build
+ # -DPTUNIT:BOOL=ON has no effect on ctest.
+ %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DPTUNIT:BOOL=OFF \
+ -DDEVBUILD:BOOL=ON \
+ ../../processor-trace-%{libipt_version}
+ make VERBOSE=1 %{?_smp_mflags}
+ ctest -V %{?_smp_mflags}
+ make install DESTDIR=../processor-trace-%{libipt_version}-root
+)
+# There is also: --with-libipt-prefix
+CFLAGS="$CFLAGS -I$PWD/processor-trace-%{libipt_version}-root%{_includedir}"
+LDFLAGS="$LDFLAGS -L$PWD/processor-trace-%{libipt_version}-root%{_libdir}"
+%endif
+
# --htmldir and --pdfdir are not used as they are used from %{gdb_build}.
../configure \
--prefix=%{_prefix} \
@@ -1412,6 +1450,9 @@ then
fi
%changelog
+* Wed Aug 17 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.11.1-78.fc24
+- [dts60+el7] [x86*] Bundle libipt (RH BZ 1256513).
+
* Wed Aug 3 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.11.1-77.fc24
- [aarch64] Fix ARMv8.1/v8.2 for hw watchpoint and breakpoint
(Andrew Pinski, RH BZ 1363635).
diff --git a/sources b/sources
index 26478eb..c03498c 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
7ad32d3894aaf90d00a4343a735c3e1c gdb-libstdc++-v3-python-r225521.tar.xz
+29efc08219d9d6a0536d58f9807c8722 v1.5.tar.gz
5aa71522e488e358243917967db87476 gdb-7.11.1.tar.xz
diff --git a/v1.5-libipt-static.patch b/v1.5-libipt-static.patch
new file mode 100644
index 0000000..93bc0f8
--- /dev/null
+++ b/v1.5-libipt-static.patch
@@ -0,0 +1,11 @@
+--- processor-trace-1.5/libipt/CMakeLists.txt-orig 2016-04-07 08:52:14.000000000 +0200
++++ processor-trace-1.5/libipt/CMakeLists.txt 2016-08-17 23:12:23.241109244 +0200
+@@ -81,7 +81,7 @@ endif (CMAKE_HOST_WIN32)
+
+ set(LIBIPT_FILES ${LIBIPT_FILES} ${LIBIPT_SECTION_FILES})
+
+-add_library(libipt SHARED
++add_library(libipt STATIC
+ ${LIBIPT_FILES}
+ )
+
reply other threads:[~2026-06-27 23:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178260466414.1.2963244303101351053.rpms-gdb-1d224e61d822@fedoraproject.org \
--to=jan.kratochvil@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox