tech-pkg archive

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

Re: Once more, C++11 and older 'base' compilers



On 08/09/17 17:27, coypu%sdf.org@localhost wrote:
On Wed, Aug 09, 2017 at 01:11:38PM -0500, Jason Bacon wrote:
Can you clarify how _TARGET_HAS_PKGSRC_GCC gets set?  Is this built into the
bootstrap scripts and set globally for selected OSs and ARCHs?  Can users
add it to mk.conf for other platforms?
I wanted to whitelist platforms. linux is diverse, but often very well supported.
For all others we can say yes/no with certainty after testing.

How do gcc48 and dependencies get exempted so they can build with the system
compiler?
With this exception (should possibly be a wildcard for 5,6,7?)

#  Special case packages which are themselves a dependency of gcc runtime.
.  if empty(PKGPATH:Mdevel/libtool-base) && empty(PKGPATH:Mdevel/binutils) && empty(PKGPATH:Mlang/gcc??)

FYI, this is the minimum I had to do on CentOS 6 to avoid a circular dependency:

.if empty(PKGPATH:Mlang/gcc48) && \
    empty(PKGPATH:Mpkgtools/cwrappers) && \
    empty(PKGPATH:Mdevel/nbpatch) && \
    empty(PKGPATH:Mpkgtools/digest) && \
    empty(PKGPATH:Msysutils/checkperms) && \
    empty(PKGPATH:Mlang/perl5) && \
    empty(PKGPATH:Mdevel/p5-gettext) && \
    empty(PKGPATH:Mconverters/help2man) && \
    empty(PKGPATH:Mdevel/autoconf) && \
    empty(PKGPATH:Mconverters/p5-Unicode-EastAsianWidth) && \
    empty(PKGPATH:Mdevel/libtool-base) && \
    empty(PKGPATH:Marchivers/pax) && \
    empty(PKGPATH:Mlang/gcc48-libs) && \
    empty(PKGPATH:Mdevel/ncurses) && \
    empty(PKGPATH:Mmisc/p5-Locale-libintl) && \
    empty(PKGPATH:Mtextproc/p5-Text-Unidecode) && \
    empty(PKGPATH:Mdevel/gtexinfo) && \
    empty(PKGPATH:Mdevel/gettext-tools) && \
    empty(PKGPATH:Mdevel/gettext-lib) && \
    empty(PKGPATH:Mdevel/gmp) && \
    empty(PKGPATH:Mmath/mpfr) && \
    empty(PKGPATH:Mmath/cloog) && \
    empty(PKGPATH:Mmath/isl) && \
    empty(PKGPATH:Mmath/mpcomplex)

GCC_REQD+=4.8

.endif  # GCC_REQD

--
Earth is a beta site.




Home | Main Index | Thread Index | Old Index