From nobody@FreeBSD.org  Wed Mar 31 08:12:58 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CF92C1065679
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 Mar 2010 08:12:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BED0C8FC23
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 Mar 2010 08:12:58 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2V8CwYR084158
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 Mar 2010 08:12:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2V8Cw44084157;
	Wed, 31 Mar 2010 08:12:58 GMT
	(envelope-from nobody)
Message-Id: <201003310812.o2V8Cw44084157@www.freebsd.org>
Date: Wed, 31 Mar 2010 08:12:58 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: zfs loader build dependency missing from zfsloader dependencies
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         145233
>Category:       misc
>Synopsis:       [build] zfs loader build dependency missing from zfsloader dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 31 08:20:02 UTC 2010
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:28:30 UTC 2013
>Originator:     Garrett Cooper
>Release:        9-CURRENT
>Organization:
Cisco Systems, Inc.
>Environment:
FreeBSD bayonetta.local 9.0-CURRENT FreeBSD 9.0-CURRENT #5 r205310: Sat Mar 20 01:32:51 PDT 2010     gcooper@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA  amd64
>Description:
Similar to conf/145231, there's a missing build dependency with zfsloader
when WITHOUT_ZFS isn't specified and LOADER_WITH_ZFS_SUPPORT is specified:

make: don't know how to make /scratch/freebsd/releng_8/sys/boot/i386/zfsloader/../../zfs/libzfsboot.a. Stop
*** Error code 2

The workaround is:

make -C sys/boot/ficl clean all
make -C sys/boot/zfs clean all
make -C sys/boot/<target> clean depend all

Same as before, I didn't attach a fix for this because this logic really
belongs in a new .mk file instead of in the Makefile itself as this loader
is replicated for a number of supported targets.
>How-To-Repeat:
make -C sys/boot/ficl clean all
make -C sys/boot/<target> clean depend all
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
