From 2b7cb8e7a92e89b4901c32e953f3b1a2cbda5695 Mon Sep 17 00:00:00 2001 From: eater <=@eater.me> Date: Thu, 14 May 2020 11:23:51 +0200 Subject: [PATCH] New package: looking-glass-2019.B1 --- srcpkgs/looking-glass/patches/fix-void.patch | 45 ++++++++++++++++++++ srcpkgs/looking-glass/template | 16 +++++++ 2 files changed, 61 insertions(+) create mode 100644 srcpkgs/looking-glass/patches/fix-void.patch create mode 100644 srcpkgs/looking-glass/template diff --git a/srcpkgs/looking-glass/patches/fix-void.patch b/srcpkgs/looking-glass/patches/fix-void.patch new file mode 100644 index 00000000000..6c08ffee7f4 --- /dev/null +++ b/srcpkgs/looking-glass/patches/fix-void.patch @@ -0,0 +1,45 @@ +diff --git client/CMakeLists.txt client/CMakeLists.txt +index 4c1ba29..f08b4b3 100644 +--- client/CMakeLists.txt ++++ client/CMakeLists.txt +@@ -37,7 +37,7 @@ add_compile_options( + "$<$:-O0;-g3;-ggdb>" + ) + +-set(EXE_FLAGS "-Wl,--gc-sections") ++set(EXE_FLAGS "-Wl,--gc-sections -Wl,--start-group") + set(CMAKE_C_STANDARD 11) + + find_package(PkgConfig) +@@ -99,6 +99,7 @@ target_link_libraries(looking-glass-client + renderers + clipboards + fonts ++ dl + ) + + install(PROGRAMS ${CMAKE_BINARY_DIR}/looking-glass-client DESTINATION bin/ COMPONENT binary) +diff --git common/src/crash.linux.c common/src/crash.linux.c +index 218d65f..bd23805 100644 +--- common/src/crash.linux.c ++++ common/src/crash.linux.c +@@ -98,10 +98,10 @@ static void load_symbols() + + static bool lookup_address(bfd_vma pc, const char ** filename, const char ** function, unsigned int * line, unsigned int * discriminator) + { +- if ((bfd_get_section_flags(crash.fd, crash.section) & SEC_ALLOC) == 0) ++ if ((crash.section->flags & SEC_ALLOC) == 0) + return false; + +- bfd_size_type size = bfd_get_section_size(crash.section); ++ bfd_size_type size = crash.section->size; + if (pc >= size) + return false; + +@@ -230,4 +230,4 @@ bool installCrashHandler(const char * exe) + return true; + } + +-#endif +\ No newline at end of file ++#endif diff --git a/srcpkgs/looking-glass/template b/srcpkgs/looking-glass/template new file mode 100644 index 00000000000..b5a72766c94 --- /dev/null +++ b/srcpkgs/looking-glass/template @@ -0,0 +1,16 @@ +# Template file for 'looking-glass' +pkgname=looking-glass +_tag="B1" +version="2019.${_tag}" +revision=1 +wrksrc="LookingGlass-${_tag}" +build_wrksrc="client" +build_style=cmake +hostmakedepends="pkg-config" +makedepends="glibc-devel nettle-devel libX11-devel spice-devel SDL2-devel SDL2_ttf-devel binutils-devel fontconfig-devel" +short_desc="Extremely low latency KVMFR implementation" +maintainer="eater <=@eater.me>" +license="GPL-2.0" +homepage="https://looking-glass.hostfission.com/" +distfiles="https://github.com/gnif/LookingGlass/archive/${_tag}.tar.gz" +checksum=fa9b3b380f451551c8b40b56a3e873607aa066e8333b7baacd0ed21a05bbb5c5