Unverified Commit 79fc8ade authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

otb: 10.0-unstable-2025-02-13 -> 10.0-unstable-2025-04-03 (#396302)

parents da27f906 8b3aa4bb
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
  tinyxml,

  # otb modules
  enableFFTW ? false,
  enableFeatureExtraction ? true,
  enableHyperspectral ? true,
  enableLearning ? true,
@@ -50,9 +51,15 @@ let
  # filter out gdcm, libminc from list of ITK deps as it's not needed for OTB
  itkVersion = "5.3.0";
  itkMajorMinorVersion = lib.versions.majorMinor itkVersion;
  itkDepsToRemove = [
  itkDepsToRemove =
    [
      "gdcm"
      "libminc"
    ]
    ++ optionals (!enableFFTW) [
      # remove fftw to avoid GPL contamination
      # https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/2454#note_112821
      "fftw"
    ];
  itkIsInDepsToRemove = dep: builtins.any (d: d == dep.name) itkDepsToRemove;

@@ -196,8 +203,8 @@ let

    propagatedBuildInputs =
      lib.lists.filter (pkg: !(itkIsInDepsToRemove pkg)) oldArgs.propagatedBuildInputs or [ ]
      ++ [
        # the only missing dependency for OTB from itk propagated list
      ++ lib.optionals enableFFTW [
        # the only missing dependency for OTB from itk propagated list if FFTW option is enabled
        fftwFloat
      ];

@@ -208,13 +215,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
  pname = "otb";
  version = "10.0-unstable-2025-02-13";
  version = "10.0-unstable-2025-04-03";

  src = fetchFromGitHub {
    owner = "orfeotoolbox";
    repo = "otb";
    rev = "34c96ef53bb94985a1358d5c3de1a5ac6dfecf18";
    hash = "sha256-QCLuUryVi+r8sQGxvrh9G91uLxuRju6l3LxVJO3VzXM=";
    rev = "93649b68f54975a1a48a0acd49f2602a55fc8032";
    hash = "sha256-S6yhV//qlKdWWcT9J1p64WuVS0QNepIYTr/t4JvyEwE=";
  };

  patches = [
@@ -254,6 +261,7 @@ stdenv.mkDerivation (finalAttrs: {
    (lib.cmakeBool "OTBGroup_ThirdParty" enableThirdParty)
    (lib.cmakeBool "OTB_WRAP_PYTHON" enablePython)
    (lib.cmakeBool "BUILD_TESTING" finalAttrs.doInstallCheck)
    (lib.cmakeBool "OTB_USE_FFTW" enableFFTW)
  ];

  propagatedBuildInputs =
@@ -267,7 +275,6 @@ stdenv.mkDerivation (finalAttrs: {
      muparserx
      opencv
      otb-itk
      otb-shark
      perl
      tinyxml
    ]