pkgsrc-Users archive

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

Re: USE_PKGSRC_GCC and circular dependency



On 2020-03-11 23:05, Zhiwen Zheng wrote:
Should I use "USE_PKGSRC_GCC=no" to build gcc7 and its deps, and switch to "USE_PKGSRC_GCC=yes" after install of gcc7?
Will "USE_PKGSRC_GCC_RUNTIME = yes" take effect when "USE_PKGSRC_GCC=no", i.e. the newly created gcc7 use the newly created gcc7-libs or
use the parent gcc runtime ?

=======mk.conf==============
# Example /opt/local/etc/mk.conf file produced by bootstrap-pkgsrc
# Thu Mar 12 10:47:10 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

GCC_REQD=			7.4
USE_PKGSRC_GCC=			yes
USE_PKGSRC_GCC_RUNTIME= 	yes

ACCEPTABLE_LICENSES+= 	oracle-binary-code-license

=======================================
-bash-4.3# cd devel/git
-bash-4.3# bmake package
===> Skipping vulnerability checks.
WARNING: No /opt/local/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/local/sbin/pkg_admin -K /opt/local/pkgdb fetch-pkg-vulnerabilities'.
===> Installing dependencies for git-2.24.1
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency git-base>=2.24.1: NOT found
=> Verifying package-install for ../../devel/git-base
=> Bootstrap dependency digest>=20010302: NOT found
=> Verifying package-install for ../../pkgtools/digest
===> Skipping vulnerability checks.
WARNING: No /opt/local/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/local/sbin/pkg_admin -K /opt/local/pkgdb fetch-pkg-vulnerabilities'.
===> Installing dependencies for digest-20190127
=> Build dependency gcc7>=7.4: NOT found
=> Verifying package-install for ../../lang/gcc7
=> Bootstrap dependency digest>=20010302: NOT found
=> Verifying package-install for ../../pkgtools/digest
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected
*** Error code 255

Stop.
bmake[4]: stopped in /opt/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake[3]: stopped in /opt/pkgsrc/lang/gcc7
*** Error code 1

Stop.
bmake[2]: stopped in /opt/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgsrc/devel/git-base
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/git

When using a pkgsrc GCC package, you have to be careful to exempt GCC dependencies from the GCC requirement.

Below is the union of dependencies for all recent gcc packages.  The list will be somewhat shorter if you're only concerned about one of them.

This code is automatically generated and added to mk.conf by auto-pkgsrc-setup.  ( http://netbsd.org/~bacon/ )

.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/gcc5) && \
    empty(PKGPATH:Mlang/gcc5-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

.endif  # GCC_REQD




Home | Main Index | Thread Index | Old Index