Opened 7 years ago

Closed 6 years ago

#56057 closed defect (duplicate)

smartmontools: requires C++11

Reported by: mojca (Mojca Miklavec) Owned by: RJVB (René Bertin)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dgonyier (Dwaine Gonyier)
Port: smartmontools

Description

Smartmontools does not compile on older systems due to lack of some C++11 functionality.

On 10.5 PPC using configure.compiler=macports-gcc-6 helped to build the port successfully.

Change History (6)

comment:1 Changed 7 years ago by RJVB (René Bertin)

Yes, using a recent GCC should work with most software.

comment:2 Changed 7 years ago by mojca (Mojca Miklavec)

This need to be fixed in Portfile though.

comment:3 Changed 7 years ago by RJVB (René Bertin)

That's already the case in my own copy, which I recall doing on request (and uploading, here I think):

platform darwin {
    if {${configure.cxx_stdlib} eq "libstdc++"} {
        configure.args-append \
                    --with-cxx11-option=no
    }
}

(IOW, older systems using libstdc++ will not use C++11, which is of course the preferred solution as long as the project provides the option.)

comment:4 in reply to:  3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to RJVB:

That's already the case in my own copy, which I recall doing on request (and uploading, here I think):

Yes, in #55730.

comment:5 Changed 6 years ago by dgonyier (Dwaine Gonyier)

Cc: dgonyier added

comment:6 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.