config 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. version: 1.0.10
  2. git_url: https://github.com/hlandau/svcutils.git
  3. git_hash: c25dac49e50cbbcbef8c81b089f56156f4067729
  4. filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
  5. build: '[% c("projects/go/var/build_go_lib") %]'
  6. var:
  7. container:
  8. use_container: 1
  9. go_lib: gopkg.in/hlandau/svcutils.v1
  10. go_lib_install:
  11. - gopkg.in/hlandau/svcutils.v1
  12. - gopkg.in/hlandau/svcutils.v1/caps
  13. - gopkg.in/hlandau/svcutils.v1/chroot
  14. - gopkg.in/hlandau/svcutils.v1/dupfd
  15. - gopkg.in/hlandau/svcutils.v1/exepath
  16. - gopkg.in/hlandau/svcutils.v1/passwd
  17. - gopkg.in/hlandau/svcutils.v1/pidfile
  18. - gopkg.in/hlandau/svcutils.v1/setuid
  19. - gopkg.in/hlandau/svcutils.v1/systemd
  20. build_go_lib_pre: |
  21. [% pc(c('var/compiler'), 'var/setup', {
  22. compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')),
  23. hardened_gcc => c('var/container/suite') != 'buster'
  24. }) %]
  25. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  26. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  27. export CGO_ENABLED=1
  28. [% IF c("var/linux-cross") %]
  29. # libcap includes
  30. mkdir -p /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/include/sys/
  31. cp /usr/include/sys/capability.h /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/include/sys/
  32. # libcap libraries
  33. cp /lib/[% c("var/crosstarget") %]/libcap.* /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/
  34. cp /usr/lib/[% c("var/crosstarget") %]/libcap.* /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/
  35. [% IF c("var/linux-arm") %]
  36. cp /lib/[% c("var/crosstarget") %]/libattr.* /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/
  37. [% END %]
  38. # libcap search paths
  39. export CGO_LDFLAGS="$CGO_LDFLAGS -Wl,-rpath-link=/var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/"
  40. [% IF c("var/linux-ppc64le") %]
  41. # GCC's cc1 expects Jessie libmpfr; we feed it a symlink to Buster's instead
  42. # as a stupid compat cludge. TODO: Maybe copy in the actual Jessie version
  43. # from the GCC build container?
  44. mkdir -p /var/tmp/dist/libmpfr
  45. ln -s -T /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /var/tmp/dist/libmpfr/libmpfr.so.4
  46. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/tmp/dist/libmpfr"
  47. [% END %]
  48. [% END %]
  49. targets:
  50. linux:
  51. var:
  52. arch_deps:
  53. - 'libcap-dev:[% c("var/arch_debian") %]'
  54. linux-ppc64le:
  55. var:
  56. container:
  57. use_container: 1
  58. suite: buster
  59. arch: amd64
  60. # Disable hardening-wrapper since it doesn't exist for buster
  61. deps:
  62. - libc6-dev-i386
  63. - lib32stdc++6
  64. - build-essential
  65. - python
  66. - bison
  67. - automake
  68. - libtool
  69. - zip
  70. - unzip
  71. input_files:
  72. - project: container-image
  73. - name: go
  74. project: go
  75. - name: '[% c("var/compiler") %]'
  76. project: '[% c("var/compiler") %]'
  77. - name: binutils
  78. project: binutils