Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2001 10:07:43 -0700
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        "James E. Housley" <jeh@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: ports/misc/amanda24-server Makefile pkg-plist
Message-ID:  <20010201100743.A45976@panzer.kdm.org>
In-Reply-To: <3A799635.6BB47528@FreeBSD.org>; from jeh@FreeBSD.org on Thu, Feb 01, 2001 at 12:00:37PM -0500
References:  <200102011259.f11CxtB64291@freefall.freebsd.org> <20010201095324.A45813@panzer.kdm.org> <3A799635.6BB47528@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 01, 2001 at 12:00:37 -0500, James E. Housley wrote:
> "Kenneth D. Merry" wrote:
> > 
> > On Thu, Feb 01, 2001 at 04:59:55 -0800, James E. Housley wrote:
> > > jeh         2001/02/01 04:59:55 PST
> > >
> > >   Modified files:
> > >     misc/amanda24-server Makefile pkg-plist
> > >   Log:
> > >   Up throught FreeBSD 3.x scsiio.h existed anc cause chg-scsi to be built.
> > >   After that, SCSI was CAMified and chg-scsi isn't built, but that is a
> > >   seperate problem.
> > >
> > >   Submitted by:       bento
> > 
> > CAM went into the tree in FreeBSD 3.0.
> > 
> > There are also 2.2.x versions out there with CAM patches applied.
> > 
> > The most reliable way to detect a CAM system, from a makefile, is:
> > 
> > .if exists(/usr/include/camlib.h)
> > ...CAM system...
> > .else
> > ...not a CAM system...
> > .endif
> 
> The ./configure looks for sys/scsiio.h, and that seemed to exist up
> through RELENG_3_5_0_RELEASE according to CVS, and that is what I based
> this upon.

It probably should have been deleted long before that.

The problem with looking for scsiio.h is that a pre-CAM system that has
been upgraded will likely have sys/scsiio.h.

So you'll get a lot of false positives.

It would be better to change the configure script to look for
/usr/include/camlib.h, and then assume a CAM system from that.  A non-CAM
system won't have that file.

Ken
-- 
Kenneth Merry
ken@kdm.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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