+-------------------------------------------------------------------
+Thu Apr 24 12:20:13 CEST 2025 - aschnell@suse.com
+
+- pick boost process v1 when compiling with boost 1.88 or higher
+
-------------------------------------------------------------------
Mon Apr 07 10:05:23 CEST 2025 - aschnell@suse.com
/*
- * Copyright (c) 2020 SUSE LLC
+ * Copyright (c) [2020-2025] SUSE LLC
*
* All Rights Reserved.
*
#include <string>
+
+#include <boost/version.hpp>
+#if BOOST_VERSION < 108800
#include <boost/process.hpp>
+#else
+#define BOOST_PROCESS_VERSION 1
+#include <boost/process/v1/child.hpp>
+#include <boost/process/v1/io.hpp>
+#endif
#include "zypp-plugin.h"
int
ForwardingZyppPlugin::main()
{
- bp::child c(child_program,
- bp::std_out > child_out,
- bp::std_in < child_in);
+ bp::child child(child_program, bp::std_out > child_out, bp::std_in < child_in);
return ZyppPlugin::main();
}
ForwardingZyppPlugin::dispatch(const Message& msg)
{
write_message(child_in, msg);
+
return read_message(child_out);
}
throw runtime_error("Usage: forwarding-zypp-plugin ANOTHER_ZYPP_PLUGIN");
ForwardingZyppPlugin plugin(argv[1]);
+
return plugin.main();
}