Skip to content

Commit

Permalink
imath: update to 3.1.10.
Browse files Browse the repository at this point in the history
## Version 3.1.10 (January 26, 2024)

Patch release with various build/bug fixes.

Build fixes:

  - Fix a problem where downstream projects using Imath would build
    python bindings even if they weren't requested.
  - Fix for missing `std::bit_cast`
  - Fix missing/necessary use of IMATH_HOSTDEVICE
  - IMATH_INSTALL_PKG_CONFIG is now on by default, even on Windows
  - Fix calling default constructor by uniform init in TypeTraits
  - Fix redundant PYIMATH_EXPORTS causing compile issues on Windows Clang
  - Update to SO versioning policy:

    This change adopts a policy of appending the ``MAJOR.MINOR.PATCH``
    software release name to the ``SONAME`` to form the real name of the
    shared library.

    See [website/install.rst](website/install.rst) and [PR
    #339](AcademySoftwareFoundation/openexr#339)
    for more details.

Bug fixes:

  - Fix half to float giving wrong results on older x86_64 CPUs on Windows

Other changes:

  - succ()/pred() now use std::nextafter().
  - Expand epsilon bounds for m44x pyImath test.
  - Rename "docs" to "website".
  - Add missing copyright/license identifiers.

### Merged Pull Requests

* \[[#363](AcademySoftwareFoundation/Imath#363]
Update install instructions to reflect new SO versioning policy

* \[[#362](AcademySoftwareFoundation/Imath#362]
Require sphinx 5.0

* \[[#361](AcademySoftwareFoundation/Imath#361]
src/python/config/ModuleDefine.cmake: do not install a cmake file exporting targets for dependent projects

* \[[#358](AcademySoftwareFoundation/Imath#358]
Fix half to float giving wrong results on older x86_64 CPUs on Windows

* \[[#353](AcademySoftwareFoundation/Imath#353]
Changed implementation of succ and pred to use std::nextafter.

* \[[#350](AcademySoftwareFoundation/Imath#350]
Fix check for the availability of std::bit_cast

* \[[#349](AcademySoftwareFoundation/Imath#349]
IMATH_INSTALL_PKG_CONFIG is on by default, even on Windows

* \[[#347](AcademySoftwareFoundation/Imath#347]
Export Imath from the build tree and so on.

* \[[#344](AcademySoftwareFoundation/Imath#344]
rm unnecessary IMATH_HOSTDEVICE attributes.

* \[[#342](AcademySoftwareFoundation/Imath#342]
Add missing copyright/license identifiers

* \[[#341](AcademySoftwareFoundation/Imath#341]
Remove unnecessary files

* \[[#340](AcademySoftwareFoundation/Imath#340]
Fix calling default constructor by uniform init.

* \[[#339](AcademySoftwareFoundation/Imath#339]
Update and simply SO versioning policy

* \[[#338](AcademySoftwareFoundation/Imath#338]
Rename "docs" to "website"

* \[[#333](AcademySoftwareFoundation/Imath#333]
Expand epsilon bounds for m44x pyImath test

* \[[#331](AcademySoftwareFoundation/Imath#331]
Fixed redundant PYIMATH_EXPORTS causing compile issues on Windows Clang

* \[[#326](AcademySoftwareFoundation/Imath#326]
Use security@openexr.com for consistency

* \[[#320](AcademySoftwareFoundation/Imath#320]
Add missing IMATH_HOSTDEVICE to Matrix33<T>::invert(bool)
  • Loading branch information
wiz committed Jan 28, 2024
1 parent 59ee942 commit 34721e1
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 8 deletions.
4 changes: 2 additions & 2 deletions math/imath/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.10 2023/07/18 18:30:01 nia Exp $
# $NetBSD: Makefile,v 1.11 2024/01/28 12:55:22 wiz Exp $

DISTNAME= imath-3.1.9
DISTNAME= imath-3.1.10
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GITHUB:=AcademySoftwareFoundation/}
GITHUB_PROJECT= Imath
Expand Down
4 changes: 2 additions & 2 deletions math/imath/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.8 2023/06/06 08:01:09 wiz Exp $
@comment $NetBSD: PLIST,v 1.9 2024/01/28 12:55:22 wiz Exp $
include/Imath/ImathBox.h
include/Imath/ImathBoxAlgo.h
include/Imath/ImathColor.h
Expand Down Expand Up @@ -40,6 +40,6 @@ lib/cmake/Imath/ImathTargets-release.cmake
lib/cmake/Imath/ImathTargets.cmake
lib/libImath-3_1.so
lib/libImath-3_1.so.29
lib/libImath-3_1.so.29.8.0
lib/libImath-3_1.so.29.9.0
lib/libImath.so
lib/pkgconfig/Imath.pc
9 changes: 5 additions & 4 deletions math/imath/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.10 2023/06/06 08:01:09 wiz Exp $
$NetBSD: distinfo,v 1.11 2024/01/28 12:55:22 wiz Exp $

BLAKE2s (imath-3.1.9.tar.gz) = 3e37b4e025ce132b6bf9ab085751f294581e532c0097701493cea0c38719d00a
SHA512 (imath-3.1.9.tar.gz) = ad96b2ac306fc13c01e8ea3256f885499c3f545be327feaba0f5e093b70b544bcca6f8b353fa7e35107aae515c19caced44331a95d0414f367ead4691ec73564
Size (imath-3.1.9.tar.gz) = 598497 bytes
BLAKE2s (imath-3.1.10.tar.gz) = 5aaf7d6b85a92c25bf1e539f4cc4ee1bbe3efc18efbe58b84f52c30cc159f8b3
SHA512 (imath-3.1.10.tar.gz) = 6a5bcb3f31880edd266c7c5d757ce233e91dad4007f4c411c06a58494ca64517a3df22fd3491837bb8ac211c4c5f8ee679b68c0fbcf9c31c8f2d7c7bb9d253e8
Size (imath-3.1.10.tar.gz) = 595059 bytes
SHA1 (patch-src_Imath_ImathFun.cpp) = e85edd2fc1dd2dd5e5d799570de308aa5a12faef
40 changes: 40 additions & 0 deletions math/imath/patches/patch-src_Imath_ImathFun.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
$NetBSD: patch-src_Imath_ImathFun.cpp,v 1.1 2024/01/28 12:55:22 wiz Exp $

src/Imath/ImathFun.cpp: In function 'float Imath_3_1::succf(float)':
src/Imath/ImathFun.cpp:13:12: error: 'isfinite' was not declared in this scope; did you mean 'std::isfinite'?
13 | return isfinite(f) ?
| ^~~~~~~~
| std::isfinite

--- src/Imath/ImathFun.cpp.orig 2024-01-28 12:53:28.995862273 +0000
+++ src/Imath/ImathFun.cpp
@@ -10,25 +10,25 @@ IMATH_INTERNAL_NAMESPACE_SOURCE_ENTER

float succf(float f) IMATH_NOEXCEPT
{
- return isfinite(f) ?
+ return std::isfinite(f) ?
std::nextafter(f, std::numeric_limits<float>::infinity()) : f;
}

float predf(float f) IMATH_NOEXCEPT
{
- return isfinite(f) ?
+ return std::isfinite(f) ?
std::nextafter(f, -std::numeric_limits<float>::infinity()) : f;
}

double succd(double d) IMATH_NOEXCEPT
{
- return isfinite(d) ?
+ return std::isfinite(d) ?
std::nextafter(d, std::numeric_limits<double>::infinity()) : d;
}

double predd(double d) IMATH_NOEXCEPT
{
- return isfinite(d) ?
+ return std::isfinite(d) ?
std::nextafter(d, -std::numeric_limits<double>::infinity()) : d;
}

0 comments on commit 34721e1

Please sign in to comment.