Compare commits
No commits in common. "c8-stream-rhel8" and "imports/c8-stream-rhel8/lldb-7.0.1-2.module+el8+2589+a06d5ff1" have entirely different histories.
c8-stream-
...
imports/c8
|
@ -1,2 +1 @@
|
||||||
SOURCES/lldb-17.0.6.src.tar.xz
|
SOURCES/lldb-7.0.1.src.tar.xz
|
||||||
SOURCES/lldb-17.0.6.src.tar.xz.sig
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
fc7260e1768ad2ee3b9d5a91d90d17e58e20df14 SOURCES/lldb-17.0.6.src.tar.xz
|
6286b90b2762404baee55a69a2a7e9ed0fce58a2 SOURCES/lldb-7.0.1.src.tar.xz
|
||||||
fe7372c59ada760ed06814ed92c24c47fb2a055d SOURCES/lldb-17.0.6.src.tar.xz.sig
|
|
||||||
|
|
|
@ -0,0 +1,165 @@
|
||||||
|
From 660490d17fa1c649a7ad86da4a197c91090ce97a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Stellard <tstellar@redhat.com>
|
||||||
|
Date: Wed, 3 Oct 2018 15:44:30 -0700
|
||||||
|
Subject: [PATCH] Convert symbolication.py to python3 using 2to3
|
||||||
|
|
||||||
|
---
|
||||||
|
examples/python/symbolication.py | 70 ++++++++++++++++++++--------------------
|
||||||
|
1 file changed, 35 insertions(+), 35 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/examples/python/symbolication.py b/examples/python/symbolication.py
|
||||||
|
index b655ad0..313d724 100755
|
||||||
|
--- a/examples/python/symbolication.py
|
||||||
|
+++ b/examples/python/symbolication.py
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
import lldb
|
||||||
|
-import commands
|
||||||
|
+import subprocess
|
||||||
|
import optparse
|
||||||
|
import os
|
||||||
|
import plistlib
|
||||||
|
@@ -203,13 +203,13 @@ class Section:
|
||||||
|
if op == '+':
|
||||||
|
self.end_addr += self.start_addr
|
||||||
|
return True
|
||||||
|
- print 'error: invalid section info string "%s"' % s
|
||||||
|
- print 'Valid section info formats are:'
|
||||||
|
- print 'Format Example Description'
|
||||||
|
- print '--------------------- -----------------------------------------------'
|
||||||
|
- print '<name>=<base> __TEXT=0x123000 Section from base address only'
|
||||||
|
- print '<name>=<base>-<end> __TEXT=0x123000-0x124000 Section from base address and end address'
|
||||||
|
- print '<name>=<base>+<size> __TEXT=0x123000+0x1000 Section from base address and size'
|
||||||
|
+ print('error: invalid section info string "%s"' % s)
|
||||||
|
+ print('Valid section info formats are:')
|
||||||
|
+ print('Format Example Description')
|
||||||
|
+ print('--------------------- -----------------------------------------------')
|
||||||
|
+ print('<name>=<base> __TEXT=0x123000 Section from base address only')
|
||||||
|
+ print('<name>=<base>-<end> __TEXT=0x123000-0x124000 Section from base address and end address')
|
||||||
|
+ print('<name>=<base>+<size> __TEXT=0x123000+0x1000 Section from base address and size')
|
||||||
|
return False
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
@@ -261,21 +261,21 @@ class Image:
|
||||||
|
return obj
|
||||||
|
|
||||||
|
def dump(self, prefix):
|
||||||
|
- print "%s%s" % (prefix, self)
|
||||||
|
+ print("%s%s" % (prefix, self))
|
||||||
|
|
||||||
|
def debug_dump(self):
|
||||||
|
- print 'path = "%s"' % (self.path)
|
||||||
|
- print 'resolved_path = "%s"' % (self.resolved_path)
|
||||||
|
- print 'resolved = %i' % (self.resolved)
|
||||||
|
- print 'unavailable = %i' % (self.unavailable)
|
||||||
|
- print 'uuid = %s' % (self.uuid)
|
||||||
|
- print 'section_infos = %s' % (self.section_infos)
|
||||||
|
- print 'identifier = "%s"' % (self.identifier)
|
||||||
|
- print 'version = %s' % (self.version)
|
||||||
|
- print 'arch = %s' % (self.arch)
|
||||||
|
- print 'module = %s' % (self.module)
|
||||||
|
- print 'symfile = "%s"' % (self.symfile)
|
||||||
|
- print 'slide = %i (0x%x)' % (self.slide, self.slide)
|
||||||
|
+ print('path = "%s"' % (self.path))
|
||||||
|
+ print('resolved_path = "%s"' % (self.resolved_path))
|
||||||
|
+ print('resolved = %i' % (self.resolved))
|
||||||
|
+ print('unavailable = %i' % (self.unavailable))
|
||||||
|
+ print('uuid = %s' % (self.uuid))
|
||||||
|
+ print('section_infos = %s' % (self.section_infos))
|
||||||
|
+ print('identifier = "%s"' % (self.identifier))
|
||||||
|
+ print('version = %s' % (self.version))
|
||||||
|
+ print('arch = %s' % (self.arch))
|
||||||
|
+ print('module = %s' % (self.module))
|
||||||
|
+ print('symfile = "%s"' % (self.symfile))
|
||||||
|
+ print('slide = %i (0x%x)' % (self.slide, self.slide))
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
s = ''
|
||||||
|
@@ -428,12 +428,12 @@ class Image:
|
||||||
|
if self.has_section_load_info():
|
||||||
|
err = self.load_module(target)
|
||||||
|
if err:
|
||||||
|
- print 'ERROR: ', err
|
||||||
|
+ print('ERROR: ', err)
|
||||||
|
return target
|
||||||
|
else:
|
||||||
|
- print 'error: unable to create a valid target for (%s) "%s"' % (self.arch, self.path)
|
||||||
|
+ print('error: unable to create a valid target for (%s) "%s"' % (self.arch, self.path))
|
||||||
|
else:
|
||||||
|
- print 'error: unable to locate main executable (%s) "%s"' % (self.arch, self.path)
|
||||||
|
+ print('error: unable to locate main executable (%s) "%s"' % (self.arch, self.path))
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
@@ -554,7 +554,7 @@ class Symbolicator:
|
||||||
|
if symbolicated_addresses:
|
||||||
|
return symbolicated_addresses
|
||||||
|
else:
|
||||||
|
- print 'error: no target in Symbolicator'
|
||||||
|
+ print('error: no target in Symbolicator')
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
@@ -602,22 +602,22 @@ def disassemble_instructions(
|
||||||
|
end_idx = inst_idx
|
||||||
|
for i in range(start_idx, end_idx + 1):
|
||||||
|
if i == pc_index:
|
||||||
|
- print ' -> ', lines[i]
|
||||||
|
+ print(' -> ', lines[i])
|
||||||
|
else:
|
||||||
|
- print ' ', lines[i]
|
||||||
|
+ print(' ', lines[i])
|
||||||
|
|
||||||
|
|
||||||
|
def print_module_section_data(section):
|
||||||
|
- print section
|
||||||
|
+ print(section)
|
||||||
|
section_data = section.GetSectionData()
|
||||||
|
if section_data:
|
||||||
|
ostream = lldb.SBStream()
|
||||||
|
section_data.GetDescription(ostream, section.GetFileAddress())
|
||||||
|
- print ostream.GetData()
|
||||||
|
+ print(ostream.GetData())
|
||||||
|
|
||||||
|
|
||||||
|
def print_module_section(section, depth):
|
||||||
|
- print section
|
||||||
|
+ print(section)
|
||||||
|
if depth > 0:
|
||||||
|
num_sub_sections = section.GetNumSubSections()
|
||||||
|
for sect_idx in range(num_sub_sections):
|
||||||
|
@@ -632,7 +632,7 @@ def print_module_sections(module, depth):
|
||||||
|
|
||||||
|
def print_module_symbols(module):
|
||||||
|
for sym in module:
|
||||||
|
- print sym
|
||||||
|
+ print(sym)
|
||||||
|
|
||||||
|
|
||||||
|
def Symbolicate(command_args):
|
||||||
|
@@ -709,17 +709,17 @@ def Symbolicate(command_args):
|
||||||
|
|
||||||
|
target = symbolicator.create_target()
|
||||||
|
if options.verbose:
|
||||||
|
- print symbolicator
|
||||||
|
+ print(symbolicator)
|
||||||
|
if target:
|
||||||
|
for addr_str in args:
|
||||||
|
addr = int(addr_str, 0)
|
||||||
|
symbolicated_addrs = symbolicator.symbolicate(
|
||||||
|
addr, options.verbose)
|
||||||
|
for symbolicated_addr in symbolicated_addrs:
|
||||||
|
- print symbolicated_addr
|
||||||
|
- print
|
||||||
|
+ print(symbolicated_addr)
|
||||||
|
+ print()
|
||||||
|
else:
|
||||||
|
- print 'error: no target for %s' % (symbolicator)
|
||||||
|
+ print('error: no target for %s' % (symbolicator))
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
# Create a new debugger instance
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
From c0e0fdd99c372096a4e018d57443f2d842bb510a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tom Stellard <tstellar@redhat.com>
|
|
||||||
Date: Fri, 28 Apr 2023 15:42:55 -0700
|
|
||||||
Subject: [PATCH] lldb: Disable std vector pretty printer
|
|
||||||
|
|
||||||
---
|
|
||||||
lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp | 5 -----
|
|
||||||
1 file changed, 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
|
|
||||||
index 1b152c16eac2..a2b7aa4672bf 100644
|
|
||||||
--- a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
|
|
||||||
+++ b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
|
|
||||||
@@ -1089,11 +1089,6 @@ static void LoadLibStdcppFormatters(lldb::TypeCategoryImplSP cpp_category_sp) {
|
|
||||||
SyntheticChildren::Flags stl_deref_flags = stl_synth_flags;
|
|
||||||
stl_deref_flags.SetFrontEndWantsDereference();
|
|
||||||
|
|
||||||
- cpp_category_sp->AddTypeSynthetic(
|
|
||||||
- "^std::vector<.+>(( )?&)?$", eFormatterMatchRegex,
|
|
||||||
- SyntheticChildrenSP(new ScriptedSyntheticChildren(
|
|
||||||
- stl_synth_flags,
|
|
||||||
- "lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider")));
|
|
||||||
cpp_category_sp->AddTypeSynthetic(
|
|
||||||
"^std::map<.+> >(( )?&)?$", eFormatterMatchRegex,
|
|
||||||
SyntheticChildrenSP(new ScriptedSyntheticChildren(
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
|
@ -1,104 +0,0 @@
|
||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
|
||||||
|
|
||||||
mQGNBGLtemUBDADClvDIromq0Y4TX+wyRyYCq5WusPQheQuY8dVCXd9KhMpYAv8U
|
|
||||||
X15E5boH/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WW0+CwT9cRwWn5foIPJhoDdZ732zJ7rcY3R
|
|
||||||
g71SJTe3R6MnGBzIF1LzT7Znwkh7YfcmeTfInareIWXpeNaeKy8KrQmr/0+5AIer
|
|
||||||
Ax1gu03o8GD5LFDUuGbESgDJU6nVtVyht7C6AlJWqSX6QS3+lPCw5BOCKbxakYNR
|
|
||||||
/oBNauzyDISdbUwzHM2d+XGCjBsXKRA0Tft2NlG6EC83/PuY2J9MSA2gg3iPHsiN
|
|
||||||
J5iipbdZNpZ3XL0l8/t/7T60nM7UZDqt3twLMA0eRFRlCnhMjvFE5Zgj5DE7BsJh
|
|
||||||
w2nCoGWkAcfeuih+jfyEjN24NK+sE/bM+krwVv430ewJwm1bVUqKrbOb9aa6V9gP
|
|
||||||
9RmlwZlOTFGcWBYl/cfRONn9qi9a6w==
|
|
||||||
=Lvw+
|
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
|
||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
|
||||||
|
|
||||||
mQINBFrqgT0BEAC7xo0WH+eNrLlU5LrCk59KmImn1abFcmWNd8kYr5XfqmJKyVqo
|
|
||||||
EY7A/yRjf+Yn1621EDkpKPjbql7q7MlZMpqKVdOWKWgmhvz08IOKJxaIABd/iIRT
|
|
||||||
FwhIvB68YjtmzcoOJRi1wLnwuG55fJ9E69HyZ33jgAlRaWV3bE/YyszoTlZriUOE
|
|
||||||
RbzC5WzX004cE9evlrr+YLt5Y6z7tntOdSXPLyGOFAO5LYMsHsEdi2JBYWrjlslG
|
|
||||||
6iJr5iEt9v442PrJ79YYbu5QWe/6APRWtI3AtKBp7y250oon2lbj+bIVD7U9fOBB
|
|
||||||
n/Frqx54UN22sJycET63hgYW4pIjIi5zq+FF15aU+ZqBdtNltoX4hEN7wlDpuNc0
|
|
||||||
ezVu2Z8hdt8thpjiFUioTQ1t3RmsN6N548VwxmHdoYpAmiZqPIYBYvm85JB7S/3h
|
|
||||||
RLuoeGxufBhXGCpnG8ghTOGtbbdanuLB/UROFXTdyZbTCBN5S6jvwkPSaHG7H35Z
|
|
||||||
3fazMriTXwL1RGAbKITSWhDe5dXy/yOInWe8emJx+35vwQYCB2L4S8wRyQyRw6x4
|
|
||||||
YoXCscW041DUMBX2CC7SjMCcmAC39UX1c3GbTpS3rkJR9cmXt50nviMnKpIwlIPd
|
|
||||||
ZYhmxKifwTJ70+c4GVK2o0MG9bTYvpYhLnYxv6iJCfgmT40E+qkDSzSoZwARAQAB
|
|
||||||
tCJUb20gU3RlbGxhcmQgPHRzdGVsbGFyQHJlZGhhdC5jb20+iQI/BBMBAgApBQJa
|
|
||||||
6oE9AhsDBQkB4TOABwsJCAcDAgEGFQgCCQoLBBYCAwECHgECF4AACgkQoseUqYZB
|
|
||||||
nYp8Gg//RmX6Nup/Dv05jTL7dKRBSD08MF400tRtTmRhIuAgGv27qO2hbqzprKVu
|
|
||||||
vd20vKBB9CNZpXC2oY8k9VhGv2PZNi/X7iuULIYmzjeFMbJ5CjU6XvuUBmNasITH
|
|
||||||
6K/0KLhGebPs5h/DNtd7lbzDm86dLcjxgl6LXUULaSyYvTAKn6YB6mAv5J3qJs2X
|
|
||||||
lfTmenNh9p7TPFTfcMHcS70ywjqKXlDiH0q9bRKJnSX7xUFlTHjKkNnAcRjlPaGf
|
|
||||||
wUUhIPrnpDboqfwfcmScLrHANW9nwFWSFkNAJu1HQUEuF+An/RZUHDxFbLPKKAIp
|
|
||||||
hwZ0aORTfBVZ80AjehDMYCbmp1DJeTyLjC1/94un6mlxPIKnPPPM8rMxr83xnrvP
|
|
||||||
+Y1+pJaDUL7ZvKnmt2LrGRa9GvsNiYKpCNCORfiwZTeSxxXb+LgaodnbCHvGBnk7
|
|
||||||
nlbLdMY08vNlxSx8LNyG0krFxJw/rq260+73yc+qjENeG68fozTEy/4jSVrF4t3m
|
|
||||||
8AAUu5r6i/Aomo7Q27TjU928bbCVunpvDpserfDqr3zsA96LO9k8T6THR6zC9i+R
|
|
||||||
LiN9Vjl+Rr2Yu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SIm6+j8f+a9HPOuuDc62mMuV/EWQZy0i7
|
|
||||||
DhDqU2PNpVjQDWQNpHA8oLDrjNFAoJS8gbHABVsFM1VnwBNT2MKcZQmm05dlQ+ll
|
|
||||||
S6meHNCvTniKIKC+Giz1Yd5JVGDACZWWPxEz6VhpQW/twkxRqwlUdpFt7UgDquTL
|
|
||||||
M1beQUCZRt81yJTNdrggbhQ2POxOdIO0CPiQv7U1IzndZp6baedeBw4a7FCbj6GY
|
|
||||||
cQeHxQCrWpQrwigiseG5uhhS9aiaVFEHja9baSLfXlZu/vsR4MdDG5/iEpier/Xw
|
|
||||||
h1qnpTSY+r31Uw3lTUlPHzlg47PMgPslaIhCzfVggxh9bTqxcDbuYJ7NuoMho3tN
|
|
||||||
yWfeofTJ7PhKzoXM2Y/rRFoM5gNh1RVA19ngLT5Jwiof8fPZvHJ/9ZkHn+O7eMNm
|
|
||||||
m5++gYza3pnn2/PoGpGGAKok+sfJiq5Tb7RUefyJTeZiyTZ/XJrA
|
|
||||||
=tMzl
|
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
|
180
SPECS/lldb.spec
180
SPECS/lldb.spec
|
@ -1,43 +1,20 @@
|
||||||
# Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
|
%global enable_python 1
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2158587
|
|
||||||
%undefine _include_frame_pointers
|
|
||||||
|
|
||||||
%global lldb_version 17.0.6
|
|
||||||
#global rc_ver 4
|
|
||||||
%global lldb_srcdir %{name}-%{lldb_version}%{?rc_ver:rc%{rc_ver}}.src
|
|
||||||
|
|
||||||
%ifarch ppc64le
|
|
||||||
# Too many threads on some systems causes OOM errors.
|
|
||||||
%global _smp_mflags -j8
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: lldb
|
Name: lldb
|
||||||
Version: %{lldb_version}%{?rc_ver:~rc%{rc_ver}}
|
Version: 7.0.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Next generation high-performance debugger
|
Summary: Next generation high-performance debugger
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
URL: http://lldb.llvm.org/
|
URL: http://lldb.llvm.org/
|
||||||
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{lldb_version}%{?rc_ver:-rc%{rc_ver}}/%{lldb_srcdir}.tar.xz
|
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src.tar.xz
|
||||||
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{lldb_version}%{?rc_ver:-rc%{rc_ver}}/%{lldb_srcdir}.tar.xz.sig
|
|
||||||
Source2: release-keys.asc
|
|
||||||
|
|
||||||
# There is a problem with the debug info generated by the
|
ExclusiveArch: %{arm} aarch64 %{ix86} x86_64
|
||||||
# GCC version we ship in RHEL 8. It somehow makes it very
|
|
||||||
# hard for lldb to inspect std::vector types.
|
Patch0: 0001-Convert-symbolication.py-to-python3-using-2to3.patch
|
||||||
# Disable the pretty-printer for now, since otherwise
|
|
||||||
# such vectors look empty to the developer even though
|
|
||||||
# they aren't.
|
|
||||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=2082508
|
|
||||||
Patch002: 0001-lldb-Disable-std-vector-pretty-printer.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: ninja-build
|
|
||||||
BuildRequires: llvm-devel = %{version}
|
BuildRequires: llvm-devel = %{version}
|
||||||
BuildRequires: llvm-test = %{version}
|
|
||||||
BuildRequires: llvm-cmake-utils = %{version}
|
|
||||||
BuildRequires: clang-devel = %{version}
|
BuildRequires: clang-devel = %{version}
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
|
@ -46,13 +23,11 @@ BuildRequires: libffi-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: libedit-devel
|
BuildRequires: libedit-devel
|
||||||
BuildRequires: python3-lit
|
|
||||||
BuildRequires: multilib-rpm-config
|
BuildRequires: multilib-rpm-config
|
||||||
|
|
||||||
|
%if 0%{?enable_python}
|
||||||
Requires: python3-lldb
|
Requires: python3-lldb
|
||||||
|
%endif
|
||||||
# For origin certification
|
|
||||||
BuildRequires: gnupg2
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
LLDB is a next generation, high-performance debugger. It is built as a set
|
LLDB is a next generation, high-performance debugger. It is built as a set
|
||||||
|
@ -67,77 +42,88 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
%description devel
|
%description devel
|
||||||
The package contains header files for the LLDB debugger.
|
The package contains header files for the LLDB debugger.
|
||||||
|
|
||||||
|
%if 0%{?enable_python}
|
||||||
|
|
||||||
%package -n python3-lldb
|
%package -n python3-lldb
|
||||||
%{?python_provide:%python_provide python3-lldb}
|
|
||||||
Summary: Python module for LLDB
|
Summary: Python module for LLDB
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: lldb = %{version}-%{release}
|
||||||
|
|
||||||
%description -n python3-lldb
|
%description -n python3-lldb
|
||||||
The package contains the LLDB Python module.
|
The package contains the LLDB Python module.
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
%autosetup -n %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src -p1
|
||||||
%autosetup -n %{lldb_srcdir} -p2
|
|
||||||
|
%if 0%{?enable_python}
|
||||||
|
# HACK so that lldb can find its custom readline.so, because we move it
|
||||||
|
# after install.
|
||||||
|
sed -i -e "s~import sys~import sys\nsys.path.insert\(1, '%{python3_sitearch}/lldb'\)~g" source/Interpreter/embedded_interpreter.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%undefine __cmake_in_source_build
|
mkdir -p _build
|
||||||
|
cd _build
|
||||||
|
|
||||||
|
# Python version detection is broken
|
||||||
|
|
||||||
|
LDFLAGS="%{__global_ldflags} -lpthread -ldl"
|
||||||
|
|
||||||
CFLAGS="%{optflags} -Wno-error=format-security"
|
CFLAGS="%{optflags} -Wno-error=format-security"
|
||||||
CXXFLAGS="%{optflags} -Wno-error=format-security"
|
CXXFLAGS="%{optflags} -Wno-error=format-security"
|
||||||
|
|
||||||
%cmake -GNinja \
|
%cmake .. \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
||||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||||
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
|
-DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config \
|
||||||
-DLLVM_COMMON_CMAKE_UTILS=%{_datadir}/llvm/cmake \
|
\
|
||||||
|
-DLLDB_PATH_TO_LLVM_BUILD=%{_prefix} \
|
||||||
|
-DLLDB_PATH_TO_CLANG_BUILD=%{_prefix} \
|
||||||
|
\
|
||||||
-DLLDB_DISABLE_CURSES:BOOL=OFF \
|
-DLLDB_DISABLE_CURSES:BOOL=OFF \
|
||||||
-DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
|
-DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
|
||||||
|
%if 0%{?enable_python}
|
||||||
-DLLDB_DISABLE_PYTHON:BOOL=OFF \
|
-DLLDB_DISABLE_PYTHON:BOOL=OFF \
|
||||||
|
%else
|
||||||
|
-DLLDB_DISABLE_PYTHON:BOOL=ON \
|
||||||
|
%endif
|
||||||
%if 0%{?__isa_bits} == 64
|
%if 0%{?__isa_bits} == 64
|
||||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||||
%else
|
%else
|
||||||
-DLLVM_LIBDIR_SUFFIX= \
|
-DLLVM_LIBDIR_SUFFIX= \
|
||||||
%endif
|
%endif
|
||||||
\
|
\
|
||||||
-DPYTHON_EXECUTABLE:STRING=%{__python3} \
|
-DPYTHON_EXECUTABLE:STRING=%{__python3}
|
||||||
-DPYTHON_VERSION_MAJOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.major)") \
|
|
||||||
-DPYTHON_VERSION_MINOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.minor)") \
|
|
||||||
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
|
||||||
-DCLANG_LINK_CLANG_DYLIB=ON \
|
|
||||||
-DCLANG_RESOURCE_DIR=$(realpath --relative-to=/usr/bin %{clang_resource_dir}) \
|
|
||||||
-DLLVM_LIT_ARGS="-sv \
|
|
||||||
--path %{_libdir}/llvm" \
|
|
||||||
|
|
||||||
%cmake_build
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
cd _build
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
%multilib_fix_c_header --file %{_includedir}/lldb/Host/Config.h
|
%multilib_fix_c_header --file %{_includedir}/lldb/Host/Config.h
|
||||||
|
|
||||||
# remove static libraries
|
# remove static libraries
|
||||||
rm -fv %{buildroot}%{_libdir}/*.a
|
rm -fv %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
|
%if 0%{?enable_python}
|
||||||
# python: fix binary libraries location
|
# python: fix binary libraries location
|
||||||
liblldb=$(basename $(readlink -e %{buildroot}%{_libdir}/liblldb.so))
|
liblldb=$(basename $(readlink -e %{buildroot}%{_libdir}/liblldb.so))
|
||||||
ln -vsf "../../../${liblldb}" %{buildroot}%{python3_sitearch}/lldb/_lldb.so
|
ln -vsf "../../../${liblldb}" %{buildroot}%{python3_sitearch}/lldb/_lldb.so
|
||||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitearch}/lldb
|
mv -v %{buildroot}%{python3_sitearch}/readline.so %{buildroot}%{python3_sitearch}/lldb/readline.so
|
||||||
|
|
||||||
# remove bundled six.py
|
# remove bundled six.py
|
||||||
rm -f %{buildroot}%{python3_sitearch}/six.*
|
rm -f %{buildroot}%{python3_sitearch}/six.*
|
||||||
|
%endif
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
%check
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.TXT
|
|
||||||
%{_bindir}/lldb*
|
%{_bindir}/lldb*
|
||||||
%{_libdir}/liblldb.so.*
|
%{_libdir}/liblldb.so.*
|
||||||
%{_libdir}/liblldbIntelFeatures.so.*
|
%{_libdir}/liblldbIntelFeatures.so.*
|
||||||
|
@ -146,82 +132,12 @@ rm -f %{buildroot}%{python3_sitearch}/six.*
|
||||||
%{_includedir}/lldb
|
%{_includedir}/lldb
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
||||||
|
%if 0%{?enable_python}
|
||||||
%files -n python3-lldb
|
%files -n python3-lldb
|
||||||
%{python3_sitearch}/lldb
|
%{python3_sitearch}/lldb
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Nov 29 2023 Nikita Popov <npopov@redhat.com> - 17.0.6-1
|
|
||||||
- Update to LLVM 17.0.6
|
|
||||||
|
|
||||||
* Wed Oct 04 2023 Nikita Popov <npopov@redhat.com> - 17.0.2-1
|
|
||||||
- Update to LLVM 17.0.2
|
|
||||||
|
|
||||||
* Fri Jun 23 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-1
|
|
||||||
- 16.0.6 Release
|
|
||||||
|
|
||||||
* Fri Apr 28 2023 Tom Stellard <tstellar@redhat.com> - 16.0.0-1
|
|
||||||
- 16.0.0 Release
|
|
||||||
|
|
||||||
* Thu Jan 19 2023 Tom Stellard <tstellar@redhat.com> - 15.0.7-1
|
|
||||||
- Update to LLVM 15.0.7
|
|
||||||
|
|
||||||
* Tue Sep 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-1
|
|
||||||
- Update to LLVM 15.0.0
|
|
||||||
|
|
||||||
* Tue Jun 28 2022 Tom Stellard <tstellar@redhat.com> - 14.0.6-1
|
|
||||||
- 14.0.6 Release
|
|
||||||
|
|
||||||
* Wed Jun 08 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-2
|
|
||||||
- Disable libstdc++ std::vector prettyprinter
|
|
||||||
|
|
||||||
* Thu Apr 07 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-1
|
|
||||||
- Update to 14.0.0
|
|
||||||
|
|
||||||
* Thu Feb 03 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-1
|
|
||||||
- 13.0.1 Release
|
|
||||||
|
|
||||||
* Fri Oct 15 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
|
|
||||||
- 13.0.0 Release
|
|
||||||
|
|
||||||
* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1
|
|
||||||
- 12.0.1
|
|
||||||
|
|
||||||
* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1
|
|
||||||
- 12.0.0
|
|
||||||
|
|
||||||
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1
|
|
||||||
- 11.0.0 final
|
|
||||||
|
|
||||||
* Fri Sep 18 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
|
|
||||||
- 11.0.0-rc2 Release
|
|
||||||
|
|
||||||
* Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1
|
|
||||||
- 10.0.1
|
|
||||||
|
|
||||||
* Mon Jun 15 2020 sguelton@redhat.com - 10.0.0-2
|
|
||||||
- Fix multilib integration, see rhbz#1841073
|
|
||||||
|
|
||||||
* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1
|
|
||||||
- 10.0.0 final
|
|
||||||
|
|
||||||
* Sat Dec 21 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
|
|
||||||
- 9.0.1 Release
|
|
||||||
|
|
||||||
* Fri Oct 04 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-2
|
|
||||||
- Disable readline module to work-around segafult
|
|
||||||
|
|
||||||
* Fri Sep 27 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
|
|
||||||
- 9.0.0 Release
|
|
||||||
|
|
||||||
* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1
|
|
||||||
- 8.0.1 release
|
|
||||||
|
|
||||||
* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2
|
|
||||||
- 8.0.1rc2 Release
|
|
||||||
|
|
||||||
* Tue Apr 16 2019 sguelton@redhat.com - 8.0.0-1
|
|
||||||
- 8.0.0 Release
|
|
||||||
|
|
||||||
* Mon Dec 17 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-2
|
* Mon Dec 17 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-2
|
||||||
- Fix multilib conflict
|
- Fix multilib conflict
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue