yarp: 2.3.70.2 -> 3.12.1

This commit is contained in:
polyfloyd
2025-09-16 18:57:38 +02:00
parent c5cb903e37
commit 7e425ae380
2 changed files with 28 additions and 3 deletions
@@ -0,0 +1,13 @@
diff --git i/src/libYARP_companion/src/yarp/companion/impl/Companion.cmdSplit.cpp w/src/libYARP_companion/src/yarp/companion/impl/Companion.cmdSplit.cpp
index a9024cb03..f4860ac62 100644
--- i/src/libYARP_companion/src/yarp/companion/impl/Companion.cmdSplit.cpp
+++ w/src/libYARP_companion/src/yarp/companion/impl/Companion.cmdSplit.cpp
@@ -111,7 +111,7 @@ int Companion::cmdSplit(int argc, char *argv[])
inData->mutex.unlock();
if (siz != 0)
{
- yCInfo(COMPANION, std::string("Received a Bottle of "+std::to_string(siz)+" elements.").c_str());
+ yCInfo(COMPANION, "Received a Bottle of %z elements.", siz);
outPort = new BufferedPort<Bottle> [siz];
for (size_t i = 0; i < siz; i++)
{
+15 -3
View File
@@ -4,20 +4,30 @@
fetchFromGitHub,
cmake,
ace,
ycm-cmake-modules,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "yarp";
version = "2.3.70.2";
version = "3.12.1";
src = fetchFromGitHub {
owner = "robotology";
repo = "yarp";
rev = "v${version}";
sha256 = "0mphh899niy30xbjjwi9xpsliq8mladfldbbbjfngdrqfhiray1a";
hash = "sha256-6PyXMEUh0ENsRjbsXbwDr4ZqAulw8rgY5G0l/RewWys=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ ace ];
buildInputs = [
ace
ycm-cmake-modules
];
patches = [
# Weird string interpolation causes compilation to fail due to -Wformat-security.
./0001-format-security.patch
];
cmakeFlags = [
"-DYARP_COMPILE_UNMAINTAINED:BOOL=ON"
@@ -28,6 +38,8 @@ stdenv.mkDerivation rec {
postInstall = "mv ./$out/lib/*.so $out/lib/";
passthru.updateScript = nix-update-script { };
meta = {
description = "Yet Another Robot Platform";
homepage = "http://yarp.it";