git.iko.soy/typeable/nixpkgs
on master help sign in
gem-config: fix zookeeper for gcc-8 (#68642)
commit13866ed4cfb5aa80b366ee7848b3ce179f33d3d3 authorMichael Fellinger <michael.fellinger@iohk.io> dateFri 13 Sep 2019, 16:01 (7 years ago) parent08d556c
2 files changed+18−1
pkgs/development/ruby-modules/gem-config/default.nix+7−1 pkgs/development/ruby-modules/gem-config/zookeeper-ftbfs-with-gcc-8.patch+11
pkgs/development/ruby-modules/gem-config/default.nix+7−1
@@ -19,7 +19,7 @@
1919
2020{ lib, fetchurl, writeScript, ruby, kerberos, libxml2, libxslt, python, stdenv, which
2121, libiconv, postgresql, v8_3_16_14, clang, sqlite, zlib, imagemagick
22−, pkgconfig , ncurses, xapian, gpgme, utillinux, fetchpatch, tzdata, icu, libffi
22+, pkgconfig , ncurses, xapian, gpgme, utillinux, tzdata, icu, libffi
2323, cmake, libssh2, openssl, mysql, darwin, git, perl, pcre, gecode_3, curl
2424, msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
2525, cairo, re2, rake, gobject-introspection, gdk-pixbuf, zeromq, czmq, graphicsmagick, libcxx
@@ -613,5 +613,11 @@ in
613613
614614 zookeeper = attrs: {
615615 buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools ];
616+ dontBuild = false;
617+ postPatch = ''
618+ sed -i ext/extconf.rb -e "4a \
619+ FileUtils.cp '${./zookeeper-ftbfs-with-gcc-8.patch}', 'patches/zkc-3.4.5-gcc-8.patch'
620+ "
621+ '';
616622 };
617623}
pkgs/development/ruby-modules/gem-config/zookeeper-ftbfs-with-gcc-8.patchnew file+11
@@ -0,0 +1,11 @@
1+--- zkc-3.4.5/c/src/zookeeper.c 2019-09-13 12:05:20.647034862 +0200
2++++ zkc-3.4.5/c/src/zookeeper.c 2019-09-13 12:05:49.125360269 +0200
3+@@ -3418,7 +3418,7 @@
4+
5+ static const char* format_endpoint_info(const struct sockaddr_storage* ep)
6+ {
7+- static char buf[128];
8++ static char buf[128 + 6]; // include space for the port :xxxxxx
9+ char addrstr[128];
10+ void *inaddr;
11+ #ifdef WIN32