[MacPorts] #54654: cdda_interface.h breaks C++ builds
MacPorts
noreply at macports.org
Mon Aug 21 08:39:39 UTC 2017
#54654: cdda_interface.h breaks C++ builds
----------------------+------------------------
Reporter: RJVB | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: haspatch | Port: cdparanoia
----------------------+------------------------
The cdda_interface.h header file from port:cdparanoia defines a struct
with a member variable called `private`. That is not acceptable under C++
but can be fixed with a simple patch to the *installed* headerfile:
{{{
reinplace "s|cdda_private_data_t \\*private;|cdda_private_data_t
\\*private_data;|g" ${destroot}${prefix}/include/cdda_interface.h
}}}
Evidently one can also make this change throughout the code before
building cdparanoia. I'm attaching a patch file from Debian which does
that, as is (the 2 hunks for interface.c need fixing to apply after the
current MacPorts patches).
--
Ticket URL: <https://trac.macports.org/ticket/54654>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list