svn commit: r400131 - in head/sysutils/uniutils: . files

Alexey Dokuchaev danfe at FreeBSD.org
Sat Oct 24 18:20:17 UTC 2015


On Sat, Oct 24, 2015 at 08:07:57PM +0200, Baptiste Daroussin wrote:
> On Sat, Oct 24, 2015 at 05:20:12PM +0000, Alexey Dokuchaev wrote:
> > On Sat, Oct 24, 2015 at 04:48:49PM +0000, Thierry Thomas wrote:
> > > New Revision: 400131
> > > URL: https://svnweb.freebsd.org/changeset/ports/400131
> > > 
> > > Log:
> > >   - Fix hard-coded endian assumption;
> > > [...]
> > > 
> > > ++[ $(( $(printf '\1' | od -dAn) )) -eq 1 ] && end=le || end=be
> > 
> > Nice trick! ;)
> 
> Nice trick for sure, but not really cross building friendly :(

Hmm, right, didn't think of that.  Perhaps the framework should provide
some {HOST,TARGET}_ENDIANNESS variables (if it does not already)?

./danfe


More information about the svn-ports-all mailing list