Hello,

I recently ran into some build problems on a new Mac OS machine and thought I 
would share in case others ran into the same issues.  I've opened a bug here 
(which contains the same info as below):

https://bugzilla.mozilla.org/show_bug.cgi?id=867259

The main failure mode is a fresh ./config.sh and ./build.sh fails with:

> [entering kernel]
> ERROR: You have uncommited changes in kernel
> You may force overwriting these changes
> with |source build/envsetup.sh force|
> 
> ERROR: Patching of kernel/ failed.

If you do a git status in ./kernel you will see that it does think there are 
modified files:

> # On branch b2g_autogen_ephemeral_branch
> # Changes not staged for commit:
> #   (use "git add <file>..." to update what will be committed)
> #   (use "git checkout -- <file>..." to discard changes in working directory)
> #
> #       modified:   include/linux/netfilter/xt_CONNMARK.h
> #       modified:   include/linux/netfilter/xt_DSCP.h
> #       modified:   include/linux/netfilter/xt_MARK.h
> #       modified:   include/linux/netfilter/xt_RATEEST.h
> #       modified:   include/linux/netfilter/xt_TCPMSS.h
> #       modified:   include/linux/netfilter_ipv4/ipt_ECN.h
> #       modified:   include/linux/netfilter_ipv4/ipt_TTL.h
> #       modified:   include/linux/netfilter_ipv6/ip6t_HL.h
> #       modified:   net/ipv4/netfilter/ipt_ECN.c
> #       modified:   net/netfilter/xt_DSCP.c
> #       modified:   net/netfilter/xt_HL.c
> #       modified:   net/netfilter/xt_RATEEST.c
> #       modified:   net/netfilter/xt_TCPMSS.c

These "modifications" are really the differences between files with the same 
name, but different case.  For example, xt_CONNMARK.h vs xt_connmark.h.

These differences will exist for all platforms, but at the moment you may only 
encounter this error on hamachi or leo.  These are the only platforms I see 
that patch ./kernel.

The wiki does mention HFS+ case issues under the Galaxy S2 section:

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites#Samsung_Galaxy_S2

We may want to strength that warning and move it out into the general Mac setup 
section.  Also, even if you don't hit the patching issue, it seems dubious to 
build under these circumstances.  It might be a good idea to fast-fail in 
./config.sh if the filesystem is case-insensitive.

The workaround is to build b2g within a case-sensitive disk image as described 
in the wiki.

Any other suggestions or ideas welcome.

Thanks!

Ben
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to