NetBSD Problem Report #50274

From  Thu Sep 24 03:30:03 2015
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 7F65EA668F
	for <>; Thu, 24 Sep 2015 03:30:03 +0000 (UTC)
Message-Id: <>
Date: Thu, 24 Sep 2015 11:14:31 +0900 (JST)
Subject: pkgsrc/devel/gmake: circular dependency bug
X-Send-Pr-Version: 3.95

>Number:         50274
>Category:       pkg
>Synopsis:       cannnot build gmake due to circular dependency.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 24 03:35:00 +0000 2015
>Originator:     Ken'ichi Fukamachi
>Release:        NetBSD/i386 5.2_STABLE
	System: NetBSD 5.2_STABLE NetBSD 5.2_STABLE (HOME_SERVER) #0: Sun Mar 2 12:04:31 JST 2014 i386
Architecture: i386
Machine: i386


We cannot build pkgsrc/devel/gmake due to circular dependency bug if
PREFER_PKGSRC=yes defined since gmake with NLS support (enabled by
default) depends textproc/expat via gettext-tools.  But textproc/expat
requies gmake. So gmake depends gmake. The build fails.

It looks this bug has been existed from 2014 fall to now.


Set PREFER_PKGSRC=yes in /etc/mk.conf, build gmake:

# cd /usr/pkgsrc/devel/gmake
# make

===> Installing dependencies for digest-20121220
===> Install binary package of digest-20121220

=> Returning to build of gmake-4.1nb1

===> Installing dependencies for gmake-4.1nb1
    => Tool dependency gettext-tools>=0.15: NOT found
    ===> Installing dependencies for gettext-tools-0.19.4nb1
        => Tool dependency libtool-base>=2.2.6bnb3: NOT found
        ===> Installing dependencies for libtool-base-2.4.2nb10
        ===> Install binary package of libtool-base-2.4.2nb10

    => Returning to build of gettext-tools-0.19.4nb1

        => Full dependency xz>=4.999.9betanb1: NOT found
        ===> Installing dependencies for xz-5.2.1
            => Full dependency gettext-lib>=0.18: NOT found
            ===> Installing dependencies for gettext-lib-0.19.4
                => Full dependency libiconv>=1.9.1nb4: NOT found
                ===> Installing dependencies for libiconv-1.14nb2
                ===> Install binary package of libiconv-1.14nb2

            => Returning to build of gettext-lib-0.19.4

            ===> Install binary package of gettext-lib-0.19.4

        => Returning to build of xz-5.2.1

        ===> Install binary package of xz-5.2.1

    => Returning to build of gettext-tools-0.19.4nb1

        => Full dependency expat>=2.0.0nb1: NOT found
        ===> Installing dependencies for expat-2.1.0nb1
            => Tool dependency gmake>=3.81: NOT found
            ERROR: This package has set PKG_FAIL_REASON:
            ERROR: Circular dependency detected



Its workaround follows:

1.	specify PKG_OPTIONS.gmake= -nls in /etc/mk.conf.

2.	PKG_OPTIONS.gmake= -nls in pkgsrc/devel/gmake/ by default.

3.	modify gmake building to two stages: build gmake without NLS support once, and rebuild gmake with NLS again ?

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.