jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

won't build on mac os x (missing ndate) - patch #235

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
build fails on os x 10.5.8 with error: ndate: command not found.

inferno/mkfiles/mkhost-MacOSX needs this fix:

mkhost-MacOSX.orig:9,15 - mkhost-MacOSX:9,15
  OSTARG=       os

  DATA2S=       data2s
- NDATE=        ndate
+ NDATE=        date '+%s'
  KSIZE=        ksize
  AWK=      awk
  CP=   cp

Original issue reported on code.google.com by tereniao...@gmail.com on 14 Jul 2010 at 12:41

GoogleCodeExporter commented 9 years ago
that usually means you haven't done a mk install first.

Original comment by Charles....@gmail.com on 14 Jul 2010 at 12:43

GoogleCodeExporter commented 9 years ago
 ... to provide the correct date/ndate command.

Original comment by Charles....@gmail.com on 14 Jul 2010 at 12:43

GoogleCodeExporter commented 9 years ago
Ah... ok. You're right, I successfully built on 10.4.11 starting from makemk.sh 
and using mk nuke before mk install. On the newer mac (which I did first) I 
wondered if I'd get away without mk nuke, the sequence of events was this:

start from working tree a few months old (<7 months)
hg pull && hg update
mk install
find problem as above, make patch
mk install
run into a different problem (duplicate symbols during link)
mk nuke
mk install
successful completion

I don't know what happened with the old source, but ndate is there now.

Original comment by tereniao...@gmail.com on 14 Jul 2010 at 1:41

GoogleCodeExporter commented 9 years ago

Original comment by Charles....@gmail.com on 14 Jul 2010 at 9:24