Skip to content

Commit

Permalink
remove patch, add patch
Browse files Browse the repository at this point in the history
old one included in 2.5.0
add new string patch
  • Loading branch information
ax3l committed Oct 3, 2019
1 parent 5782d16 commit 626bf04
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 62 deletions.
60 changes: 0 additions & 60 deletions recipe/0001-pyd-path-msvc.patch

This file was deleted.

24 changes: 24 additions & 0 deletions recipe/0001-string-compare.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 013d1a62e6f007dad78dc9c5985ea15241a7eec1 Mon Sep 17 00:00:00 2001
From: Axel Huebl <[email protected]>
Date: Thu, 3 Oct 2019 15:50:45 -0700
Subject: [PATCH] OSX: Fix JSON Compile Issue

Cast to `std::string` to avoid ambiguity in `std::string::compare`.
---
source/adios2/toolkit/query/JsonWorker.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/adios2/toolkit/query/JsonWorker.cpp b/source/adios2/toolkit/query/JsonWorker.cpp
index 6af485879..d2657382a 100644
--- a/source/adios2/toolkit/query/JsonWorker.cpp
+++ b/source/adios2/toolkit/query/JsonWorker.cpp
@@ -124,7 +124,7 @@ void JsonWorker::ParseJson()
}

auto ioO = jsonObj.find("io");
- auto ioName = (*ioO)["name"];
+ std::string const ioName = (*ioO)["name"];
if (m_SourceReader->m_IO.m_Name.compare(ioName) != 0)
throw std::ios_base::failure("invalid query io. Expecting io name = " +
m_SourceReader->m_IO.m_Name);

4 changes: 2 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ source:
url: https://github.com/ornladios/ADIOS2/archive/v{{ version }}.tar.gz
sha256: {{ sha256 }}
patches:
# FIXME: https://github.com/ornladios/ADIOS2/pull/1593
- 0001-pyd-path-msvc.patch
# FIXME: https://github.com/ornladios/ADIOS2/pull/1805
- 0001-string-compare.patch

build:
number: {{ build }}
Expand Down

0 comments on commit 626bf04

Please sign in to comment.