Closed Bug 852869 Opened 11 years ago Closed 11 years ago

Remove some redundant Makefile.in files in comm-central

Categories

(MailNews Core :: Build Config, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 23.0

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(6 files)

Now that we've started moving makefile variables to moz.build, and that m-c has started removing empty Makefile.in we're able to do the same as well.

Attaching some patches that start us doing this. They've been tested on try and passed to the same extent as the tree state at the time I pushed:

https://tbpl.mozilla.org/?tree=Thunderbird-Try&rev=ce7c10122be8
This ports the rules.mk part of bug 757637 from m-c and is the part that lets us actually not need to have Makefile.in files.
Attachment #727105 - Flags: review?(bugspam.Callek)
Attached patch [checked in] Simple removals — — Splinter Review
These are all empty Makefile.ins
Attachment #727106 - Flags: review?(bugspam.Callek)
This consists of:

1) Removing Makefiles.in which have a MODULE definition, but don't actually do anything (nothing else in dir)

2) For some of those, I've also removed the entering in the empty directory.
Attachment #727108 - Flags: review?(bugspam.Callek)
mime/emitters only has one directory - src. We can just collapse that into mime/emitters.

I've done this as two parts so we can preserve history better.
Attachment #727109 - Flags: review?(bugspam.Callek)
Attachment #727110 - Flags: review?(bugspam.Callek)
Comment on attachment 727105 [details] [diff] [review]
[checked in] Port rules.mk part of bug 757637

I was just about to file a bug on this because I noticed that my external API build got stuck on a Makefile.in file "missing" from LDAP...
Attachment #727105 - Flags: feedback+
Attachment #727105 - Flags: review?(bugspam.Callek) → review+
Although, rather annoyingly, all my mailnews/.../backend.mk files seem to turn off Makefile generation, which makes testing patches with Makefile changes interesting to say the least...
(In reply to neil@parkwaycc.co.uk from comment #7)
> Although, rather annoyingly, all my mailnews/.../backend.mk files seem to
> turn off Makefile generation, which makes testing patches with Makefile
> changes interesting to say the least...

I think I know where the issue is here. I'll look at it in a hour or two.
This ports part 16 of bug 784841. This should fix the dependency issues - I think we'll need attachment 727105 [details] [diff] [review] and this one applied, then a clobber, then pushing the other makefile patches shouldn't need a clobber for each patch.
Attachment #734499 - Flags: review?(bugspam.Callek)
Comment on attachment 727105 [details] [diff] [review]
[checked in] Port rules.mk part of bug 757637

apparently bitrotted
Comment on attachment 727106 [details] [diff] [review]
[checked in] Simple removals

 hg qpush -v
applying makefile_remove_mime_emitter
patching file mailnews/build/Makefile.in
Hunk #1 succeeded at 48 (offset -1 lines).
Hunk #2 succeeded at 99 (offset -1 lines).
cannot create mailnews/mime/emitters/Makefile.in: destination already exists
mailnews/build/Makefile.in
(In reply to Magnus Melin from comment #10)
> Comment on attachment 727105 [details] [diff] [review]
> Port rules.mk part of bug 757637
> 
> apparently bitrotted

Works fine here... Maybe you're applying the patches in the wrong order?
Comment on attachment 734499 [details] [diff] [review]
[checked in] Port part 16 of bug 784841

Seeing if Joshua wants to take these on
Attachment #734499 - Flags: review?(Pidgeot18)
Attachment #727106 - Flags: review?(Pidgeot18)
Attachment #727108 - Flags: review?(Pidgeot18)
Attachment #727109 - Flags: review?(Pidgeot18)
Attachment #727110 - Flags: review?(Pidgeot18)
Pushed all these patches to try server here:

https://tbpl.mozilla.org/?tree=Thunderbird-Try&rev=f990f0a95dc1
Comment on attachment 727106 [details] [diff] [review]
[checked in] Simple removals

Review of attachment 727106 [details] [diff] [review]:
-----------------------------------------------------------------

I've built with this locally on the try stack; given the Makefile.in-is-unnecessary patch landing first, I have no problems with this.
Attachment #727106 - Flags: review?(Pidgeot18) → review+
Comment on attachment 727109 [details] [diff] [review]
[checked in] Move mime/emitters/src to mime/emitters Part 1

It took me a while to realize that this patch isn't safe by itself, but needs the next patch.
Attachment #727109 - Flags: review?(Pidgeot18) → review+
Comment on attachment 727110 [details] [diff] [review]
[checked in] Move mime/emitters/src to mime/emitters Part 2

This is one of the directories that always struck me as needlessly deep.
Attachment #727110 - Flags: review?(Pidgeot18) → review+
Attachment #727106 - Flags: review?(bugspam.Callek)
Attachment #727109 - Flags: review?(bugspam.Callek)
Attachment #727110 - Flags: review?(bugspam.Callek)
(In reply to Joshua Cranmer [:jcranmer] from comment #15)
> I've built with this locally on the try stack; given the
> Makefile.in-is-unnecessary patch landing first, I have no problems with this.

We need that patch, but also we need attachment 734499 [details] [diff] [review] landing before as well, as otherwise dep builds may get messed up.
Comment on attachment 734499 [details] [diff] [review]
[checked in] Port part 16 of bug 784841

Review of attachment 734499 [details] [diff] [review]:
-----------------------------------------------------------------

::: config/config.mk
@@ -686,5 @@
>  
> -ifdef TIERS
> -DIRS += $(foreach tier,$(TIERS),$(tier_$(tier)_dirs))
> -STATIC_DIRS += $(foreach tier,$(TIERS),$(tier_$(tier)_staticdirs))
> -endif

What's the purpose of moving this from config/config.mk to config/rules.mk?
Comment on attachment 727108 [details] [diff] [review]
[checked in] More complicated removals

Review of attachment 727108 [details] [diff] [review]:
-----------------------------------------------------------------

I've never been a really big fan of overuse of the public/src/build directory separation, particularly in cases like db/mork where the public directory contains a single header to export (perhaps I should file a bug on getting rid of excessive directory usage).

That said, I'm not clear why some of the other directories (like news) weren't inlined as well.
(In reply to Joshua Cranmer [:jcranmer] from comment #19)
> ::: config/config.mk
> @@ -686,5 @@
> >  
> > -ifdef TIERS
> > -DIRS += $(foreach tier,$(TIERS),$(tier_$(tier)_dirs))
> > -STATIC_DIRS += $(foreach tier,$(TIERS),$(tier_$(tier)_staticdirs))
> > -endif
> 
> What's the purpose of moving this from config/config.mk to config/rules.mk?

I think just organisation - it is actually a rule, rather than a configuration, I was also following parts of this patch (https://bug784841.bugzilla.mozilla.org/attachment.cgi?id=717574) so gps might know more, but I really suspect its more of a rule option than a config one.
Comment on attachment 734499 [details] [diff] [review]
[checked in] Port part 16 of bug 784841

Review of attachment 734499 [details] [diff] [review]:
-----------------------------------------------------------------

According to gps, the original reason for the move is that the DIRS variable might not be defined at this point in time for config/config.mk. Since we've lasted this long without it, it's not a necessary move, but moving it to prevent any surprises is fine by me.
Attachment #734499 - Flags: review?(Pidgeot18) → review+
Attachment #734499 - Flags: review?(bugspam.Callek)
Comment on attachment 727105 [details] [diff] [review]
[checked in] Port rules.mk part of bug 757637

https://hg.mozilla.org/comm-central/rev/3281b0e5ed4d
Attachment #727105 - Attachment description: Port rules.mk part of bug 757637 → [checked in] Port rules.mk part of bug 757637
Comment on attachment 734499 [details] [diff] [review]
[checked in] Port part 16 of bug 784841

https://hg.mozilla.org/comm-central/rev/fe96d228cc6a
Attachment #734499 - Attachment description: Port part 16 of bug 784841 → [checked in] Port part 16 of bug 784841
Comment on attachment 727106 [details] [diff] [review]
[checked in] Simple removals

https://hg.mozilla.org/comm-central/rev/6dca35019107
Attachment #727106 - Attachment description: Simple removals → [checked in] Simple removals
Comment on attachment 727109 [details] [diff] [review]
[checked in] Move mime/emitters/src to mime/emitters Part 1

https://hg.mozilla.org/comm-central/rev/aeb3e1a89e9b
Attachment #727109 - Attachment description: Move mime/emitters/src to mime/emitters Part 1 → [checked in] Move mime/emitters/src to mime/emitters Part 1
Comment on attachment 727110 [details] [diff] [review]
[checked in] Move mime/emitters/src to mime/emitters Part 2

https://hg.mozilla.org/comm-central/rev/2f747ef4292e
Attachment #727110 - Attachment description: Move mime/emitters/src to mime/emitters Part 2 → [checked in] Move mime/emitters/src to mime/emitters Part 2
(In reply to Joshua Cranmer [:jcranmer] from comment #20)
> Comment on attachment 727108 [details] [diff] [review]
> More complicated removals
> 
> Review of attachment 727108 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> I've never been a really big fan of overuse of the public/src/build
> directory separation, particularly in cases like db/mork where the public
> directory contains a single header to export (perhaps I should file a bug on
> getting rid of excessive directory usage).

For things like public/src/build we can get rid of those in follow-up bugs. This patch just gets rid of some of the empty redundant directories that we're going into at the moment. It'll be easy to re-instantiate those.

> That said, I'm not clear why some of the other directories (like news)
> weren't inlined as well.

See comment 3 - I was focusing on the ones which had a redundant MODULE definition in them, not just ones that were empty directories that are just forwarding on to others. I can file a follow-up to look for those if you want.
Attachment #727108 - Flags: review?(Pidgeot18) → review+
Attachment #727108 - Flags: review?(bugspam.Callek)
Comment on attachment 727108 [details] [diff] [review]
[checked in] More complicated removals

https://hg.mozilla.org/comm-central/rev/e80ecf705881
Attachment #727108 - Attachment description: More complicated removals → [checked in] More complicated removals
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 23.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: