mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
czmqpp, czmq3: remove, outdated
This commit is contained in:
parent
5ba6f78efa
commit
3f7a17dee1
@ -2,7 +2,7 @@
|
|||||||
, pkgconfig, cmake, doxygen
|
, pkgconfig, cmake, doxygen
|
||||||
, libopenshot-audio, imagemagick, ffmpeg
|
, libopenshot-audio, imagemagick, ffmpeg
|
||||||
, swig, python3
|
, swig, python3
|
||||||
, unittest-cpp, cppzmq, czmqpp
|
, unittest-cpp, cppzmq, zeromq
|
||||||
, qtbase, qtmultimedia }:
|
, qtbase, qtmultimedia }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ imagemagick ffmpeg swig python3 unittest-cpp
|
[ imagemagick ffmpeg swig python3 unittest-cpp
|
||||||
cppzmq czmqpp qtbase qtmultimedia ];
|
cppzmq zeromq qtbase qtmultimedia ];
|
||||||
|
|
||||||
LIBOPENSHOT_AUDIO_DIR = libopenshot-audio;
|
LIBOPENSHOT_AUDIO_DIR = libopenshot-audio;
|
||||||
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
|
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
{ stdenv, fetchurl, zeromq }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
version = "3.0.2";
|
|
||||||
pname = "czmq";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "http://download.zeromq.org/${pname}-${version}.tar.gz";
|
|
||||||
sha256 = "16k9awrhdsymx7dnmvqcnkaq8lz8x8zppy6sh7ls8prpd6mkkjlb";
|
|
||||||
};
|
|
||||||
|
|
||||||
patches = [ ./czmq3-gcc7.patch ];
|
|
||||||
|
|
||||||
# Fix build on Glibc 2.24.
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
||||||
|
|
||||||
# Needs to be propagated for the .pc file to work
|
|
||||||
propagatedBuildInputs = [ zeromq ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = http://czmq.zeromq.org/;
|
|
||||||
description = "High-level C Binding for ZeroMQ";
|
|
||||||
license = licenses.mpl20;
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,26 +0,0 @@
|
|||||||
diff --git a/src/zgossip_engine.inc b/src/zgossip_engine.inc
|
|
||||||
index 37dbb4eb..727aaa9b 100644
|
|
||||||
--- a/src/zgossip_engine.inc
|
|
||||||
+++ b/src/zgossip_engine.inc
|
|
||||||
@@ -258,7 +258,7 @@ engine_set_log_prefix (client_t *client, const char *string)
|
|
||||||
{
|
|
||||||
if (client) {
|
|
||||||
s_client_t *self = (s_client_t *) client;
|
|
||||||
- snprintf (self->log_prefix, sizeof (self->log_prefix) - 1,
|
|
||||||
+ snprintf (self->log_prefix, sizeof (self->log_prefix),
|
|
||||||
"%6d:%-33s", self->unique_id, string);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
diff --git a/src/zsys.c b/src/zsys.c
|
|
||||||
index 4d0bb8a1..f07db9c8 100644
|
|
||||||
--- a/src/zsys.c
|
|
||||||
+++ b/src/zsys.c
|
|
||||||
@@ -1071,7 +1071,7 @@ zsys_run_as (const char *lockfile, const char *group, const char *user)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// We record the current process id in the lock file
|
|
||||||
- char pid_buffer [10];
|
|
||||||
+ char pid_buffer [32];
|
|
||||||
snprintf (pid_buffer, sizeof (pid_buffer), "%6d\n", getpid ());
|
|
||||||
if (write (handle, pid_buffer, strlen (pid_buffer)) != strlen (pid_buffer)) {
|
|
||||||
zsys_error ("cannot write to lockfile: %s", strerror (errno));
|
|
@ -1,28 +0,0 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, czmq }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "czmqpp";
|
|
||||||
version = "1.2.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "zeromq";
|
|
||||||
repo = "czmqpp";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0z8lwq53yk4h7pgibicx3q9idz15qb95r0pjpz0j5vql6qh46rja";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ czmq ];
|
|
||||||
|
|
||||||
# https://github.com/zeromq/czmqpp/issues/42
|
|
||||||
patches = [ ./socket.patch ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
inherit (src.meta) homepage;
|
|
||||||
description = "C++ wrapper for czmq. Aims to be minimal, simple and consistent";
|
|
||||||
license = licenses.lgpl3;
|
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
|
||||||
maintainers = with maintainers; [ chris-martin ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
--- /src/socket.cpp
|
|
||||||
+++ /src/socket.cpp
|
|
||||||
@@ -60,12 +60,12 @@
|
|
||||||
int socket::bind(const std::string& address)
|
|
||||||
{
|
|
||||||
// format-security: format not a string literal and no format arguments.
|
|
||||||
- return zsocket_bind(self_, address.c_str());
|
|
||||||
+ return zsocket_bind(self_, "%s", address.c_str());
|
|
||||||
}
|
|
||||||
int socket::connect(const std::string& address)
|
|
||||||
{
|
|
||||||
// format-security: format not a string literal and no format arguments.
|
|
||||||
- return zsocket_connect(self_, address.c_str());
|
|
||||||
+ return zsocket_connect(self_, "%s", address.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator==(const socket& sock_a, const socket& sock_b)
|
|
@ -30,8 +30,6 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ stdenv.lib.optional (libmysqlclient != null) libmysqlclient
|
] ++ stdenv.lib.optional (libmysqlclient != null) libmysqlclient
|
||||||
++ stdenv.lib.optional stdenv.isLinux systemd;
|
++ stdenv.lib.optional stdenv.isLinux systemd;
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
@ -95,9 +93,7 @@ stdenv.mkDerivation rec {
|
|||||||
(mkFlag (hadoop != null) "omhdfs")
|
(mkFlag (hadoop != null) "omhdfs")
|
||||||
(mkFlag (rdkafka != null) "omkafka")
|
(mkFlag (rdkafka != null) "omkafka")
|
||||||
(mkFlag (libmongo-client != null) "ommongodb")
|
(mkFlag (libmongo-client != null) "ommongodb")
|
||||||
(mkFlag (czmq != null) "imzmq3")
|
|
||||||
(mkFlag (czmq != null) "imczmq")
|
(mkFlag (czmq != null) "imczmq")
|
||||||
(mkFlag (czmq != null) "omzmq3")
|
|
||||||
(mkFlag (czmq != null) "omczmq")
|
(mkFlag (czmq != null) "omczmq")
|
||||||
(mkFlag (rabbitmq-c != null) "omrabbitmq")
|
(mkFlag (rabbitmq-c != null) "omrabbitmq")
|
||||||
(mkFlag (hiredis != null) "omhiredis")
|
(mkFlag (hiredis != null) "omhiredis")
|
||||||
|
@ -2020,7 +2020,6 @@ in
|
|||||||
|
|
||||||
rsyslog = callPackage ../tools/system/rsyslog {
|
rsyslog = callPackage ../tools/system/rsyslog {
|
||||||
hadoop = null; # Currently Broken
|
hadoop = null; # Currently Broken
|
||||||
czmq = czmq3;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
rsyslog-light = rsyslog.override {
|
rsyslog-light = rsyslog.override {
|
||||||
@ -14448,13 +14447,7 @@ in
|
|||||||
|
|
||||||
cppzmq = callPackage ../development/libraries/cppzmq {};
|
cppzmq = callPackage ../development/libraries/cppzmq {};
|
||||||
|
|
||||||
czmq3 = callPackage ../development/libraries/czmq/3.x.nix {};
|
czmq = callPackage ../development/libraries/czmq/default.nix {};
|
||||||
czmq4 = callPackage ../development/libraries/czmq/4.x.nix {};
|
|
||||||
czmq = czmq4;
|
|
||||||
|
|
||||||
czmqpp = callPackage ../development/libraries/czmqpp {
|
|
||||||
czmq = czmq3;
|
|
||||||
};
|
|
||||||
|
|
||||||
zmqpp = callPackage ../development/libraries/zmqpp { };
|
zmqpp = callPackage ../development/libraries/zmqpp { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user