Subject: pkg/16213: OBJECT_FMT setting in /etc/mk.conf is ignored for pkgtools/pkg_install
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itohy@netbsd.org>
List: netbsd-bugs
Date: 04/06/2002 15:33:37
>Number: 16213
>Category: pkg
>Synopsis: OBJECT_FMT setting in /etc/mk.conf is ignored for pkgtools/pkg_install
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 05 22:34:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: ITOH Yasufumi
>Release: pkgsrc of April 5, 2002
>Organization:
>Environment:
System: NetBSD fmv.my.domain 1.5Y NetBSD 1.5Y (FMV) #4: Wed Sep 26 23:07:05 JST 2001 itohy@fmv.my.domain:/w/src/sys/arch/i386/compile/FMV i386
Architecture: i386
Machine: i386
I have
OBJECT_FMT=a.out
in /etc/mk.conf
>Description:
OBJECT_FMT setting in /etc/mk.conf is ignored for BSD-style makefiles.
This causes failure in build of pkgtools/pkg_install.
>How-To-Repeat:
% cd /w/pkgsrc/pkgtools/pkg_install
% make
=> Checksum OK for pkg_install-20020218.tar.gz.
===> Extracting for pkg_install-20020218
===> Patching for pkg_install-20020218
===> Applying NetBSD patches for pkg_install-20020218
===> Building for pkg_install-20020218
all ===> lib
(snip)
building standard install library
ranlib libinstall.a
all ===> add
(snip)
cc -O2 -Werror -I/w/pkgsrc/pkgtools/pkg_install/work.i386/pkg_install/add/../lib -DBINDIR='"/usr/sbin"' -DCHMOD='"/bin/chmod"' -DCHOWN='"/usr/sbin/chown"' -DCHGRP='"/usr/bin/chgrp"' -c verify.c
make: don't know how to make /usr/lib/crtbegin.o. Stop
make: stopped in /w/pkgsrc/pkgtools/pkg_install/work.i386/pkg_install/add
*** Error code 2
Stop.
make: stopped in /w/pkgsrc/pkgtools/pkg_install/work.i386/pkg_install
*** Error code 1
Stop.
make: stopped in /w/pkgsrc/pkgtools/pkg_install
*** Error code 1
Stop.
make: stopped in /w/pkgsrc/pkgtools/pkg_install
%
>Fix:
Do not ignore /etc/mk.conf.
This fix conflicts with pkg/15297, however.
Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.957
diff -u -r1.957 bsd.pkg.mk
--- bsd.pkg.mk 2002/04/05 11:39:25 1.957
+++ bsd.pkg.mk 2002/04/06 06:22:56
@@ -20,11 +20,6 @@
##### Include any preferences, if not already included, and common definitions
.include "../../mk/bsd.prefs.mk"
-##### Prevent /etc/mk.conf from being included by a distribution's BSD-style
-##### Makefiles. We really don't want to pick up settings that are used by
-##### builds in /usr/src, e.g. DESTDIR.
-MAKE_ENV+= MAKECONF=/dev/null
-
##### Pass information about desired toolchain to package build.
.if defined(USETOOLS)
MAKE_ENV+= USETOOLS="${USETOOLS}"
>Release-Note:
>Audit-Trail:
>Unformatted: