From nobody@FreeBSD.org  Sat Jul 22 10:36:52 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A8A5316A4E0
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jul 2006 10:36:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7467043D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jul 2006 10:36:52 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6MAaqSo066837
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jul 2006 10:36:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k6MAaq20066836;
	Sat, 22 Jul 2006 10:36:52 GMT
	(envelope-from nobody)
Message-Id: <200607221036.k6MAaq20066836@www.freebsd.org>
Date: Sat, 22 Jul 2006 10:36:52 GMT
From: Dominic Fandrey <lon_kamikaze@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [bsd.port.mk]  -j with install target totally BROKEN
X-Send-Pr-Version: www-2.3

>Number:         100712
>Category:       ports
>Synopsis:       [bsd.port.mk] -j with install target totally BROKEN
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 22 10:40:13 GMT 2006
>Closed-Date:    Tue Jul 25 00:29:34 GMT 2006
>Last-Modified:  Tue Jul 25 00:29:34 GMT 2006
>Originator:     Dominic Fandrey
>Release:        Releng_6
>Organization:
private
>Environment:
FreeBSD mobileKamikaze.norad 6.1-STABLE FreeBSD 6.1-STABLE #0: Wed Jul 19 14:54:04 CEST 2006     root@mobileKamikaze.norad:/mnt/vault/obj/mnt/vault/src/sys/TPR40-6  i386
>Description:
The install target, combined with the -j option is totally broken.  This is
troublesome, because if a port installs dependencies you cannot use -j to
build the port.

I have tried to find out what happens in bsd.port.mk, but all I can say is,
that with -j defined the port omits all such important targets as do-extract,
do-patch, do-configure or do-build and heads right to do-install, even though
nothing has been built.

The -j flag would be useful for SMP systems or those who use distcc.
>How-To-Repeat:
Go to a ports folder and run:
# make -j 4 install

Or go to a a ports folder that also installs build dependencies and run:
# make -j 4
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Jul 22 10:40:26 UTC 2006 
Responsible-Changed-Why:  
bsd.port.mk is port manager territory 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100712 
State-Changed-From-To: open->suspended 
State-Changed-By: linimon 
State-Changed-When: Tue Jul 25 00:03:44 UTC 2006 
State-Changed-Why:  
This is not the only problem with using -j.  The major problem is that 
many ports are not, themselves, -j clean. 

This has been discussed many times in the past but no one has yet come up 
with a comprehensive solution for it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100712 
State-Changed-From-To: suspended->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Jul 25 00:28:56 UTC 2006 
State-Changed-Why:  
On further investigation of the bsd.*.mk PRs, this appears to be a duplicate 
of ports/95759, so track followups there instead. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100712 
>Unformatted:
