Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#57555 closed defect (fixed)

newsboat @2.13: cc1plus: error: unrecognized command line option "-std=c++11"

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Raimondi (Israel Chauca Fuentes)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: newsboat

Description

newsboat fails to build on Mac OS X 10.6:

DEBUG: Executing org.macports.destroot (newsboat)
DEBUG: Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.6'
Executing:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/newsboat-2.13" && /usr/bin/make -w install prefix=/opt/local DESTDIR=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/newsboat-2.13" && /usr/bin/make -w install prefix=/opt/local DESTDIR=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot 
make: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/newsboat-2.13'
mkdir -p /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/bin
install newsboat /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/bin
mkdir -p /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/man/man1
install -m 644 doc/newsboat.1 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/man/man1 || true
mkdir -p /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/bin
install podboat /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/bin
mkdir -p /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/man/man1
install -m 644 doc/podboat.1 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/man/man1 || true
mkdir -p /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/doc/newsboat
install -m 644 doc/xhtml/* /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/doc/newsboat || true
g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Wall -Wextra -Wunreachable-code -DLOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include/libxml2 -I/opt/local/include/json-c -D_DARWIN_C_SOURCE -DHAVE_OPENSSL=1  -o doc/gen-example-config doc/gen-example-config.cpp
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [doc/gen-example-config] Error 1

The port requires C++11, and although the portfile includes the cxx11 1.1 portgroup, the build system does something unusual: It tries to build (or rebuild) something in the destroot phase. If the build system can be fixed to do all its building in the build phase, that would be good. Otherwise, the flags that are being passed to the build phase need to be passed to the destroot phase as well.

Attachments (1)

newsboat.diff (1.3 KB) - added by Raimondi (Israel Chauca Fuentes) 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Raimondi (Israel Chauca Fuentes)

Attachment: newsboat.diff added

comment:1 Changed 5 years ago by Raimondi (Israel Chauca Fuentes)

I attached a patch for patch-Makefile.diff. The target "doc/example-config" is a secondary dependency of "install" and that triggers the build in the destroot phase. I modified the patch to add it to dependencies of "all" to make it run in the build phase instead.

Last edited 5 years ago by Raimondi (Israel Chauca Fuentes) (previous) (diff)

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

Resolution: fixed
Status: assignedclosed

In f90210fcd3f29343cf538bf47b71b80ef62043d8/macports-ports (master):

newsboat: Build everything in the build phase

Fixes build failure on 10.8 and earlier.

Closes: #57555

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

Thanks!

Note: See TracTickets for help on using tickets.