Unverified Commit 720b0cfc authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

poco: 1.14.2 -> 1.15.1, adopt (#501671)

parents 424dcb94 baeefc92
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
diff --git a/Foundation/testsuite/src/ExpireLRUCacheTest.cpp b/Foundation/testsuite/src/ExpireLRUCacheTest.cpp
--- a/Foundation/testsuite/src/ExpireLRUCacheTest.cpp
+++ b/Foundation/testsuite/src/ExpireLRUCacheTest.cpp
@@ -336 +336 @@
-	CppUnit_addTest(pSuite, ExpireLRUCacheTest, testExpireN);
+	// CppUnit_addTest(pSuite, ExpireLRUCacheTest, testExpireN);
diff --git a/Foundation/testsuite/src/TimestampTest.cpp b/Foundation/testsuite/src/TimestampTest.cpp
--- a/Foundation/testsuite/src/TimestampTest.cpp
+++ b/Foundation/testsuite/src/TimestampTest.cpp
@@ -97 +97 @@
-	CppUnit_addTest(pSuite, TimestampTest, testTimestamp);
+	// CppUnit_addTest(pSuite, TimestampTest, testTimestamp);
diff --git a/Foundation/testsuite/src/UniqueExpireCacheTest.cpp b/Foundation/testsuite/src/UniqueExpireCacheTest.cpp
--- a/Foundation/testsuite/src/UniqueExpireCacheTest.cpp
+++ b/Foundation/testsuite/src/UniqueExpireCacheTest.cpp
@@ -248 +248 @@
-	CppUnit_addTest(pSuite, UniqueExpireCacheTest, testExpireN);
+	// CppUnit_addTest(pSuite, UniqueExpireCacheTest, testExpireN);
+18 −21
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  nix-update-script,
  pkg-config,
  zlib,
  pcre2,
@@ -13,19 +13,20 @@
  openssl,
  unixodbc,
  libmysqlclient,
  libpng,
  writableTmpDirAsHomeHook,
}:

stdenv.mkDerivation rec {
  pname = "poco";

  version = "1.14.2";
  version = "1.15.1";

  src = fetchFromGitHub {
    owner = "pocoproject";
    repo = "poco";
    hash = "sha256-koREkrfAHWfpqITN5afiXwZg37Wve2Ftx8sr8t2bSV4=";
    rev = "poco-${version}-release";
    hash = "sha256-JyjEs5aecKSdrNEaSs4Dzs3mAu2rhhBNAG93VLHdU3E=";
    tag = "poco-${version}-release";
  };

  nativeBuildInputs = [
@@ -36,6 +37,7 @@ stdenv.mkDerivation rec {
  buildInputs = [
    unixodbc
    libmysqlclient
    libpng
  ];

  propagatedBuildInputs = [
@@ -78,18 +80,8 @@ stdenv.mkDerivation rec {
      (lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" "--exclude-regex;'${excludeTestsRegex}'")
    ];

  patches = [
    # Remove on next release
    (fetchpatch {
      name = "disable-included-pcre-if-pcre-is-linked-staticly";
      # this happens when building pkgsStatic.poco
      url = "https://patch-diff.githubusercontent.com/raw/pocoproject/poco/pull/4879.patch";
      hash = "sha256-VFWuRuf0GPYFp43WKI8utl+agP+7a5biLg7m64EMnVo=";
    })
    # https://github.com/pocoproject/poco/issues/4977
    ./disable-flaky-tests.patch
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
  patches =
    lib.optionals stdenv.hostPlatform.isDarwin [
      ./disable-broken-tests-darwin.patch
    ]
    ++ lib.optionals stdenv.hostPlatform.isLinux [
@@ -109,11 +101,16 @@ stdenv.mkDerivation rec {
    done
  '';

  passthru.updateScript = nix-update-script {
    extraArgs = [ "--version-regex=poco-(.*)-release" ];
  };

  meta = {
    homepage = "https://pocoproject.org/";
    description = "Cross-platform C++ libraries with a network/internet focus";
    license = lib.licenses.boost;
    maintainers = with lib.maintainers; [
      hythera
      tomodachi94
    ];
    platforms = lib.platforms.unix;