Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2002 13:00:33 -0800 (PST)
From:      Sam Leffler <sam@errno.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/36385: crunchgen does not handle Makefiles with includes properly
Message-ID:  <200203272100.g2RL0XY33711@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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/<mumble> 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 <temp makefile> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203272100.g2RL0XY33711>