config 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. version: 1.34.2
  4. var:
  5. prev_version: 1.33.0
  6. container:
  7. use_container: 1
  8. targets:
  9. android:
  10. var:
  11. arch_deps:
  12. - libssl-dev
  13. - pkg-config
  14. - zlib1g-dev
  15. android-armv7:
  16. var:
  17. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=thumbv7neon-linux-androideabi --set=target.thumbv7neon-linux-androideabi.cc=$ANDROID_NDK_HOME/arm/bin/arm-linux-androideabi-gcc
  18. android-x86:
  19. var:
  20. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=i686-linux-android --set=target.i686-linux-android.cc=$ANDROID_NDK_HOME/x86/bin/i686-linux-android-gcc
  21. android-x86_64:
  22. var:
  23. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=x86_64-linux-android --set=target.x86_64-linux-android.cc=$ANDROID_NDK_HOME/x86_64/bin/x86_64-linux-android-gcc
  24. android-aarch64:
  25. var:
  26. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=aarch64-linux-android --set=target.aarch64-linux-android.cc=$ANDROID_NDK_HOME/arm64/bin/aarch64-linux-android-gcc
  27. linux:
  28. var:
  29. deps:
  30. - libc6-dev-i386
  31. - lib32stdc++6
  32. - build-essential
  33. - python
  34. - automake
  35. - libssl-dev
  36. - pkg-config
  37. - hardening-wrapper
  38. # We use
  39. # `--enable-local-rust` to avoid downloading the required compiler during
  40. # build time
  41. #
  42. # `--enable-vendor` to avoid downloading crates during build time and just
  43. # use the ones which are shipped with the source
  44. #
  45. # `--enable-extended` to build not only rustc but cargo as well
  46. #
  47. # `--enable-llvm-static-stdccp` to take a libstdc++ on Wheezy into account
  48. # which is too old and if used gives undefined reference errors
  49. #
  50. # `--release-channel=stable` to just include stable features in the
  51. # compiler
  52. #
  53. # `--sysconfdir=etc` to avoid install failures as |make install| wants to
  54. # write to /etc otherwise
  55. #
  56. # the `target` triple to explicitly specify the architecture and platform
  57. # for the compiler/std lib. Ideally, it should not be needed unless one is
  58. # cross-compiling, but compiling `alloc_jemalloc` fails without that in a
  59. # 32bit container. "--host=x86_64-unknown-linux-gnu" is used in its
  60. # configure script in this case.
  61. # `--set=` to explicitly specify the C compiler. We need to compile the
  62. # bundled LLVM and it wants to use `cc`. However, we don't have that in
  63. # our compiled GCC resulting in weird errors due to C and C++ compiler
  64. # version mismatch. We avoid that with this configure option. We need to
  65. # build our own GCC in the first place as 4.7.2 is too old to get all the
  66. # Rust pieces compiled.
  67. configure_opt: --enable-local-rust --enable-vendor --enable-extended --enable-llvm-static-stdcpp --release-channel=stable --sysconfdir=etc --target=x86_64-unknown-linux-gnu,i686-unknown-linux-gnu --set=target.x86_64-unknown-linux-gnu.cc=gcc --set=target.i686-unknown-linux-gnu.cc=gcc
  68. linux-armhf:
  69. var:
  70. # container:
  71. # suite: jessie
  72. deps:
  73. - build-essential
  74. - python
  75. - automake
  76. - libssl-dev
  77. - pkg-config
  78. - hardening-wrapper
  79. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --build=[% c("var/gnu-build-triplet") %] --host=[% c("var/gnu-host-triplet") %] --target=[% c("var/gnu-host-triplet") %] --set=target.[% c("var/gnu-host-triplet") %].cc=gcc --set=target.[% c("var/gnu-host-triplet") %].linker=gcc
  80. linux-arm64:
  81. var:
  82. deps:
  83. - build-essential
  84. - python
  85. - automake
  86. - zlib1g-dev
  87. - libssl-dev
  88. - pkg-config
  89. # - hardening-wrapper
  90. configure_opt: --enable-local-rust --enable-vendor --enable-extended --enable-llvm-static-stdcpp --release-channel=stable --sysconfdir=etc --build=[% c("var/gnu-build-triplet") %] --host=[% c("var/gnu-host-triplet") %] --target=[% c("var/gnu-host-triplet") %] --set=target.[% c("var/gnu-host-triplet") %].cc=gcc --set=target.[% c("var/gnu-host-triplet") %].linker=gcc
  91. osx-x86_64:
  92. var:
  93. arch_deps:
  94. - libssl-dev
  95. - pkg-config
  96. - zlib1g-dev
  97. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=x86_64-apple-darwin --set=target.x86_64-apple-darwin.cc=x86_64-apple-darwin-clang
  98. windows:
  99. var:
  100. arch_deps:
  101. - libssl-dev
  102. - pkg-config
  103. - zlib1g-dev
  104. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=[% c("arch") %]-pc-windows-gnu
  105. input_files:
  106. - project: container-image
  107. - project: cmake
  108. name: cmake
  109. - project: '[% c("var/compiler") %]'
  110. name: '[% c("var/compiler") %]'
  111. - URL: 'https://static.rust-lang.org/dist/rustc-[% c("version") %]-src.tar.gz'
  112. name: rust
  113. sig_ext: asc
  114. file_gpg_id: 1
  115. gpg_keyring: rust.gpg
  116. - URL: 'https://static.rust-lang.org/dist/rust-[% c("var/prev_version") %]-[% c("var/gnu-build-triplet") %].tar.xz'
  117. name: prev_rust
  118. sig_ext: asc
  119. file_gpg_id: 1
  120. gpg_keyring: rust.gpg
  121. - filename: unwind.patch
  122. enable: '[% c("var/windows-i686") %]'
  123. - filename: 42574.patch
  124. - filename: 43909.patch