build-tools and sed

Daniel C. Sobral dcs at tcoip.com.br
Wed Jun 11 11:09:56 PDT 2003


Thanks for the clarificaton.

Ruslan Ermilov wrote:
> On Wed, Jun 11, 2003 at 02:31:13PM -0300, Daniel C. Sobral wrote:
> 
>>Shouldn't sed be part of the build tools?
>>
> 
> No.  build-tools are a different beastie; they are the tools
> that are only built during buildworld to "build" something
> else.  sed(1) isn't such a tool.  Yes, it can be put under
> the bootstrap-tools if there's some backward incompatibility
> it in, but there's just no reason to do it right now.  Please
> see below for a further explanation.
> 
> 
>>It's used in src//gnu/usr.bin/binutils/libbfd/Makefile, at the very least:
>>
>>targmatch.h: targmatch.sed config.bfd
>>        sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET}
>>
>>config.h: config.h.fbsd
>>.if ${TARGET_ARCH} == "i386"
>>        sed -e 's,!!TRAD_HEADER!!,"hosts/i386bsd.h",g' ${.ALLSRC} > 
>>${.TARGET}
>>.else
>>        sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET}
>>.endif
>>
>>
>>Which was rather annoying when I got caught in the sed bug. Updating 
>>sources did not fix the problem, because it kept using the install sed...
>>
> 
> I asked for an UPDATING entry when I saw this bug for the first
> time, and got a positive reply saying this was a good idea, but
> this never actually happened, and this is now the third report I
> have heard.
> 
> In short: if your build environment is broken, the chances are
> low you will be able to build your world.  E.g., if you do not
> have /usr/include you cannot win.  Similarly, when your gcc(1)
> is broken (for example), you won't be able to build world too.
> We depend on a good shape of the build environment, and if it
> breaks, we put this sort of info into UPDATING.
> 
> When we create a backward incompatibility, this is completely
> another case, and we put stuff either in bootstrap-tools or
> cross-tools, depending on their nature.  (cross-tools are similar
> to bootstrap-tools except for also directly depending on the
> value of TARGET_ARCH/TARGET.)
> 
> 
> Cheers,


-- 
Daniel C. Sobral                   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
VIVO Centro Oeste Norte
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: Daniel.Capo at tco.net.br
         Daniel.Sobral at tcoip.com.br
         dcs at tcoip.com.br

Outros:
	dcs at newsguy.com
	dcs at freebsd.org
	capo at notorious.bsdconspiracy.net

Life is a whim of several billion cells to be you for a while.



More information about the freebsd-hackers mailing list