Change:
jesec-libtorrent tests fail, making the build fail. Steps to reproduce the behavior: jesec-libtorrent fails, failing the build I expect it to build succesfully ! ! I'm building the package with the help of morph to deploy on a server, though this shouldn't really have an impact.
This happened between and . I'll bisect later, thanks for the heads up!
The test is expecting to be returned by , but is instead getting . I'm... really not sure how to move forward with this, short of disabling the test.
Next time copy-paste the error message.
Perhaps triggered by upgrading glibc from 2.33 to 2.34? (some change in getaddrinfo() behavior)
I ruled that out initially since I didn't see anything mentioned in the changelog about getaddrinfo. I'll give it a try, though.
This has been fixed by .

Discussion:
<ins> { lib , stdenv , fetchFromGitHub , cmake , curl , gtest , libtorrent , ncurses , jsonRpcSupport ? true, nlohmann_json , xmlRpcSupport ? true, xmlrpc_c }: stdenv.mkDerivation rec { pname = "jesec-rtorrent"; version = "0.9.8-r16"; src = fetchFromGitHub { owner = "jesec"; repo = "rtorrent"; rev = "v${version}"; hash = "sha256-i7c1jSawHshj1kaXl8tdpelIKU24okeg9K5/+ht6t2k="; }; nativeBuildInputs = [ cmake ]; buildInputs = [ curl libtorrent ncurses ] ++ lib.optional jsonRpcSupport nlohmann_json ++ lib.optional xmlRpcSupport xmlrpc_c; cmakeFlags = [ "-DUSE_RUNTIME_CA_DETECTION=NO" ] ++ lib.optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO" ++ lib.optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO"; doCheck = true; checkInputs = [ gtest ]; prePatch = '' substituteInPlace src/main.cc  --replace "/etc/rtorrent/rtorrent.rc" "${placeholder "out"}/etc/rtorrent/rtorrent.rc" ''; postFixup = '' mkdir -p $out/etc/rtorrent cp $src/doc/rtorrent.rc $out/etc/rtorrent/rtorrent.rc ''; meta = with lib; { description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach (jesec's fork)"; homepage = "https://github.com/jesec/rtorrent"; license = licenses.gpl2Plus; maintainers = with maintainers; [ winter AndersonTorres ]; platforms = platforms.linux; }; } </ins>

<ins> { lib , stdenv , fetchFromGitHub , cmake , gtest , openssl , zlib }: stdenv.mkDerivation rec { pname = "jesec-libtorrent"; version = "0.13.8-r4"; src = fetchFromGitHub { owner = "jesec"; repo = "libtorrent"; rev = "v${version}"; hash = "sha256-jC/hgGSi2qy+ToZgdxl1PhASLYbUL0O8trX0th2v5H0="; }; nativeBuildInputs = [ cmake ]; buildInputs = [ openssl zlib ]; # Disabled because a test is flaky; see https://github.com/jesec/libtorrent/issues/4. # doCheck = true; preCheck = '' export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD ''; checkInputs = [ gtest ]; meta = with lib; { homepage = "https://github.com/jesec/libtorrent"; description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code (jesec's fork)"; license = licenses.gpl2Plus; maintainers = with maintainers; [ winter AndersonTorres ]; platforms = platforms.linux; }; } </ins>

<ins> { lib , stdenv , fetchurl , fetchFromGitHub , autoreconfHook , autoconf-archive , cppunit , curl , libsigcxx , libtool , libtorrent , ncurses , openssl , pkg-config , xmlrpc_c , zlib }: stdenv.mkDerivation rec { pname = "rakshasa-rtorrent"; version = "0.9.8+date=2021-08-07"; src = fetchFromGitHub { owner = "rakshasa"; repo = "rtorrent"; rev = "a6bc99bb821d86b3b0633552db3fbd0a22497657"; hash = "sha256-HTwAs8dfZVXfLRNiT6QpjKGnuahHfoMfYWqdKkedUL0="; }; nativeBuildInputs = [ autoconf-archive autoreconfHook pkg-config ]; buildInputs = [ cppunit curl libsigcxx libtool libtorrent ncurses openssl xmlrpc_c zlib ]; configureFlags = [ "--with-xmlrpc-c" "--with-posix-fallocate" ]; enableParallelBuilding = true; postInstall = '' mkdir -p $out/share/man/man1 $out/share/doc/rtorrent mv doc/old/rtorrent.1 $out/share/man/man1/rtorrent.1 mv doc/rtorrent.rc $out/share/doc/rtorrent/rtorrent.rc ''; meta = with lib; { homepage = "https://rakshasa.github.io/rtorrent/"; description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach"; license = licenses.gpl2Plus; maintainers = with maintainers; [ ebzzry codyopel ]; platforms = platforms.unix; }; } </ins>

<ins> # Note: this is rakshasa's version of libtorrent, used mainly by rtorrent. # *Do not* mistake it by libtorrent-rasterbar, used by Deluge, qbitttorent etc. { lib , stdenv , fetchFromGitHub , autoconf-archive , autoreconfHook , cppunit , libsigcxx , openssl , pkg-config , zlib }: stdenv.mkDerivation rec { pname = "rakshasa-libtorrent"; version = "0.13.8+date=2021-08-07"; src = fetchFromGitHub { owner = "rakshasa"; repo = "libtorrent"; rev = "53596afc5fae275b3fb5753a4bb2a1a7f7cf6a51"; hash = "sha256-gyl/jfbptHz/gHkkVGWShhv1Z7o9fa9nJIz27U2A6wg="; }; nativeBuildInputs = [ autoconf-archive autoreconfHook pkg-config ]; buildInputs = [ cppunit libsigcxx openssl zlib ]; enableParallelBuilding = true; meta = with lib; { homepage = "https://github.com/rakshasa/libtorrent"; description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code"; license = licenses.gpl2Plus; maintainers = with maintainers; [ ebzzry codyopel ]; platforms = platforms.unix; }; } </ins>

<del> { lib , stdenv , fetchFromGitHub , cmake , gtest , openssl , zlib }: stdenv.mkDerivation rec { pname = "jesec-libtorrent"; version = "0.13.8-r3"; src = fetchFromGitHub { owner = "jesec"; repo = "libtorrent"; rev = "v${version}"; hash = "sha256-S3DOKzXkvU+ZJxfrxwLXCVBnepzmiZ+3iiQqz084BEk="; }; nativeBuildInputs = [ cmake ]; buildInputs = [ openssl zlib ]; doCheck = true; preCheck = '' export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD ''; checkInputs = [ gtest ]; meta = with lib; { homepage = "https://github.com/jesec/libtorrent"; description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code (jesec's fork)"; license = licenses.gpl2Plus; maintainers = with maintainers; [ winter AndersonTorres ]; platforms = platforms.linux; }; } </del>

<del> { lib , stdenv , fetchFromGitHub , cmake , curl , gtest , libtorrent , ncurses , jsonRpcSupport ? true, nlohmann_json , xmlRpcSupport ? true, xmlrpc_c }: stdenv.mkDerivation rec { pname = "jesec-rtorrent"; version = "0.9.8-r15"; src = fetchFromGitHub { owner = "jesec"; repo = "rtorrent"; rev = "v${version}"; hash = "sha256-yYOw8wsiQd478JijLgPtEWsw2/ewd46re+t9D705rmk="; }; nativeBuildInputs = [ cmake ]; buildInputs = [ curl libtorrent ncurses ] ++ lib.optional jsonRpcSupport nlohmann_json ++ lib.optional xmlRpcSupport xmlrpc_c; cmakeFlags = [ "-DUSE_RUNTIME_CA_DETECTION=NO" ] ++ lib.optional (!jsonRpcSupport) "-DUSE_JSONRPC=NO" ++ lib.optional (!xmlRpcSupport) "-DUSE_XMLRPC=NO"; doCheck = true; checkInputs = [ gtest ]; prePatch = '' substituteInPlace src/main.cc  --replace "/etc/rtorrent/rtorrent.rc" "${placeholder "out"}/etc/rtorrent/rtorrent.rc" ''; postFixup = '' mkdir -p $out/etc/rtorrent cp $src/doc/rtorrent.rc $out/etc/rtorrent/rtorrent.rc ''; meta = with lib; { description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach (jesec's fork)"; homepage = "https://github.com/jesec/rtorrent"; license = licenses.gpl2Plus; maintainers = with maintainers; [ winter AndersonTorres ]; platforms = platforms.linux; }; } </del>

<del> { lib , pkgs , callPackage }: rec { libtorrent = callPackage ./libtorrent.nix { }; rtorrent = callPackage ./rtorrent.nix { }; } </del>

<del> # Note: this is rakshasa's version of libtorrent, used mainly by rtorrent. # *Do not* mistake it by libtorrent-rasterbar, used by Deluge, qbitttorent etc. { lib , stdenv , fetchFromGitHub , autoconf-archive , autoreconfHook , cppunit , libsigcxx , openssl , pkg-config , zlib }: stdenv.mkDerivation rec { pname = "rakshasa-libtorrent"; version = "0.13.8+date=2021-08-07"; src = fetchFromGitHub { owner = "rakshasa"; repo = "libtorrent"; rev = "53596afc5fae275b3fb5753a4bb2a1a7f7cf6a51"; hash = "sha256-gyl/jfbptHz/gHkkVGWShhv1Z7o9fa9nJIz27U2A6wg="; }; nativeBuildInputs = [ autoconf-archive autoreconfHook pkg-config ]; buildInputs = [ cppunit libsigcxx openssl zlib ]; enableParallelBuilding = true; meta = with lib; { homepage = "https://github.com/rakshasa/libtorrent"; description = "A BitTorrent library written in C++ for *nix, with focus on high performance and good code"; license = licenses.gpl2Plus; maintainers = with maintainers; [ ebzzry codyopel ]; platforms = platforms.unix; }; } </del>

<del> { lib , stdenv , fetchurl , fetchFromGitHub , autoreconfHook , autoconf-archive , cppunit , curl , libsigcxx , libtool , libtorrent , ncurses , openssl , pkg-config , xmlrpc_c , zlib }: stdenv.mkDerivation rec { pname = "rakshasa-rtorrent"; version = "0.9.8+date=2021-08-07"; src = fetchFromGitHub { owner = "rakshasa"; repo = "rtorrent"; rev = "a6bc99bb821d86b3b0633552db3fbd0a22497657"; hash = "sha256-HTwAs8dfZVXfLRNiT6QpjKGnuahHfoMfYWqdKkedUL0="; }; nativeBuildInputs = [ autoconf-archive autoreconfHook pkg-config ]; buildInputs = [ cppunit curl libsigcxx libtool libtorrent ncurses openssl xmlrpc_c zlib ]; configureFlags = [ "--with-xmlrpc-c" "--with-posix-fallocate" ]; enableParallelBuilding = true; postInstall = '' mkdir -p $out/share/man/man1 $out/share/doc/rtorrent mv doc/old/rtorrent.1 $out/share/man/man1/rtorrent.1 mv doc/rtorrent.rc $out/share/doc/rtorrent/rtorrent.rc ''; meta = with lib; { homepage = "https://rakshasa.github.io/rtorrent/"; description = "An ncurses client for libtorrent, ideal for use with screen, tmux, or dtach"; license = licenses.gpl2Plus; maintainers = with maintainers; [ ebzzry codyopel ]; platforms = platforms.unix; }; } </del>

libnids = callPackage ../tools/networking/libnids { }; <del> rakshasa-rtorrent = recurseIntoAttrs (callPackage ../tools/networking/p2p/rakshasa-rtorrent { callPackage = newScope pkgs.rakshasa-rtorrent; }); rtorrent = rakshasa-rtorrent.rtorrent; libtorrent = rakshasa-rtorrent.libtorrent; jesec-rtorrent = recurseIntoAttrs (callPackage ../tools/networking/p2p/jesec-rtorrent { callPackage = newScope pkgs.jesec-rtorrent; }); </del> <ins> rtorrent = callPackage ../applications/networking/p2p/rakshasa-rtorrent { libtorrent = callPackage ../applications/networking/p2p/rakshasa-rtorrent/libtorrent.nix { }; }; </ins> <del> rtorrent-jesec = jesec-rtorrent.rtorrent; libtorrent-jesec = jesec-rtorrent.libtorrent; </del> <ins> jesec-rtorrent = callPackage ../applications/networking/p2p/jesec-rtorrent { libtorrent = callPackage ../applications/networking/p2p/jesec-rtorrent/libtorrent.nix { }; }; </ins> libmpack = callPackage ../development/libraries/libmpack { };