tech-pkg archive

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

Re: package using fmt -w



On Sat, Jun 30, 2012 at 10:58:09AM -0600, Brook Milligan wrote:
> I am building a package that uses 'fmt -w' in the configure script and
> elsewhere.  NetBSD's fmt does not take the '-w' options although
> textproc/heirloom-fmt does.  I have made heirloom-fmt a dependency for
> my package (both with BUILD_DEPENDS and buildlink) but the build is
> finding the native fmt instead.
> 
> What is the best way to make the package use a non-native fmt?

I'd look at things a bit differently.

Heirloom's fmt(1) says:

> -w width       Set the length of generated output lines to width characters.

while NetBSD's says:

>    -g goal
>           New way to set the goal length.
> 
>    -m maximum
>           New way to set the maximum length.      

so they both do the same job.

You just have to work out which version of fmt(1) is being run.

Regards,
Alistair


Home | Main Index | Thread Index | Old Index