Subject: Re: questions on package system
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.ORG>
From: David Maxwell <david@fundy.ca>
List: tech-pkg
Date: 03/11/2000 16:06:20
On Sat, Mar 11, 2000 at 12:52:41PM -0500, Greg A. Woods wrote:
> [ On Saturday, March 11, 2000 at 12:37:04 (-0400), David Maxwell wrote: ]
> > Subject: Re: questions on package system
> >
> > > > 3. Is there recommended way to test for X installed on the
> > > > build target in the Makefile?
> > >
> > > USE_X11=yes
> >
> > That says the package uses X. To test for X - (For a package
> > that builds both text and gui mode apps?) I don't see
> > a canonical example. How about this?
> >
> > .if exists (${X11BASE})
>
> I would not like that test to be used. It would potentially cause
> binary packages to fail to run on a target machine that did not have X11
> installed.
If a package doesn't automatically fall back to text mode, than I'd say
that package needs to be split into two, one with, and one without, X11.
Binary packages already built without that test could be dynamically
linking to X11 libs that may not be present on a machine.
I'm not saying the above is right... just that it's no more broken than
the status quo.
--
David Maxwell, david@vex.net|david@maxwell.net --> Mastery of UNIX, like
mastery of language, offers real freedom. The price of freedom is always dear,
but there's no substitute. Personally, I'd rather pay for my freedom than live
in a bitmapped, pop-up-happy dungeon like NT. - Thomas Scoville