Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Oct 3, 2025

Version 3.1 removed this definition, thinking it was safe because we didn't use it anywhere, didn't document it, and what it expands to (using namespace OIIO) isn't any longer than the macro name, so is pointless to use.

But downstream projects did use it. Oops.

Version 3.2 removed this definition because we didn't use it anywhere.

But downstream projects did. Oops.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz marked this pull request as ready for review October 3, 2025 20:55
@lgritz
Copy link
Collaborator Author

lgritz commented Oct 3, 2025

The thing I know is broken as a result of this is Blender, but @jessey-git says just leave it as-is and he'll fix on his end.

I will leave this PR up in case anybody else runs across this problem and wants it fixed. But if after a week I don't hear back from anybody saying yes they need it, I will close without merging.

@mattyjams
Copy link

Hi @lgritz!

I actually just stumbled across this myself trying to build OpenUSD against the recently released 3.1.6.1, as it seems there are two usages of OIIO_NAMESPACE_USING in the current dev branch:

https://github.com/PixarAnimationStudios/OpenUSD/blob/a7c0637241a4fedce0338337bd7c63746c3d06eb/pxr/imaging/plugin/hioOiio/metadata.cpp#L21
https://github.com/PixarAnimationStudios/OpenUSD/blob/a7c0637241a4fedce0338337bd7c63746c3d06eb/pxr/imaging/plugin/hioOiio/oiioImage.cpp#L36

I can propose a PR to OpenUSD to change those to just using namespace OIIO; if that sounds right to you?

@jessey-git
Copy link
Contributor

Lol... I just posted on slack about this and yes please open a PR else I will do so tomorrow.

@mattyjams
Copy link

Sounds good, the OpenUSD PR is here:
PixarAnimationStudios/OpenUSD#3839

Thank you both!

@lgritz
Copy link
Collaborator Author

lgritz commented Oct 4, 2025

Oh dear, that's two package impacted. I'll merge this and put out a patch release. So sorry for botching this.

@lgritz lgritz merged commit b82f349 into AcademySoftwareFoundation:main Oct 4, 2025
58 of 59 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Oct 4, 2025
…ftwareFoundation#4920)

Version 3.1 removed this definition, thinking it was safe because we
didn't use it anywhere, didn't document it, and what it expands to
(`using namespace OIIO`) isn't any longer than the macro name, so is
pointless to use.

But downstream projects did use it. Oops.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz deleted the lg-namespace branch October 4, 2025 20:50
@lgritz lgritz added bug Crash or wrong behavior of an existing feature. core APIs Affecting public APIs of core functionality classes, such as ImageInput, ImageOutput, ImageBuf. labels Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Crash or wrong behavior of an existing feature. core APIs Affecting public APIs of core functionality classes, such as ImageInput, ImageOutput, ImageBuf.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants