pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49350: inconsistent GCC_REQD for c++11 nullptr



>Number:         49350
>Category:       pkg
>Synopsis:       inconsistent GCC_REQD for c++11 nullptr
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 01 04:10:00 +0000 2014
>Originator:     Izumi Tsutsui
>Release:        NetBSD 6.1.5 + pkgsrc updated around 20141101
>Organization:
>Environment:
System: NetBSD/i386 6.1.5
Architecture: i386
Machine: i386
>Description:
inputmethod/mozc-server/Makefile.common says:
---
USE_LANGUAGES=  c c++
# nullptr requires -std=c++11, and -std=c++11 requires gcc 4.7 or later
GCC_REQD+=      4.7
CXXFLAGS+=      -std=c++11
---

but www/firefox/mozilla-common.mk claims:
---
# GCC 4.6 is required to support nullptr.
GCC_REQD+=              4.6
---

so annoying large two sets of gcc versions are built and installed
for these major two packages only to handle nullptr in a few sources.

>How-To-Repeat:
Build the above two packages on NetBSD/i386 6.1.5.

>Fix:
For now, I would like to change www/firefox/mozilla-common.mk
to have GCC_REQD=4.7 as mozc-server/Makefile.common at least
for NetBSD 6.x because 
 - firefox-33.x is not in the pkgsrc-20xxQn releases yet
 - there is a report gcc 4.6 is broken on NetBSD 6.x:
   http://mail-index.netbsd.org/tech-pkg/2014/10/22/msg013717.html

In the perfect world, someone[tm] will prepare some magic .mk file
which handles "requirement of c++11 nullptr"?

---



Home | Main Index | Thread Index | Old Index