mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libArcus: remove package
This package is sorely outdated and only supports the now-removed cura.
This commit is contained in:
parent
ed32f8a4d4
commit
7a583a8b2c
5 changed files with 3 additions and 77 deletions
|
@ -1 +0,0 @@
|
||||||
libArcus
|
|
|
@ -1 +0,0 @@
|
||||||
libArcus
|
|
|
@ -1,42 +0,0 @@
|
||||||
Migrate away from previously deprecated functions dropped in protobuf>=3.18.0_1.
|
|
||||||
|
|
||||||
--- a/src/Socket_p.h
|
|
||||||
+++ b/src/Socket_p.h
|
|
||||||
@@ -128,9 +128,6 @@
|
|
||||||
|
|
||||||
static const int keep_alive_rate = 500; //Number of milliseconds between sending keepalive packets
|
|
||||||
|
|
||||||
- // This value determines when protobuf should warn about very large messages.
|
|
||||||
- static const int message_size_warning = 400 * 1048576;
|
|
||||||
-
|
|
||||||
// This value determines when protobuf should error out because the message is too large.
|
|
||||||
// Due to the way Protobuf is implemented, messages large than 512MiB will cause issues.
|
|
||||||
static const int message_size_maximum = 500 * 1048576;
|
|
||||||
@@ -362,11 +359,15 @@
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
- uint32_t message_size = message->ByteSize();
|
|
||||||
- if(platform_socket.writeUInt32(message_size) == -1)
|
|
||||||
+ auto message_size = message->ByteSizeLong();
|
|
||||||
+ if (message_size > UINT32_MAX) {
|
|
||||||
+ error(ErrorCode::SendFailedError, "Message size is too large to send");
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if(platform_socket.writeUInt32(static_cast<uint32_t>(message_size)) == -1)
|
|
||||||
{
|
|
||||||
error(ErrorCode::SendFailedError, "Could not send message size");
|
|
||||||
- return;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t type_id = message_types.getMessageTypeId(message);
|
|
||||||
@@ -548,7 +549,7 @@
|
|
||||||
|
|
||||||
google::protobuf::io::ArrayInputStream array(wire_message->data, wire_message->size);
|
|
||||||
google::protobuf::io::CodedInputStream stream(&array);
|
|
||||||
- stream.SetTotalBytesLimit(message_size_maximum, message_size_warning);
|
|
||||||
+ stream.SetTotalBytesLimit(message_size_maximum);
|
|
||||||
if(!message->ParseFromCodedStream(&stream))
|
|
||||||
{
|
|
||||||
error(ErrorCode::ParseFailedError, "Failed to parse message:" + std::string(wire_message->data));
|
|
|
@ -1,33 +0,0 @@
|
||||||
# Template file for 'libArcus'
|
|
||||||
pkgname=libArcus
|
|
||||||
version=4.13.1
|
|
||||||
revision=8
|
|
||||||
build_style=cmake
|
|
||||||
configure_args="-DBUILD_EXAMPLES=OFF"
|
|
||||||
hostmakedepends="protobuf python3-sip-devel python3-setuptools"
|
|
||||||
makedepends="protobuf-devel libprotoc-devel python3-devel python3-sip-devel"
|
|
||||||
depends="python3-sip"
|
|
||||||
short_desc="Communication library for Ultimaker software components"
|
|
||||||
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
|
|
||||||
license="LGPL-3.0-or-later"
|
|
||||||
homepage="https://github.com/Ultimaker/libArcus"
|
|
||||||
distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
|
|
||||||
checksum=51e865cb648750ad9ea315fa7632ee7016890273f911270f60d28c8a4bc50240
|
|
||||||
|
|
||||||
libArcus-devel_package() {
|
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
|
||||||
short_desc+=" - development files"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/include
|
|
||||||
vmove usr/lib/cmake
|
|
||||||
vmove "usr/lib/*.so"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
libArcus-python3_package() {
|
|
||||||
lib32disabled=yes
|
|
||||||
short_desc+=" - Python3 bindings"
|
|
||||||
pkg_install() {
|
|
||||||
vmove "usr/lib/python3*"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -339,6 +339,9 @@ replaces="
|
||||||
ladish-devel<=1_11
|
ladish-devel<=1_11
|
||||||
ladish<=1_11
|
ladish<=1_11
|
||||||
laditools<=1.1.0_3
|
laditools<=1.1.0_3
|
||||||
|
libArcus<=4.13.1_8
|
||||||
|
libArcus-devel<=4.13.1_8
|
||||||
|
libArcus-python3<=4.13.1_8
|
||||||
libXevie<=1.0.3_8
|
libXevie<=1.0.3_8
|
||||||
libXfontcache<=1.0.5_2
|
libXfontcache<=1.0.5_2
|
||||||
libXxf86misc<=1.0.4_1
|
libXxf86misc<=1.0.4_1
|
||||||
|
|
Loading…
Add table
Reference in a new issue