From owner-freebsd-bugs Wed Mar 27 13:10:36 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F3D4C37B434 for ; Wed, 27 Mar 2002 13:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2RLA2T39055; Wed, 27 Mar 2002 13:10:02 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4B8FA37B42A for ; Wed, 27 Mar 2002 13:00:33 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2RL0XY33711; Wed, 27 Mar 2002 13:00:33 -0800 (PST) (envelope-from nobody) Message-Id: <200203272100.g2RL0XY33711@freefall.freebsd.org> Date: Wed, 27 Mar 2002 13:00:33 -0800 (PST) From: Sam Leffler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/36385: crunchgen does not handle Makefiles with includes properly Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36385 >Category: misc >Synopsis: crunchgen does not handle Makefiles with includes properly >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 27 13:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Sam Leffler >Release: 4.5 >Organization: >Environment: FreeBSD ebb.errno.com 4.5-STABLE FreeBSD 4.5-STABLE #3: Mon Mar 18 14:41:49 PST 2002 sam@ebb.errno.com:/usr/src/sys/compile/EBB i386 >Description: crunchgen does not properly handle Makefiles that have relative includes because it runs the Makefile from the current directory instead of the source directory when generating the list of object files >How-To-Repeat: Try to run crunchgen on /usr/ports/security/isakmpd; notice that it does not get the value of SRCS set properly because the .include's of features/ fail (silently because the Makefile checks if the file exists before including it). This is because crunchgen generates a temp Makefile in /tmp and then does make -f from the current working directory. >Fix: A patch can be found in http://www.errno.com/patches/crunchgen.patch. This causes the make command used to generate the obj list to be done in the srcdir. This patch also includes a -d option to aid in debugging problems like this and support for PR misc/33778. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message