import lldb-9.0.0-2.module+el8.2.0+4372+0b4c238f
This commit is contained in:
parent
c29ee6b154
commit
0ad2e00eb8
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/lldb-8.0.0.src.tar.xz
|
SOURCES/lldb-9.0.0.src.tar.xz
|
||||||
|
@ -1 +1 @@
|
|||||||
ca188f74b4896cd243ed1c3797d27c3371185146 SOURCES/lldb-8.0.0.src.tar.xz
|
7ac23c548c805be55713a759c4275d0389f9197e SOURCES/lldb-9.0.0.src.tar.xz
|
||||||
|
41
SOURCES/0001-Don-t-import-readline-module.patch
Normal file
41
SOURCES/0001-Don-t-import-readline-module.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
From 53fca9b6d37660280ffbd02255bf4d05c96b0055 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Stellard <tstellar@redhat.com>
|
||||||
|
Date: Thu, 3 Oct 2019 20:49:43 -0700
|
||||||
|
Subject: [PATCH] Don't import readline module
|
||||||
|
|
||||||
|
Loading the module causes python to segfault. Disabling for now until
|
||||||
|
we can find a fix.
|
||||||
|
---
|
||||||
|
lldb/source/Interpreter/embedded_interpreter.py | 16 +---------------
|
||||||
|
1 file changed, 1 insertion(+), 15 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lldb/source/Interpreter/embedded_interpreter.py b/lldb/source/Interpreter/embedded_interpreter.py
|
||||||
|
index 8a1195d..f534bdb 100644
|
||||||
|
--- a/lldb/source/Interpreter/embedded_interpreter.py
|
||||||
|
+++ b/lldb/source/Interpreter/embedded_interpreter.py
|
||||||
|
@@ -7,21 +7,7 @@ import code
|
||||||
|
import lldb
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
-try:
|
||||||
|
- import readline
|
||||||
|
- import rlcompleter
|
||||||
|
-except ImportError:
|
||||||
|
- have_readline = False
|
||||||
|
-except AttributeError:
|
||||||
|
- # This exception gets hit by the rlcompleter when Linux is using
|
||||||
|
- # the readline suppression import.
|
||||||
|
- have_readline = False
|
||||||
|
-else:
|
||||||
|
- have_readline = True
|
||||||
|
- if 'libedit' in readline.__doc__:
|
||||||
|
- readline.parse_and_bind('bind ^I rl_complete')
|
||||||
|
- else:
|
||||||
|
- readline.parse_and_bind('tab: complete')
|
||||||
|
+have_readline = False
|
||||||
|
|
||||||
|
g_builtin_override_called = False
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,18 +1,22 @@
|
|||||||
#%%global rc_ver 4
|
#%%global rc_ver 3
|
||||||
|
%global baserelease 2
|
||||||
|
|
||||||
Name: lldb
|
Name: lldb
|
||||||
Version: 8.0.0
|
Version: 9.0.0
|
||||||
Release: 1%{?rc_ver:.rc%{rc_ver}}%{?dist}
|
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?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: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src.tar.xz
|
Source0: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src.tar.xz
|
||||||
|
|
||||||
Patch1: python3.patch
|
# FIXME: Temporarily stop using readline to work-around segafult which
|
||||||
|
# happens when the readline module is loaded.
|
||||||
|
Patch0: 0001-Don-t-import-readline-module.patch
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: llvm-devel = %{version}
|
BuildRequires: llvm-devel = %{version}
|
||||||
|
BuildRequires: llvm-test = %{version}
|
||||||
BuildRequires: clang-devel = %{version}
|
BuildRequires: clang-devel = %{version}
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
@ -49,13 +53,7 @@ Requires: python3-six
|
|||||||
The package contains the LLDB Python module.
|
The package contains the LLDB Python module.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
%autosetup -n %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src -p2
|
||||||
|
|
||||||
%patch1 -p1 -b .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
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -103,7 +101,6 @@ rm -fv %{buildroot}%{_libdir}/*.a
|
|||||||
# 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
|
||||||
mv -v %{buildroot}%{python3_sitearch}/readline.so %{buildroot}%{python3_sitearch}/lldb/readline.so
|
|
||||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitearch}/lldb
|
%py_byte_compile %{__python3} %{buildroot}%{python3_sitearch}/lldb
|
||||||
|
|
||||||
# remove bundled six.py
|
# remove bundled six.py
|
||||||
@ -124,6 +121,18 @@ rm -f %{buildroot}%{python3_sitearch}/six.*
|
|||||||
%{python3_sitearch}/lldb
|
%{python3_sitearch}/lldb
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Tue Apr 16 2019 sguelton@redhat.com - 8.0.0-1
|
||||||
- 8.0.0 Release
|
- 8.0.0 Release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user