Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901991 - media-gfx/openvdb: no template named 'auto_ptr' in namespace 'std'
Summary: media-gfx/openvdb: no template named 'auto_ptr' in namespace 'std'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-18 00:28 UTC by Violet Purcell
Modified: 2023-07-11 04:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,51.73 KB, text/x-log)
2023-03-18 00:29 UTC, Violet Purcell
Details
Patch (openvdb.patch,476 bytes, patch)
2023-03-18 00:29 UTC, Violet Purcell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Violet Purcell 2023-03-18 00:28:41 UTC
auto_ptr was deprecated in C++11 and removed in C++17. This bug appears to stem from log4cplus, where auto_ptr was replaced with unique_ptr in the 2.0 release. There appears to have been some attempt to fix this in the openvdb upstream with the LOG4CPLUS_VERSION check, but at least for me that variable ends up being undefined. I've put together a patch that includes the log4cplus/version.h header  which defines LOG4CPLUS_VERSION but I don't know if it's the best way to go about fixing this.

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 openvdb
Comment 1 Violet Purcell 2023-03-18 00:29:00 UTC
Created attachment 858141 [details]
Build log
Comment 2 Violet Purcell 2023-03-18 00:29:34 UTC
Created attachment 858143 [details, diff]
Patch
Comment 3 Larry the Git Cow gentoo-dev 2023-07-11 04:35:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177134bd1b059a651d7644a0c983444b4d122db4

commit 177134bd1b059a651d7644a0c983444b4d122db4
Author:     Violet Purcell <vimproved@inventati.org>
AuthorDate: 2023-07-09 14:18:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-11 04:34:19 +0000

    media-gfx/openvdb: Fix usage of removed std::auto_ptr
    
    auto_ptr was deprecated in C++11 and removed in C++17. This bug appears
    to step from log4cplus, where auto_ptr was replaced with unique_ptr in
    the 2.0 release. OpenVDB attempts to check for this with the
    LOG4CPLUS_VERSION macro, however it's defined in the log4cplus/version.h
    header, which is never included. This patch adds the missing include,
    which fixes the issue with std::auto_ptr.
    
    Closes: https://bugs.gentoo.org/901991
    Signed-off-by: Violet Purcell <vimproved@inventati.org>
    Closes: https://github.com/gentoo/gentoo/pull/31812
    Signed-off-by: Sam James <sam@gentoo.org>

 .../openvdb/files/openvdb-10.0.1-log4cplus-version.patch   | 14 ++++++++++++++
 media-gfx/openvdb/openvdb-10.0.1.ebuild                    |  1 +
 2 files changed, 15 insertions(+)