Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2010 20:47:47 +0300
From:      Anonymous <swell.k@gmail.com>
To:        Eir Nym <eirnym@gmail.com>
Cc:        Christian Weisgerber <naddy@mips.inka.de>, freebsd-ports@freebsd.org
Subject:   Re: Mk/bsd.command.mk: missing CSH tag
Message-ID:  <86d3q19pdo.fsf@gmail.com>
References:  <4CE5280E.3090009@zedat.fu-berlin.de> <AANLkTinmZ2YXxMAPjghtur3n2GT-N16d0FFAc0=khb=k@mail.gmail.com> <86wro9e6e4.fsf@gmail.com> <AANLkTinip-y9n2w=bJ7QKidymYTQSsmSiybxU7FWoY==@mail.gmail.com> <ic65a0$16m1$1@lorvorc.mips.inka.de> <AANLkTi==u=EsDqMqbONfz1HNGQEOREYD_BAJWgc8Weji@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Eir Nym <eirnym@gmail.com> writes:

> On 19 November 2010 18:32, Christian Weisgerber <naddy@mips.inka.de> wrot=
e:
>> Eir Nym <eirnym@gmail.com> wrote:
>>
>>> >>> Since when? If you are missing /bin/csh, your system is defective
>>> >>> or at least nonstandard.
>>> >>
>>> >> It is good joke, thanks
>>> >
>>> > I guess he's talking about the ports tree being too fragile for some
>>> > non-default configurations and not many people are willing to fix it.
>>>
>>> I understand this. Port can check this (because it is optional system
>>> component) and use another or generate error.
>>
>> This is very confusing. =C2=A0One of us is out of sync with reality.
>> (If it's me, I'd like to know.) =C2=A0Your confident claim that csh is
>> optional is like stating that the sky is green and the sun is purple.
>>
>> Did I miss something?
>>
>> Yes, I know there is a WITHOUT_TCSH knob. You can use this when
>> you build a FreeBSD-based embedded system where you know you won't
>> need csh. In no way does the existence of this knob imply that csh
>> is optional on a standard FreeBSD system where you build ports.

What are those requirements that constitute standard FreeBSD system
capable of building ports?

>>
>
> Ok, another example is NIS. You can turn off NIS support in your
> system, and ports will check NIS biraries if they need them.

There are more examples

  - openssl: WITH_OPENSSL_PORT
  - pkg_install: .if exists(...)
  - fetch: .if exists(...)
  - texinfo: by relying on PATH

And rather than resurrecting shells/tcsh one can also also try

  BUILD_DEPENDS +=3D ${CSH}:${PORTSDIR}/shells/44bsd-csh

  .if exists(/bin/csh)
  CSH ?=3D /bin/csh
  .else
  CSH ?=3D ${LOCALBASE}/bin/44bsd-csh
  .endif

But some ports may assume csh is tcsh like sh is bash on linux.



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