[patch] Add a few missing bits for OS X support

25 views
Skip to first unread message

Rafael Espíndola

unread,
Dec 6, 2011, 11:56:26 AM12/6/11
to distcc-...@googlegroups.com
The attached patch is not complete, but it adds enough features and
fixes to let distcc pump build a slightly patched version of firefox
on OS X.

What the patch does is

* add support for -isysroot and -arch
* Fix a really nasty corner case:
* CompressFiles::Compress uses os.makedirs to create a directory
(foo) for one compilation unit
* Another compilation unit does the equivalent of '#include "foo/../bar.h"'
* The compilation unit uses no other file in foo
* We conclude that we don't have to create a dummy
foo/forcing_technique_271828

Cheers,
Rafael

distcc-osx.patch

Rafael Espíndola

unread,
Dec 6, 2011, 12:05:58 PM12/6/11
to distcc-...@googlegroups.com
I attached the wrong file the first time.

Cheers,
Rafael

distcc-osx.patch

Rafael Ávila de Espíndola

unread,
Dec 14, 2011, 2:08:43 PM12/14/11
to distcc-...@googlegroups.com, dis...@lists.samba.org
Sorry, should patches be sent to distcc-...@googlegroups.com or
dis...@lists.samba.org?

Cheers,
Rafael

distcc-osx.patch

Rafael Ávila de Espíndola

unread,
Dec 14, 2011, 4:16:47 PM12/14/11
to distcc-...@googlegroups.com, dis...@lists.samba.org
ccing dis...@lists.samba.org


Cheers,
Rafael

Rafael Ávila de Espíndola

unread,
Dec 20, 2011, 1:43:39 PM12/20/11
to distcc-...@googlegroups.com, dis...@lists.samba.org
Resending since it looks like the previous message fell through the cracks.
distcc-osx.patch

Fergus Henderson

unread,
Dec 21, 2011, 10:39:51 AM12/21/11
to distcc-...@googlegroups.com, dis...@lists.samba.org

Thanks for the patch.

--
You received this message because you are subscribed to the "distcc-patches" list.
To post to this list, send email to <distcc-...@googlegroups.com>.
To unsubscribe from this list, send email to <distcc-patche...@googlegroups.com>.
For archives and more options, see <http://groups.google.com/group/distcc-patches>.

Rafael Espíndola

unread,
Mar 6, 2012, 7:22:15 AM3/6/12
to distcc-...@googlegroups.com, dis...@lists.samba.org
On 21 December 2011 13:39, Fergus Henderson <fer...@google.com> wrote:
> Thanks for the patch.

Ping?

Cheers,
Rafael

Rafael Espíndola

unread,
Apr 3, 2012, 1:23:55 PM4/3/12
to distcc-...@googlegroups.com, dis...@lists.samba.org
2012/3/6 Rafael Espíndola <rafael.e...@gmail.com>:

> On 21 December 2011 13:39, Fergus Henderson <fer...@google.com> wrote:
>> Thanks for the patch.
>
> Ping?

Ping?

Cheers,
Rafael

Fergus Henderson

unread,
Feb 27, 2014, 8:47:48 AM2/27/14
to distcc-...@googlegroups.com, dis...@lists.samba.org
Sorry for the very slow response to this patch.

The patch looks good, except for the part 

+  def include_sysroot(self):
+    # FIXME: Is this the correct precedence for isysroot and sysroot?
+    if self.sysroot:
+      return self.sysroot
+    return self.isysroot

where the correct precedence is the other way around.

I have changed that part so that isysroot takes precedence, and submitted this CL as revision 783 in the distcc svn repository.

On Tue, Dec 20, 2011 at 6:43 PM, Rafael Ávila de Espíndola <rafael.e...@gmail.com> wrote:
The attached patch is not complete, but it adds enough features and
fixes to let distcc pump build a slightly patched version of firefox
on OS X.

What the patch does is

* add support for -isysroot and -arch
* Fix a really nasty corner case:
  * CompressFiles::Compress uses os.makedirs to create a directory
(foo)  for one compilation unit
  * Another compilation unit does the equivalent of '#include
"foo/../bar.h"'
  * The compilation unit uses no other file in foo
  * We conclude that we don't have to create a dummy
foo/forcing_technique_271828

Cheers,
Rafael
--
You received this message because you are subscribed to the "distcc-patches" list.
To post to this list, send email to <distcc-...@googlegroups.com>.
To unsubscribe from this list, send email to <distcc-patche...@googlegroups.com>.
For archives and more options, see <http://groups.google.com/group/distcc-patches>.



--
Fergus Henderson <fer...@google.com>

"Defend the user, exclude no one, and create magic." -- Eric Schmidt.

Reply all
Reply to author
Forward
0 new messages