Update to version required by sagemath 8.0

This commit is contained in:
pcpa 2017-11-10 08:46:46 -05:00
parent 6cceb36282
commit f6bfc8b975
5 changed files with 23 additions and 20 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/cysignals-1.3.2.tar.bz2
/cysignals-1.6.4.tar.bz2

View File

@ -1,6 +1,6 @@
diff -up src/cysignals/implementation.c.orig src/cysignals/implementation.c
--- src/cysignals/implementation.c.orig 2017-04-26 07:15:37.355125739 -0400
+++ src/cysignals/implementation.c 2017-04-26 07:15:50.757126252 -0400
--- src/cysignals/implementation.c.orig 2017-11-08 05:47:04.898848227 -0500
+++ src/cysignals/implementation.c 2017-11-08 05:47:10.044848424 -0500
@@ -85,7 +85,7 @@ static void print_backtrace(void);
*/
static inline void reset_CPU(void)

View File

@ -1,6 +1,7 @@
--- src/scripts/cysignals-CSI.orig 2016-11-08 07:06:48.000000000 -0700
+++ src/scripts/cysignals-CSI 2017-04-03 15:38:46.018841319 -0600
@@ -67,6 +67,7 @@ def gdb_commands(pid, color):
diff -up src/scripts/cysignals-CSI.orig src/scripts/cysignals-CSI
--- src/scripts/cysignals-CSI.orig 2017-11-08 05:44:49.702843050 -0500
+++ src/scripts/cysignals-CSI 2017-11-08 05:46:00.580845764 -0500
@@ -69,6 +69,7 @@ def gdb_commands(pid, color):
cmds = b('')
cmds += b('set prompt (cysignals-gdb-prompt)\n')
cmds += b('set verbose off\n')
@ -8,19 +9,17 @@
cmds += b('attach {0}\n'.format(pid))
cmds += b('python\n')
cmds += b('print("\\n")\n')
@@ -93,15 +94,7 @@ def run_gdb(pid, color):
"""
Execute gdb.
"""
- # Preload the right Python library
- libpython = os.path.join(sysconfig.get_config_var('exec_prefix'), 'lib',
- sysconfig.get_config_var('INSTSONAME'))
env = dict(os.environ)
@@ -100,13 +101,6 @@ def run_gdb(pid, color):
# Preload the right Python library
libpython = os.path.join(sysconfig.get_config_var('LIBDIR'),
sysconfig.get_config_var('INSTSONAME'))
- if sys.platform == 'macosx':
- env['DYLD_INSERT_LIBRARIES'] = libpython
- else:
- env['LD_PRELOAD'] = libpython
-
PIPE = subprocess.PIPE
try:
cmd = subprocess.Popen('gdb', stdin=PIPE, stdout=PIPE,
- # Set the correct Python path
- env['PYTHONPATH'] = os.path.dirname(site.__file__)
whichgdb = find_executable('gdb')
if whichgdb is None:

View File

@ -1,8 +1,8 @@
%global modname cysignals
Name: python-%{modname}
Version: 1.3.2
Release: 5%{?dist}
Version: 1.6.4
Release: 1%{?dist}
Summary: Interrupt and signal handling for Cython
License: LGPLv3+
URL: https://github.com/sagemath/%{modname}
@ -88,7 +88,7 @@ sed -i 's@^\(#!/usr/bin/python\)3\( -s\)@\12\2@' %{buildroot}%{_bindir}/cysignal
mv %{buildroot}%{_bindir}/cysignals-CSI{,-2}
# Install missing files from python2 subpackage
cp -p build/src/cysignals/{debug.h,signals.h,signals_api.h} \
cp -p build/src/cysignals/{debug,macros,pxi_warning,signals,struct_signals}.h \
%{buildroot}%{python2_sitearch}/cysignals
%check
@ -151,6 +151,9 @@ export PYTHONPATH
%{_docdir}/%{name}/html
%changelog
* Wed Nov 08 2017 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.6.2-1
- Update to version required by sagemath 8.0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (cysignals-1.3.2.tar.bz2) = 4cf9a370cb331cd2a4e61bb635670de991e6d215a4b17b814dfeb35a3dd3983bb8ef5fca76adc2dbbacad9bf9b9a72052bf525a719c8116e9050d94f7853d2af
SHA512 (cysignals-1.6.4.tar.bz2) = dda108a45ba861170f46c509ef12ba58c31734a58b746164b83501c0f62eb5283207588ff72e3664013b52e97847e1604c6f65b84a250ec7cd813d845db1485b