need to clobber rdf files in builds with objdir (separate object tree)

"L. David Baron" <[email protected]> Wed, 25 Feb 2004 14:16:24 -0800
Newsgroups gmane.comp.mozilla.devel.seamonkey,gmane.comp.mozilla.builds
Message-ID <[email protected]>
Because:
 1) the insertion of the locale/region version string into contents.rdf,
    contents-platform.rdf and contents-region.rdf files was recently
    (February 4) changed from using allmakefiles.sh to using the XUL
    preprocessor,
 2) JAR file creation searches in both the objdir and the srcdir for the
    file to add, and
 3) I bumped the locale/region version on the trunk on Saturday
    (February 21),
anybody who has an objdir build whose object tree hasn't been clobbered
since (1) happened needs to delete the rdf files in the objdir.  People
with srcdir builds won't have this problem since they had to deal with
cvs conflicts when (1) happened.

You can easily build a list of the files that need to be removed from
the objdir with the following command (all one line), executed in your
objdir:
/usr/bin/find . -name contents.rdf -o -name contents-region.rdf -o -name
  contents-platform.rdf > rdfs-to-remove
(These could then be removed, once you make sure the list is correct,
with a command like "rm -i `cat rdfs-to-remove`".)

Note that firefox still uses allmakefiles.sh to generate these files so
if you're building firefox you have to do one of:
 1) not remove the files in the above list that are in browser/ and
    toolkit/, or
 2) run configure again after doing the removal to regenerate those
    files in the objdir
Furthermore, when the firefox patch to do this conversion lands similar
steps will be needed to remove the files in browser/ and toolkit/ (or,
for those with srcdir builds, clear further merge conflicts).

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >