Scott Bradnick
38cbaa23f2
- Adding wayland-protocols-1.32.diff patch to account for 'compiler crashes' from wayland-protocols-devel update (#6422) * This is patched upstream via 95d1564 and 7d2dc25 - Removing -Wno-error=switch flag as this was a workaround to deal with scenario from above - Renaming the following files: * fix-librsync-leap.{.patch -> .diff} * optional-disable-docs.{.patch -> diff} - Set -Wno-error=switch flag to prevent compiler crashes for RISCV and ARM - Cleaning up "wayland-devel obsoletes libwayland-egl-devel" - Adding 'Recommends: python3-importlib_resources' - Use python3.11 on Leap 15.5 * python3.11 is the only python3 > 3.6 version would be shipped in Leap 15.5 OBS-URL: https://build.opensuse.org/request/show/1097531 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/kitty?expand=0&rev=119
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
diff -Nur kitty-0.25.0/kittens/transfer/rsync.c new/kittens/transfer/rsync.c
|
|
--- kitty-0.25.0/kittens/transfer/rsync.c 2022-04-11 16:01:45.000000000 +0200
|
|
+++ new/kittens/transfer/rsync.c 2022-04-18 14:43:47.391998800 +0200
|
|
@@ -6,6 +6,7 @@
|
|
*/
|
|
|
|
#include "data-types.h"
|
|
+#include <stdio.h>
|
|
#include <librsync.h>
|
|
|
|
#define SIGNATURE_CAPSULE "rs_signature_t"
|
|
diff -Nur kitty-0.25.0/setup.py new/setup.py
|
|
--- kitty-0.25.0/setup.py 2022-04-18 14:44:34.223998795 +0200
|
|
+++ new/setup.py 2022-04-18 14:44:19.307998797 +0200
|
|
@@ -263,10 +263,11 @@
|
|
def detect_librsync(cc: List[str], cflags: List[str], ldflags: List[str]) -> str:
|
|
if not test_compile(
|
|
cc, *cflags, libraries=('rsync',), ldflags=ldflags, show_stderr=True,
|
|
- src='#include <librsync.h>\nint main(void) { rs_strerror(0); return 0; }'):
|
|
+ src='#include <stdio.h>\n#include <librsync.h>\nint main(void) { rs_strerror(0); return 0; }'):
|
|
raise SystemExit('The librsync library is required')
|
|
# check for rs_sig_args() which was added to librsync in Apr 2020 version 2.3.0
|
|
if test_compile(cc, *cflags, libraries=('rsync',), ldflags=ldflags, src='''
|
|
+#include <stdio.h>
|
|
#include <librsync.h>
|
|
int main(void) {
|
|
rs_magic_number magic_number = 0;
|