Skip to content

Commit 60dd2e5

Browse files
committed
Fix weasyprint layer
1 parent 1de7210 commit 60dd2e5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ stack.deploy:
4242
cd cdk-stacks && npm install && npm run build
4343
cdk deploy --app ./cdk-stacks/bin/app.js --stack PrintStack --parameters uploadBucketName=${BUCKET}
4444

45-
test.start.container:
45+
test.start.container: build/weasyprint-layer-python$(RUNTIME).zip
4646
${DOCKER_RUN} \
4747
-e GDK_PIXBUF_MODULE_FILE="/opt/lib/loaders.cache" \
4848
-e FONTCONFIG_PATH="/opt/fonts" \

weasyprint/layer_builder.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ rpmdev-extract -- *rpm
3232

3333
mkdir /opt/lib
3434
cp -P -r /tmp/*/usr/lib64/* /opt/lib
35+
for f in $(find /tmp -type f -name 'lib*.so*'); do
36+
cp "$f" /opt/lib/$(python -c "import re; print(re.match(r'^(.*.so.\d+).*$', '$(basename $f)').groups()[0])");
37+
done
3538
# pixbuf need list loaders cache
3639
# https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-query-loaders.html
3740
PIXBUF_BIN=$(find /tmp -name gdk-pixbuf-query-loaders-64)

0 commit comments

Comments
 (0)