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 7:58 PM, Brook Milligan <> 
> 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?

This depends on whether fmt(1) is needed for build only or at runtime.
Either pass a special variable to configure script as Thomas suggested
or prepend PATH with ${PREFIX}/heirloom/bin (if fmt(1) is used for
building only)
or patch Makefiles/scripts that use fmt.

Home | Main Index | Thread Index | Old Index