Files
charm-cinder-backup-swift-p…/charmcraft.yaml
Felipe Reyes b2ed809e20 Fix s390x and pp64el builds
Add build dependencies needed for s390x and pp64el

::   writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
::   running build_ext
::   generating cffi module 'build/temp.linux-s390x-cpython-310/_padding.c'
::   creating build/temp.linux-s390x-cpython-310
::   generating cffi module 'build/temp.linux-s390x-cpython-310/_openssl.c'
::   building '_openssl' extension
::   creating build/temp.linux-s390x-cpython-310/build
::   creating build/temp.linux-s390x-cpython-310/build/temp.linux-s390x-cpython-310
::   s390x-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/buildd/cinder-backup-swift-proxy/build/parts/charm/build/.tox/build-reactive/include -I/usr/include/python3.10 -c build/temp.linux-s390x-cpython-310/_openssl.c -o build/temp.linux-s390x-cpython-310/build/temp.linux-s390x-cpython-310/_openssl.o -Wconversion -Wno-error=sign-conversion
::   build/temp.linux-s390x-cpython-310/_openssl.c:575:10: fatal error: openssl/opensslv.h: No such file or directory
::     575 | #include <openssl/opensslv.h>
::         |          ^~~~~~~~~~~~~~~~~~~~
::   compilation terminated.

Change-Id: Ie5860020ba7a7197371275ba1bba6e983f44efb2
2022-09-29 22:01:34 -03:00

78 lines
1.9 KiB
YAML

type: charm
parts:
charm:
build-packages:
- tox
- git
- python3-dev
- libffi-dev
- libssl-dev
- rustc
- cargo
build-environment:
- MAKEFLAGS: -j$(nproc)
- CHARM_INTERFACES_DIR: /root/project/interfaces/
- CHARM_LAYERS_DIR: /root/project/layers/
override-build: |
apt-get install ca-certificates -y
tox -e build-reactive
override-stage: |
echo "Copying charm to staging area: $CRAFT_STAGE"
NAME=$(ls $CRAFT_PART_BUILD/build/builds)
cp -r $CRAFT_PART_BUILD/build/builds/$NAME/* $CRAFT_STAGE/
override-prime: |
# For some reason, the normal priming chokes on the fact that there's a
# hooks directory.
cp -r $CRAFT_STAGE/* .
# Charmcraft looks for this specific entry point.
mkdir -p src
touch src/charm.py
chmod +x src/charm.py
bases:
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [amd64]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [amd64]
- name: ubuntu
channel: "22.10"
architectures: [amd64]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [arm64]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [arm64]
- name: ubuntu
channel: "22.10"
architectures: [arm64]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [ppc64el]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [ppc64el]
- name: ubuntu
channel: "22.10"
architectures: [ppc64el]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [s390x]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [s390x]
- name: ubuntu
channel: "22.10"
architectures: [s390x]