config 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  22. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  23. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  24. export CGO_ENABLED=1
  25. [% IF c("var/linux-cross") %]
  26. # libcap includes
  27. mkdir -p /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/include/sys/
  28. cp /usr/include/sys/capability.h /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/include/sys/
  29. # libcap libraries
  30. cp /lib/[% c("var/crosstarget") %]/libcap.* /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/
  31. cp /usr/lib/[% c("var/crosstarget") %]/libcap.* /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/
  32. cp /lib/[% c("var/crosstarget") %]/libattr.* /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/
  33. # libcap search paths
  34. export CGO_LDFLAGS="$CGO_LDFLAGS -Wl,-rpath-link=/var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/"
  35. [% END %]
  36. targets:
  37. linux:
  38. var:
  39. arch_deps:
  40. - 'libcap-dev:[% c("var/arch_debian") %]'
  41. input_files:
  42. - project: container-image
  43. - name: go
  44. project: go
  45. - name: '[% c("var/compiler") %]'
  46. project: '[% c("var/compiler") %]'
  47. - name: binutils
  48. project: binutils