tech-pkg archive

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

Re: Using pkgsrc gcc



On 2019-08-18 13:51, Robert Swindells wrote:
How do you make a package use gcc from pkgsrc ?

Tried setting the following but it is still using /usr/bin/gcc.

USE_PKGSRC_GCC= yes
USE_NATIVE_GCC= no
GCC_REQD+=      8
GCC_REQD+=major.minor

If you want *all* packages to use GCC 8 (except the gcc package and its dependencies), which is probably a good idea to avoid mixing tool chains, add something like this to your mk.conf:

.if \
    empty(PKGPATH:Marchivers/bsdtar) && \
    empty(PKGPATH:Marchivers/bzip2) && \
    empty(PKGPATH:Marchivers/pax) && \
    empty(PKGPATH:Marchivers/xz) && \
    empty(PKGPATH:Mconverters/help2man) && \
    empty(PKGPATH:Mconverters/libiconv) && \
    empty(PKGPATH:Mconverters/p5-Unicode-EastAsianWidth) && \
    empty(PKGPATH:Mdatabases/db4) && \
    empty(PKGPATH:Mdevel/autoconf) && \
    empty(PKGPATH:Mdevel/binutils) && \
    empty(PKGPATH:Mdevel/gettext-lib) && \
    empty(PKGPATH:Mdevel/gettext-tools) && \
    empty(PKGPATH:Mdevel/gmake) && \
    empty(PKGPATH:Mdevel/gmp) && \
    empty(PKGPATH:Mdevel/gtexinfo) && \
    empty(PKGPATH:Mdevel/libffi) && \
    empty(PKGPATH:Mdevel/makedepend) && \
    empty(PKGPATH:Mdevel/pkgconf) && \
    empty(PKGPATH:Mdevel/libtool-base) && \
    empty(PKGPATH:Mdevel/m4) && \
    empty(PKGPATH:Mdevel/ncurses) && \
    empty(PKGPATH:Mdevel/nbpatch) && \
    empty(PKGPATH:Mdevel/p5-CPAN-Meta) && \
    empty(PKGPATH:Mdevel/p5-Module-Build) && \
    empty(PKGPATH:Mdevel/p5-Perl4-CoreLibs) && \
    empty(PKGPATH:Mdevel/p5-Scalar-List-Utils) && \
    empty(PKGPATH:Mdevel/p5-gettext) && \
    empty(PKGPATH:Mdevel/p5-inc-latest) && \
    empty(PKGPATH:Mdevel/readline) && \
    empty(PKGPATH:Mdevel/zlib) && \
    empty(PKGPATH:Mlang/gcc7) && \
    empty(PKGPATH:Mlang/gcc7-libs) && \
    empty(PKGPATH:Mlang/perl5) && \
    empty(PKGPATH:Mlang/python27) && \
    empty(PKGPATH:Mmath/cloog) && \
    empty(PKGPATH:Mmath/isl) && \
    empty(PKGPATH:Mmath/mpcomplex) && \
    empty(PKGPATH:Mmath/mpfr) && \
    empty(PKGPATH:Mmisc/p5-Locale-libintl) && \
    empty(PKGPATH:Mnet/libfetch) && \
    empty(PKGPATH:Mpkgtools/cwrappers) && \
    empty(PKGPATH:Mpkgtools/digest) && \
    empty(PKGPATH:Mpkgtools/pkg_install-info) && \
    empty(PKGPATH:Mpkgtools/pkgin) && \
    empty(PKGPATH:Msecurity/mozilla-rootcerts) && \
    empty(PKGPATH:Msecurity/openssl) && \
    empty(PKGPATH:Msysutils/checkperms) && \
    empty(PKGPATH:Mtextproc/gsed) && \
    empty(PKGPATH:Mtextproc/p5-Text-Unidecode) && \
    empty(PKGPATH:Mx11/xorgproto)

GCC_REQD+=8.0

.endif  # GCC_REQD

auto-pkgsrc-setup will generate a proper mk.conf for you if you're bootstrapping your own tree:

http://netbsd.org/~bacon/


Home | Main Index | Thread Index | Old Index