[tor-bugs] #9711 [Tor bundles/installation]: Test out crosstools-ng for Gitian OSX builds (instead of toolchain4 binaries)

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Oct 13 18:17:02 UTC 2013


#9711: Test out crosstools-ng for Gitian OSX builds (instead of toolchain4
binaries)
------------------------------------------+-------------------------------
     Reporter:  mikeperry                 |      Owner:  erinn
         Type:  task                      |     Status:  needs_information
     Priority:  normal                    |  Milestone:
    Component:  Tor bundles/installation  |    Version:
   Resolution:                            |   Keywords:  tbb-3.0, gitian
Actual Points:                            |  Parent ID:
       Points:                            |
------------------------------------------+-------------------------------

Comment (by mingwandroid):

 Ok I managed to work around this, but the things I had to do were
 horrible:

 I decided that I needed my (inside the VM) user to have sudoer access
 without passwords because the actual build commands are run with
 redirection for logging so the can't use the tty to ask for passwords
 anyway.

 In order to be able to edit the /etc/sudoers in the VM I had to:

 1. Patch gitian-builder with 0002-use-ssh-t-for-commands-run-on-target-
 via-sudo.patch (attached - please read the comments on this it is likely
 to break some other things, basically, if sudo appears in $* then I add -t
 to the ssh command).

 2. Then with this done, run on-target sudo nano /etc/sudoers to add
 "Defaults:ubuntu !authenticate" to it.

 However, instead of trying to install the flosoft MacOSX SDK .deb file at
 build time, I think the following options are better:
 1. Install the .deb at target VM creation time (as I'm guessing other
 packages are installed?)
 2. If we must unpack the SDK at build time then don't use the .deb,
 instead use https://launchpad.net/~flosoft/+archive/cross-apple/+files
 /apple-uni-sdk-10.6_20110407.orig.tar.gz and untar it.

 Also, I've seen various references to /usr/lib/i686-apple-darwin*, I think
 these are leftovers from before Mike switch to using toolchain4. These
 toolchains are fully relocatable so none of this should be needed.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9711#comment:46>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list