Subject: pkg/31038: indirect inclusion of x11.buildlink3.mk is broken
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <hira@po6.nsk.ne.jp>
List: pkgsrc-bugs
Date: 08/22/2005 08:22:00
>Number: 31038
>Category: pkg
>Synopsis: indirect inclusion of x11.buildlink3.mk is broken
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 22 08:22:00 +0000 2005
>Originator: Kouichirou Hiratsuka
>Release: NetBSD 3.99.8
>Organization:
>Environment:
System: NetBSD firefly.localdomain 3.99.8 NetBSD 3.99.8 (PBG4) #72: Sun Aug 21 13:10:17 JST 2005 root@firefly.localdomain:/work/NetBSD/src/sys/arch/macppc/compile/PBG4 macppc
Architecture: powerpc
Machine: macppc
>Description:
If package indirectly includes mk/x11.buildlink3.mk, some
builtin.mk files are not read. For example, x11/randrext:
# cd /usr/pkgsrc/x11/randrext
# grep x11.buildlink3.mk Makefile
# make show-var VARNAME=BUILDLINK_PACKAGES
xorg-libs xextensions fontconfig iconv zlib freetype2 expat
# make show-var VARNAME=BUILDLINK_BUILTIN_MK.xextensions
../../x11/xextensions/builtin.mk
# make show-var VARNAME=BUILDLINK_BUILTIN_MK.zlib
# make show-var VARNAME=IS_BUILTIN.zlib
#
This package indirectly includes mk/x11.buildlink3.mk via
x11/xextensions/builtin.mk. And this adds inclusions of
buildlink3.mk files of zlib, fontconfig, etc. However,
these BUILDLINK_BUILTIN_MK are not defined.
If the package is added to BUILDLINK_PACKAGES,
BUILDLINK_BUILTIN_MK.${package} should be defined at line
108 of mk/buildlink3/bsd.buildlink3.mk. It's too late to
include the buildlink3.mk files.
>How-To-Repeat:
>Fix: