Fix remote building

[?]
Jun 17, 2015, 3:28 PM
5LBMP7GAY5IIOX75M62BRGKXS4BNIQRDBCYLM4PHI773KRABTL2QC

Dependencies

  • [2] OCZ4LSGG Automatically retry aborted builds
  • [3] 5AIYUMTB Basic remote building

Change contents

  • edit in src/hydra-queue-runner/build-remote.cc at line 146
    [2.749]
    [2.749]
    }
    /* Gather the inputs. */
    PathSet inputs({drvPath});
    for (auto & input : drv.inputDrvs) {
    Derivation drv2 = readDerivation(input.first);
    for (auto & name : input.second) {
    auto i = drv2.outputs.find(name);
    if (i != drv2.outputs.end()) inputs.insert(i->second.path);
    }
  • replacement in src/hydra-queue-runner/build-remote.cc at line 160
    [2.853][3.4008:4064](),[3.4008][3.4008:4064]()
    copyClosureTo(store, from, to, PathSet({drvPath}));
    [2.853]
    [3.4064]
    copyClosureTo(store, from, to, inputs);