Skip to content

Commit

Permalink
[openimageio] Update to 2.4.11.1 (#31489)
Browse files Browse the repository at this point in the history
* [openimageio] Update to 2.4.11.1.

* [openimageio] Add upstream patch to fix MSVC build

* [openimageio] Update baseline.
  • Loading branch information
FtZPetruska authored May 18, 2023
1 parent df788a2 commit 278f429
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
13 changes: 13 additions & 0 deletions ports/openimageio/fix-msvc-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/python/py_oiio.cpp b/src/python/py_oiio.cpp
index 6031d2c23..e71105da5 100644
--- a/src/python/py_oiio.cpp
+++ b/src/python/py_oiio.cpp
@@ -153,7 +153,7 @@ oiio_bufinfo::oiio_bufinfo(const py::buffer_info& pybuf, int nchans, int width,
format = TypeUnknown; // No idea what's going on -- error
error = Strutil::fmt::format(
"Python array shape is [{:,}] but expecting h={}, w={}, ch={}",
- cspan<ssize_t>(pybuf.shape), height, width, nchans);
+ cspan<py::ssize_t>(pybuf.shape), height, width, nchans);
}
} else if (pixeldims == 1) {
// Reading a 1D scanline span
3 changes: 2 additions & 1 deletion ports/openimageio/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO OpenImageIO/oiio
REF "v${VERSION}"
SHA512 e7dd7aba8dc0baa9bc50f362c21119bf4008edbd03a0c9f31bb03e01b5b0cc18c39f8a368885a4d756f6b475965138409c7e91eeae90b0ebc18d253ff314f025
SHA512 e8b232bb3c1bb66cc6c4f023dcf6e29633a1aee64c49a2860c2157c0885960c40114ee3988d4f132e6e55670b8b1e01b5b4cd4462651ae047a89d22de527581c
HEAD_REF master
PATCHES
fix-dependencies.patch
Expand All @@ -11,6 +11,7 @@ vcpkg_from_github(
imath-version-guard.patch
fix-openimageio_include_dir.patch
fix-openexr-target-missing.patch
fix-msvc-build.patch
)

file(REMOVE_RECURSE "${SOURCE_PATH}/ext")
Expand Down
3 changes: 1 addition & 2 deletions ports/openimageio/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "openimageio",
"version": "2.4.9.0",
"port-version": 1,
"version": "2.4.11.1",
"description": "A library for reading and writing images, and a bunch of related classes, utilities, and application.",
"homepage": "https://github.com/OpenImageIO/oiio",
"license": "BSD-3-Clause",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5913,8 +5913,8 @@
"port-version": 4
},
"openimageio": {
"baseline": "2.4.9.0",
"port-version": 1
"baseline": "2.4.11.1",
"port-version": 0
},
"openjpeg": {
"baseline": "2.5.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/openimageio.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7c06030b088b87143ff7a85c23af606bbd967496",
"version": "2.4.11.1",
"port-version": 0
},
{
"git-tree": "34493d776df3b1fee4ba5e01c882d1237a135362",
"version": "2.4.9.0",
Expand Down

0 comments on commit 278f429

Please sign in to comment.