NetBSD Problem Report #51049

From dholland@netbsd.org  Wed Apr  6 02:29:12 2016
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4AEDF7A21A
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  6 Apr 2016 02:29:12 +0000 (UTC)
Message-Id: <20160406022911.C598185E27@mail.netbsd.org>
Date: Wed,  6 Apr 2016 02:29:11 +0000 (UTC)
From: dholland@netbsd.org
Reply-To: dholland@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: www/seamonkey creates extra dir during build
X-Send-Pr-Version: 3.95

>Number:         51049
>Category:       pkg
>Synopsis:       www/seamonkey creates extra dir during build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 06 02:30:00 +0000 2016
>Last-Modified:  Wed Apr 06 08:30:17 +0000 2016
>Originator:     David A. Holland
>Release:        NetBSD 7.99.1 (old but irrelevant), pkgsrc 20160403
>Organization:
>Environment:
System: NetBSD valkyrie 7.99.1 NetBSD 7.99.1 (VALKYRIE) #18: Fri Feb  5 15:35:14 EST 2016  dholland@valkyrie:/usr/src/sys/arch/amd64/compile/VALKYRIE amd64
Architecture: x86_64
Machine: amd64
>Description:

Building in www/seamonkey results in the creation of
www/seamonkey/build as well as www/seamonkey/work. Lack of write
permission in www/seamonkey (or I think actually work/../build if one
puts workdirs elsewhere) causes the build to fail.

A directory work/build is also created, and this is used for building.
I think the upper-level one is accidental. I think the problem is
these lines from mozilla-common.mk:

# Build outside ${WRKSRC}
# Try to avoid conflict with config/makefiles/xpidl/Makefile.in
OBJDIR=	       		../build
CONFIGURE_DIRS=			${OBJDIR}

which is confusing pkgsrc (or maybe just bmake, since OBJDIR is very
magic in bad ways) into doing some of the wrong things.

>How-To-Repeat:

make

>Fix:

not sure.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 06 Apr 2016 08:30:17 +0000
Responsible-Changed-Why:
Over to maintainer


>Unformatted:

NetBSD Home
NetBSD PR Database Search

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