{"id":3286,"date":"2014-05-14T02:27:50","date_gmt":"2014-05-14T00:27:50","guid":{"rendered":"http:\/\/glandium.org\/blog\/?p=3286"},"modified":"2019-09-03T15:26:16","modified_gmt":"2019-09-03T06:26:16","slug":"dont-ever-use-in-tree-mozconfigs","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=3286","title":{"rendered":"Don&#8217;t ever use in-tree mozconfigs"},"content":{"rendered":"<p>I just saw two related gists about how <a href=\"https:\/\/gist.github.com\/ednapiranha\/11222571\">some people<\/a> are <a href=\"https:\/\/gist.github.com\/paulrouget\/11294094\">building Firefox<\/a>.<\/p>\n<p>Both are doing the same mistake, which is not really surprising, since one is based on the other. As I'm afraid people might pick that up, I'm posting this:<\/p>\n<p><strong>Don't <em>ever<\/em> use in-tree mozconfigs<\/strong><\/p>\n<p>If your mozconfig contains something like<\/p>\n<blockquote><p><code>. $topsrcdir\/something<\/code><\/p><\/blockquote>\n<p>Then remove it. Now.<\/p>\n<p>Those mozconfigs are for use in automated builds. They make many assumptions on the build environment being the one from the build slaves. Local developers shouldn't need anything but minimalistic, self contained mozconfigs. If there are things that can be changed in the build system to accommodate developers, <a href=\"https:\/\/bugzilla.mozilla.org\/enter_bug.cgi?product=Core&component=Build%20Config\">file bugs<\/a> (I could certainly see the <code>.noindex<\/code> thing automatically added to <code>MOZ_OBJDIR<\/code> by default on mac)<\/p>\n<p>Corollary: if you can't build Firefox without a mozconfig (for a reason other than your build environment missing build requirements), <a href=\"https:\/\/bugzilla.mozilla.org\/enter_bug.cgi?product=Core&component=Build%20Config\">file a bug<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just saw two related gists about how some people are building Firefox. Both are doing the same mistake, which is not really surprising, since one is based on the other. As I&#8217;m afraid people might pick that up, I&#8217;m posting this: Don&#8217;t ever use in-tree mozconfigs If your mozconfig contains something like . $topsrcdir\/something [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[23],"class_list":["post-3286","post","type-post","status-publish","format-standard","hentry","category-planet-mozilla","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3286"}],"version-history":[{"count":2,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3286\/revisions"}],"predecessor-version":[{"id":3288,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3286\/revisions\/3288"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}