Christopher Collins created MYNEWT-753:
------------------------------------------

             Summary: newt - generated sysinit file inconsistent
                 Key: MYNEWT-753
                 URL: https://issues.apache.org/jira/browse/MYNEWT-753
             Project: Mynewt
          Issue Type: Bug
            Reporter: Christopher Collins
            Assignee: Christopher Collins
             Fix For: v1_1_0_rel


In the generated sysinit C file, calls to initialization functions are sorted 
by stage number.  Within a stage number, the ordering is random, and varies 
from one build to the next.  The randomness comes from Golang's random 
iteration of maps.

This is bad because it prevents repeatable builds, and causes unnecessary 
rebuilds.

The fix is to sort alphabetically by package name within a stage number. So,
* First sort by stage number
* Then sort by package name. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to