pkgsrc-Users archive

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

Re: USE_PKGSRC_GCC and circular dependency



Thanks, it helped, now build starts without circular dependency. 
My understanding of USE_PKGSRC_GCC was wrong, I expected gcc will get bullt and all other packages get built using
the newly created gcc automatically.
I am preparing the package repo for my self-made illumos distribution, seems like I need two versions of mk.conf.
First, use "USE_NATIVE_GCC=yes;GCCBASE=path_to_native_gcc;" to build gcc and its dependencies.
Then, remove USE_NATIVE_GCC and GCCBASE from mk.conf and add "GCC_REQD;USE_PKGSRC_GCC=yes;USE_PKGSRC_GCC_RUNTIME=yes",
and rebuild gcc's dependences. 
This way all pacakges will not link with the native gcc runtime. Am I right?



Below is the mk.conf I used.
============================
# Thu Mar 12 19:24:01 CST 2020

.ifdef BSD_PKG_MK	# begin pkgsrc settings

ABI=			32
PKGSRC_COMPILER=	gcc

PKG_DBDIR=		/opt/local/pkgdb
LOCALBASE=		/opt/local
VARBASE=		/opt/local/var
PKG_TOOLS_BIN=		/opt/local/sbin
PKGINFODIR=		info
PKGMANDIR=		man

TOOLS_PLATFORM.install?=	/opt/local/bin/bsdinstall
TOOLS_PLATFORM.awk?=		/opt/local/bin/nawk
TOOLS_PLATFORM.sed?=		/opt/local/bin/nbsed
TOOLS_PLATFORM.sh?=		/usr/bin/bash

.endif			# end pkgsrc settings
DISTDIR=			/opt/distfiles
WRKOBJDIR=			/opt/work
PACKAGES=			/opt/packages

.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) && \
	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=7.0
USE_PKGSRC_GCC=			yes
USE_PKGSRC_GCC_RUNTIME= 	yes
.else
GCCBASE=			/opt/tools/gcc7
.endif

ACCEPTABLE_LICENSES+= 	oracle-binary-code-license


Home | Main Index | Thread Index | Old Index