tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cross-building dtrace from Mac OS X - echo vs. \n



On Sun, 28 Mar 2010, Hubert Feyrer wrote:
> The problem here is that
> src/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh tries
> to be smart about "echo", but fails. [...]

> What to do? Options that I see:
> 1) Make NetBSD's echo(1) or sh(1) (for its echo-builtin) a tool
> 2) Fix the mkerrtags.sh and mknames.sh to use e.g. printf(1)?
>    I understand this makes us diverge from the upstream...
> 3) Ignore

I like option 2.  If we have to cross build on hosts that don't have
printf(1), then we can either suggest HOST_SH=bash (which has printf as
a builtin), or provide tools/printf as part of the build system.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index