void-packages/srcpkgs/brltty/patches/authmethods.patch
Christopher Brannon e412580e9e brltty: misc fixes, remove deps, split Python bindings.
* The brltty API was failing to work without polkit due to a bug.
Patched, and patch was accepted upstream.
Polkit is a recent optional dependency.  Better to patch brltty's
bug than forcibly require it.

* Split out Python 3 bindings into python3-brlapi.  This is the
package name used by Debian.

* Removed the a2 screen driver.  It isn't needed, since
people using brltty with a GUI are going to be using Orca anyway.
2017-07-14 09:32:58 +00:00

23 lines
790 B
Diff

commit 7b688681f5868416d0b6b9899fbd0d2ba213477d from upstream git
diff Programs/brlapi.h.in Programs/brlapi.h.in
--- Programs/brlapi.h.in
+++ Programs/brlapi.h.in
@@ -137,8 +137,16 @@ size_t BRLAPI_STDCALL brlapi_getHandleSize(void);
#ifdef BRLAPI_WIN32
/* No authentication by default on Windows */
#define BRLAPI_DEFAUTH "none"
-#else
-#define BRLAPI_DEFAUTH "polkit+keyfile:" BRLAPI_ETCDIR "/" BRLAPI_AUTHKEYFILE
+#else /* BRLAPI_WIN32 */
+#define BRLAPI_DEFAUTH_KEYFILE "keyfile:" BRLAPI_ETCDIR "/" BRLAPI_AUTHKEYFILE
+
+#ifdef USE_POLKIT
+#define BRLAPI_DEFAUTH_POLKIT "+polkit"
+#else /* USE_POLKIT */
+#define BRLAPI_DEFAUTH_POLKIT ""
+#endif /* USE_POLKIT */
+
+#define BRLAPI_DEFAUTH BRLAPI_DEFAUTH_KEYFILE BRLAPI_DEFAUTH_POLKIT
#endif /* BRLAPI_WIN32 */
#ifdef __MINGW32__