From rhh@ct.picker.com  Sat Dec 20 08:12:08 1997
Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1])
          by hub.freebsd.org (8.8.7/8.8.7) with SMTP id IAA25011
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 20 Dec 1997 08:12:07 -0800 (PST)
          (envelope-from rhh@ct.picker.com)
Received: from ct.picker.com by whqvax.picker.com with SMTP;
          Sat, 20 Dec 1997 11:11:36 -0500 (EST)
Received: from stealth.ct.picker.com (eagle.ct.picker.com) by ct.picker.com (4.1/SMI-4.1)
	id AA29709; Sat, 20 Dec 97 11:11:34 EST
Received: (from root@localhost)
	by stealth.ct.picker.com (8.8.8/8.8.8) id LAA02962;
	Sat, 20 Dec 1997 11:12:37 GMT
	(envelope-from rhh)
Message-Id: <199712201112.LAA02962@stealth.ct.picker.com>
Date: Sat, 20 Dec 1997 11:12:37 GMT
From: rhh@ct.picker.com
Reply-To: rhh@ct.picker.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: rhh@ct.picker.com
Subject: multi-package ports don't build (NO_WRKSUBDIR)
X-Send-Pr-Version: 3.2

>Number:         5352
>Category:       ports
>Synopsis:       multi-package ports don't build (NO_WRKSUBDIR)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 20 08:20:01 PST 1997
>Closed-Date:    Sun Mar 22 13:41:18 PST 1998
>Last-Modified:  Sun Mar 22 13:42:01 PST 1998
>Originator:     Randall Hopper
>Release:        FreeBSD 3.0-971208-SNAP i386
>Organization:
self
>Environment:

        Stock SNAP install.

>Description:

	Trying to add in my AWE patch to the Doom port from ports-current,
	I find that the port itself won't even build.  NO_WRKSUBDIR is
	set for this port, and as the "make install" script attempts to
	build each package, it does:

               (cd musserver; make install)
	       ...
	       (cd joystick4doom; make install)

        It seems that it's not doing a needed "cd ${WRKSRC}" before
	switching to another dist, and thus the second and subsequent 
	sub-package installs fail.

>How-To-Repeat:

	Pull the doom port onto a 3.0-current system and "make install".
	If this works, I'm assuming its due to a bug fixed since 971208.

	Note: for now, you'll also need to patch in "#include <sys/types.h>"
	into work/musserver/musserver.h to get to this point.  This is the
	topic of another problem report I just filed (bin/5351).

>Fix:
	
	I believe modifying the port install target to prefix the subpackage
	cd with "${WRKSRC}" should do the trick.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jseger 
State-Changed-When: Sun Mar 22 13:41:18 PST 1998 
State-Changed-Why:  
I committed a fix to this. 
>Unformatted:
