Remove lxcbr0 lines from gitian-build.sh #11391

pull meshcollider wants to merge 1 commits into bitcoin:master from meshcollider:201709_gitian_script_fix changing 1 files +0 −2
  1. meshcollider commented at 1:36 AM on September 24, 2017: contributor

    The gitian-build.sh script crashes with an error when I tried to use it, @kallewoof also had this same issue:

    lxcbr0: ERROR while getting interface flags: No such device
    SIOCSIFADDR: No such device
    lxcbr0: ERROR while getting interface flags: No such device

    And then:

    lxc-execute: failed to find gateway addresses
    lxc-execute: failed to spawn 'gitian'
    ./bin/gbuild:21:in `system!': failed to run make-clean-vm --suite trusty --arch amd64 (RuntimeError)

    I believe it's because of the two lines which this PR removes, I tested it and seems to work as expected now. These lines are unique to this script and aren't mentioned in gitian-building.md or release-process.md. We discussed it on IRC, @achow101 agrees removing these lines would probably fix it: https://botbot.me/freenode/bitcoin-core-dev/2017-09-19/?msg=91299782&page=2

    Has anyone successfully used this script as-is? Or does everyone else manually run the builds/write their own script like I have up til this point?

  2. Remove lxcbr0 lines from gitian-build.sh 8849130415
  3. fanquake added the label Scripts and tools on Sep 24, 2017
  4. achow101 commented at 2:26 AM on September 24, 2017: member

    Has anyone successfully used this script as-is? Or does everyone else manually run the builds/write their own script like I have up til this point?

    Yes, it's my script and there was a reason for those two lines there (it fixed some problems for me in the past). Removing those two lines doesn't effect my setup now (for some reason) so it should be fine to remove them.

    Edit: Actually removing them does break my setup now. Normally I use kvm anyways so I don't notice it, but without those lines, things are broken.

  5. meshcollider commented at 4:52 AM on September 24, 2017: contributor

    Hmm how did you set up that bridge? It's not mentioned in any docs so maybe it's them that need amending not this. Do you also have a br0 bridge (the one configured here: https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md#setting-up-debian-for-gitian-building)? Or just lxcbr0?

  6. achow101 commented at 7:14 PM on September 25, 2017: member

    I don't remember how that was all actually setup; I did it years ago. I believe it may be the same thing as the br0 setup in the gitian building guide but my setup probably had some weirdness to it or had br0 already taken by something else. I believe that it may have also been that lxc was defaulting to using lxcbr0 for me instead of br0. I'm not sure.

  7. meshcollider commented at 12:58 AM on September 27, 2017: contributor

    I think it makes more sense to have the script consistent with the VM set up in the docs, so it'd be good if at least one other person (ping @kallewoof ?) could confirm this fixes it like it does for me

  8. kallewoof commented at 1:07 AM on September 27, 2017: member

    Sorry for lack of response. I actually gave up trying to get this all to work as there are a few too many assumptions that I can't guess correctly. I believe the fix you suggest enables the --setup call. Even without this change I am able to run the --build variant, but I have no idea if the results are actually valid as I haven't verified or signed anything yet. Sorry, I will try to get back on this. For now, weak ACK from me.

  9. MarcoFalke commented at 1:15 PM on September 29, 2017: member

    Concept ACK. I don't think we should include workarounds that only work on a single dev's machine.

  10. MarcoFalke commented at 8:09 AM on September 30, 2017: member

    It's not mentioned in any docs

    Indeed, this is causing confusion: https://github.com/bitcoin-core/docs/issues/3

  11. MarcoFalke added the label Build system on Sep 30, 2017
  12. MarcoFalke merged this on Sep 30, 2017
  13. MarcoFalke closed this on Sep 30, 2017

  14. MarcoFalke referenced this in commit 7632310515 on Sep 30, 2017
  15. meshcollider deleted the branch on Sep 30, 2017
  16. Sjors commented at 3:52 PM on November 4, 2017: member

    Can this be added to v0.15.1?

  17. achow101 commented at 3:54 PM on November 4, 2017: member

    @Sjors You can and should just copy the script out of the folder where you have the bitcoin source and use it from outside of that. There you can make any modifications that you want to it without said modifications being effected by the git tree changing.

  18. ckeyer referenced this in commit 0caf696d5a on Dec 2, 2017
  19. ckeyer referenced this in commit 6d187edcd2 on Dec 2, 2017
  20. ckeyer referenced this in commit b885205701 on Dec 2, 2017
  21. ckeyer referenced this in commit 4068961cb9 on Dec 2, 2017
  22. ckeyer referenced this in commit a8f99b5080 on Dec 2, 2017
  23. h4x3rotab referenced this in commit 31002c8986 on Dec 20, 2017
  24. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me