From root@gabby.gsicomp.on.ca  Sat Jan 13 19:18:06 2001
Return-Path: <root@gabby.gsicomp.on.ca>
Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149])
	by hub.freebsd.org (Postfix) with ESMTP id 28A0237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 13 Jan 2001 19:18:05 -0800 (PST)
Received: from gabby.gsicomp.on.ca (root@gabby.gsicomp.on.ca [192.168.0.2])
	by xena.gsicomp.on.ca (8.9.3/8.9.3) with ESMTP id WAA65644
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 13 Jan 2001 22:17:30 -0500 (EST)
	(envelope-from root@gabby.gsicomp.on.ca)
Received: (from root@localhost)
	by gabby.gsicomp.on.ca (8.9.3/8.9.3) id WAA95411;
	Sat, 13 Jan 2001 22:17:20 -0500 (EST)
	(envelope-from root)
Message-Id: <200101140317.WAA95411@gabby.gsicomp.on.ca>
Date: Sat, 13 Jan 2001 22:17:20 -0500 (EST)
From: matt@gsicomp.on.ca
Reply-To: matt@gsicomp.on.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: USE_IMAKE magic broken
X-Send-Pr-Version: 3.2

>Number:         24317
>Category:       ports
>Synopsis:       USE_IMAKE ports magic is broken
>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 Jan 13 19:20:00 PST 2001
>Closed-Date:    Sun Feb 25 18:48:18 PST 2001
>Last-Modified:  Sun Feb 25 22:00:01 PST 2001
>Originator:     Matt Emmerton
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
GSI Computer Services
>Environment:

	4.1-REL with ports cvsup'd within 5 days

>Description:

	If a port has USE_IMAKE set, then imake is added to BUILD_DEPENDS
	and if it is not present on the system, then it will be built.

	However, it appears that the check isn't being executed, so ports
	that require imake fail to build on systems that don't have
	imake installed.

	This issue was pointed out by Lars Eighner (eighner@io.com) on
	-questions.  (I've since directed to him to -ports for all future
	ports problems.)

>How-To-Repeat:

	Delete imake (rename binary, pkg_delete imake-4, whatever)

	cd /usr/ports/astro/sunclock
	make

	==> Configuring for sunclock-1.5
	imake -Duseinstalled -I/usr/X11R6/lib/X11/config
	imake: not found

>Fix:

	It looks like when XFree-4 came along, the USE_IMAKE dependency
	check was moved out ofthe XFree-3 block and into the XFree-4
	block, which means that imake will only be built if you've got
	XFree-4. 

	Here's a patch that will build devel/imake if you're got XFree-3.

 
--- bsd.port.mk.orig	Sat Jan 13 22:13:43 2001
+++ bsd.port.mk	Sat Jan 13 22:16:47 2001
@@ -818,6 +818,9 @@
 .endif
 
 .if ${XFREE86_VERSION} == 3
+.if defined(USE_IMAKE)
+BUILD_DEPENDS+=			imake:${PORTSDIR}/devel/imake
+.endif
 .if defined(USE_XPM)
 LIB_DEPENDS+=			Xpm.4:${PORTSDIR}/graphics/xpm
 .endif

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Feb 25 18:48:18 PST 2001 
State-Changed-Why:  
imake is a part of XFree86-3 so this isn't required since USE_IMAKE 
implies USE_X_PREFIX which in turn implies USE_XLIB which when 
XFREE86_VERSION == 3 means to install the XFree86 port.  Have you 
installed the imake-4 port as part of another port and since removed 
it?  I had similar problems on my Alpha package building box and that 
was the cause of my trouble's there. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24317 

From: "Matthew Emmerton" <matt@gsicomp.on.ca>
To: <freebsd-gnats-submit@FreeBSD.org>, <matt@gsicomp.on.ca>
Cc:  
Subject: Re: ports/24317: USE_IMAKE ports magic is broken
Date: Mon, 26 Feb 2001 00:50:43 -0500

 Yep, I had installed imake-4 at some point in time and later removed it,
 which caused the problem.
 
 
>Unformatted:
