Update to 6.6
This commit is contained in:
parent
787ece826d
commit
42efad402f
@ -1,33 +0,0 @@
|
|||||||
From 09b9701a17618939fa0746ff532449f933213a68 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
||||||
Date: Thu, 15 Apr 2021 11:32:15 +0200
|
|
||||||
Subject: [PATCH] Python modules check: Assert exit code, not empty output
|
|
||||||
|
|
||||||
Distutils is deprecated in Python 3.10+:
|
|
||||||
https://www.python.org/dev/peps/pep-0632/
|
|
||||||
|
|
||||||
When importing it, there is a warning:
|
|
||||||
|
|
||||||
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
|
|
||||||
|
|
||||||
The configure script falsely assumed this is an error.
|
|
||||||
Instead, we now check for the exit code, which is more explicit.
|
|
||||||
|
|
||||||
In the long term, we need to migrate away from distutils, this is a stopgap measure only.
|
|
||||||
---
|
|
||||||
Bindings/Python/bindings.m4 | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/Bindings/Python/bindings.m4 b/Bindings/Python/bindings.m4
|
|
||||||
index 784418f0c..ee28525fc 100644
|
|
||||||
--- a/Bindings/Python/bindings.m4
|
|
||||||
+++ b/Bindings/Python/bindings.m4
|
|
||||||
@@ -40,7 +40,7 @@ else
|
|
||||||
for python_module in sys distutils.sysconfig
|
|
||||||
do
|
|
||||||
python_error="`"${PYTHON}" -c "import ${python_module};" 2>&1`"
|
|
||||||
- if test -n "${python_error}"
|
|
||||||
+ if test $? -ne 0
|
|
||||||
then
|
|
||||||
AC_MSG_WARN([Python module not found: ${python_module}: ${python_error}])
|
|
||||||
PYTHON_OK=false
|
|
||||||
Binary file not shown.
@ -1,9 +1,9 @@
|
|||||||
diff --git a/Bindings/Java/NativeLibrary.java b/Bindings/Java/NativeLibrary.java
|
diff --git a/Bindings/Java/NativeComponent.java b/Bindings/Java/NativeComponent.java
|
||||||
index 8a3b003..c404bf2 100644
|
index 2e6304a..cf6c9b0 100644
|
||||||
--- a/Bindings/Java/NativeLibrary.java
|
--- a/Bindings/Java/NativeComponent.java
|
||||||
+++ b/Bindings/Java/NativeLibrary.java
|
+++ b/Bindings/Java/NativeComponent.java
|
||||||
@@ -21,7 +21,15 @@ public class NativeLibrary {
|
@@ -23,7 +23,15 @@ public class NativeComponent extends Component {
|
||||||
}
|
private native static void initializeNativeData ();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
- System.loadLibrary("brlapi_java");
|
- System.loadLibrary("brlapi_java");
|
||||||
@ -16,6 +16,6 @@ index 8a3b003..c404bf2 100644
|
|||||||
+ throw new UnsatisfiedLinkError("brlapi_java library load failed");
|
+ throw new UnsatisfiedLinkError("brlapi_java library load failed");
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
new NativeLibrary().initializeNativeData();
|
initializeNativeData();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
20
brltty-6.6-cython3.patch
Normal file
20
brltty-6.6-cython3.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- python2/Bindings/Python/brlapi.pyx 2023-07-17 07:55:47.000000000 -0700
|
||||||
|
+++ python2/Bindings/Python/brlapi.pyx.new 2023-08-15 09:06:23.675136077 -0700
|
||||||
|
@@ -453,6 +453,7 @@
|
||||||
|
c_brlapi.brlapi_protocolExceptionInit(self.h)
|
||||||
|
if self.fd == -1:
|
||||||
|
c_brlapi.free(self.h)
|
||||||
|
+ self.h = NULL
|
||||||
|
raise ConnectionError(self.settings.host, self.settings.auth)
|
||||||
|
|
||||||
|
def closeConnection(self):
|
||||||
|
@@ -465,7 +466,8 @@
|
||||||
|
"""Release resources used by the connection"""
|
||||||
|
if self.fd != -1:
|
||||||
|
c_brlapi.brlapi__closeConnection(self.h)
|
||||||
|
- c_brlapi.free(self.h)
|
||||||
|
+ if self.h != NULL:
|
||||||
|
+ c_brlapi.free(self.h)
|
||||||
|
|
||||||
|
property host:
|
||||||
|
"""To get authorized to connect, libbrlapi has to tell the BrlAPI server a secret key, for security reasons. This is the path to the file which holds it; it will hence have to be readable by the application."""
|
||||||
BIN
brltty-6.6.tar.xz
Normal file
BIN
brltty-6.6.tar.xz
Normal file
Binary file not shown.
34
brltty.spec
34
brltty.spec
@ -1,4 +1,4 @@
|
|||||||
%define api_ver 0.8.0
|
%define api_ver 0.8.5
|
||||||
%define tcl_version tcl8.6
|
%define tcl_version tcl8.6
|
||||||
%{!?tcl_sitearch: %global tcl_sitearch %{_prefix}/%{_lib}/%{tcl_version}}
|
%{!?tcl_sitearch: %global tcl_sitearch %{_prefix}/%{_lib}/%{tcl_version}}
|
||||||
|
|
||||||
@ -6,8 +6,8 @@
|
|||||||
%bcond_with speech
|
%bcond_with speech
|
||||||
|
|
||||||
Name: brltty
|
Name: brltty
|
||||||
Version: 6.1
|
Version: 6.6
|
||||||
Release: 5
|
Release: 1
|
||||||
Summary: Braille display driver for Linux/Unix
|
Summary: Braille display driver for Linux/Unix
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://brltty.app/
|
URL: http://brltty.app/
|
||||||
@ -15,17 +15,17 @@ Source0: http://brltty.app/archive/%{name}-%{version}.tar.xz
|
|||||||
|
|
||||||
Source1: brltty.service
|
Source1: brltty.service
|
||||||
|
|
||||||
Patch0: brltty-6.1-loadLibrary.patch
|
Patch0: brltty-6.3-loadLibrary.patch
|
||||||
|
|
||||||
%if %{with speech}
|
%if %{with speech}
|
||||||
Patch1: brltty-5.0-libspeechd.patch
|
Patch1: brltty-6.3-libspeechd.patch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Patch2: backport-support-3.10.patch
|
Patch2: brltty-6.6-cython3.patch
|
||||||
|
|
||||||
BuildRequires: byacc glibc-kernheaders bluez-libs-devel systemd gettext
|
BuildRequires: byacc glibc-kernheaders bluez-libs-devel systemd gettext
|
||||||
BuildRequires: python3-devel autoconf at-spi2-core-devel alsa-lib-devel
|
BuildRequires: python3-devel autoconf at-spi2-core-devel alsa-lib-devel
|
||||||
BuildRequires: automake
|
BuildRequires: automake polkit-devel doxygen python3-docutils
|
||||||
|
|
||||||
%if %{with espeak}
|
%if %{with espeak}
|
||||||
BuildRequires: espeak-ng-devel
|
BuildRequires: espeak-ng-devel
|
||||||
@ -157,18 +157,20 @@ done
|
|||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
||||||
%make_install JAVA_JAR_DIR=%{_jnidir} JAVA_JNI_DIR=%{_libdir}/brltty JAVA_JNI=yes
|
%make_install JAVA_JAR_DIR=%{_jnidir} JAVA_JNI_DIR=%{_libdir}/brltty JAVA_JNI=yes
|
||||||
|
|
||||||
|
pushd Authorization/Polkit
|
||||||
|
make install
|
||||||
|
popd
|
||||||
|
|
||||||
install -m 0644 Documents/brltty.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
|
install -m 0644 Documents/brltty.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
|
||||||
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/brltty.service
|
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/brltty.service
|
||||||
chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/brltty-config
|
chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/brltty-config.sh
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/libbrlapi.a
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
cp -p %{name}.lang ../
|
cp -p %{name}.lang ../
|
||||||
|
|
||||||
/usr/bin/2to3 -wn ${RPM_BUILD_ROOT}/etc/brltty/Contraction/latex-access.ctb
|
|
||||||
sed -i 's|/usr/bin/python|/usr/bin/python3|g' ${RPM_BUILD_ROOT}/etc/brltty/Contraction/latex-access.ctb
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
@ -218,6 +220,7 @@ fi
|
|||||||
%{_sysconfdir}/X11/Xsession.d/90xbrlapi
|
%{_sysconfdir}/X11/Xsession.d/90xbrlapi
|
||||||
|
|
||||||
%{_datadir}/polkit-1/actions/org.a11y.brlapi.policy
|
%{_datadir}/polkit-1/actions/org.a11y.brlapi.policy
|
||||||
|
%{_datadir}/polkit-1/rules.d/org.a11y.brlapi.rules
|
||||||
%exclude %{_datadir}/gdm/greeter/autostart/xbrlapi.desktop
|
%exclude %{_datadir}/gdm/greeter/autostart/xbrlapi.desktop
|
||||||
|
|
||||||
%{_unitdir}/brltty.service
|
%{_unitdir}/brltty.service
|
||||||
@ -225,15 +228,15 @@ fi
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libbrlapi.so
|
%{_libdir}/libbrlapi.so
|
||||||
|
%{_libdir}/pkgconfig/brltty.pc
|
||||||
%{_includedir}/brltty
|
%{_includedir}/brltty
|
||||||
%{_includedir}/brlapi*.h
|
%{_includedir}/brlapi*.h
|
||||||
|
|
||||||
|
|
||||||
%files docs
|
%files docs
|
||||||
%defattr(644,root,root)
|
%defattr(644,root,root)
|
||||||
%doc doc/*
|
%doc Drivers/Speech/SpeechDispatcher/README
|
||||||
#%doc Drivers/Speech/SpeechDispatcher/README
|
%doc Drivers/Braille/XWindow/README
|
||||||
#%doc Drivers/Braille/XWindow/README
|
|
||||||
%doc Documents/*
|
%doc Documents/*
|
||||||
%doc %{_mandir}/man[15]/brltty.*
|
%doc %{_mandir}/man[15]/brltty.*
|
||||||
%doc %{_mandir}/man1/xbrlapi.*
|
%doc %{_mandir}/man1/xbrlapi.*
|
||||||
@ -268,6 +271,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 05 2023 yaoxin <yao_xin001@hoperun.com> - 6.6-1
|
||||||
|
- Update to 6.6
|
||||||
|
|
||||||
* Fri Apr 15 2022 gaihuiying <eaglegai@163.com> - 6.1-5
|
* Fri Apr 15 2022 gaihuiying <eaglegai@163.com> - 6.1-5
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user