From owner-cvs-all Thu May 2 10:30:41 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 7497D37B400; Thu, 2 May 2002 10:30:31 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id DAA05693; Fri, 3 May 2002 03:30:20 +1000 Date: Fri, 3 May 2002 03:31:49 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Dima Dorfman Cc: Warner Losh , , Subject: Re: cvs commit: src/sys/conf kmod.mk In-Reply-To: <20020501235744.ACE123F71@turbine.trit.org> Message-ID: <20020503032719.G4775-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 1 May 2002, Dima Dorfman wrote: > Warner Losh wrote: > > Log: > > We don't need no stinkin' echos here. > ... > > Index: src/sys/conf/kmod.mk > > diff -u src/sys/conf/kmod.mk:1.122 src/sys/conf/kmod.mk:1.123 > > --- src/sys/conf/kmod.mk:1.122 Tue Apr 30 20:28:14 2002 > > +++ src/sys/conf/kmod.mk Wed May 1 12:24:26 2002 > > @@ -170,6 +170,9 @@ > > .endif > > .endif > > > > +.if !exists(/usr/sbin/kldxref) > > +NO_XREF=yes > > +.endif This is broken. kldxref might be in $PATH but not in /usr/sbin, or vice versa. > > > > _ILINKS=@ machine > > > > @@ -257,9 +260,7 @@ > > done; true > > .endif > > .if !defined(NO_XREF) If a non-broken existence test ifdef exists, why not write it here directly. > > - @echo "FAILURES HERE ARE OK" > > -kldxref ${DESTDIR}${KMODDIR} > > Since we don't get here when kldxref doesn't exist any more, shouldn't > we get rid of the '-'? I.e., make the last line read: > > kldxref ${DESTDIR}${KMODDIR} > > Or are their other failure modes we want to ignore? I agree. Ignoring errors in Makefiles is a bug. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message