From bf36c201fb8c70bd15537d771ffe7ad7fd056d59 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sat, 22 Jul 2023 03:58:45 -0700 Subject: [PATCH 1/3] py3-libarchive-c: new package This package is a Python interface to libarchive. Signed-off-by: Elizabeth Myers --- py3-libarchive-c.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 py3-libarchive-c.yaml diff --git a/py3-libarchive-c.yaml b/py3-libarchive-c.yaml new file mode 100644 index 00000000000..67a3d1975f0 --- /dev/null +++ b/py3-libarchive-c.yaml @@ -0,0 +1,40 @@ +package: + name: py3-libarchive-c + version: 5.0 + epoch: 0 + description: "Python interface to libarchive." + copyright: + - license: CC0-1.0 + +environment: + contents: + packages: + - busybox + - build-base + - wolfi-baselayout + - python3 + - py3-setuptools + - libarchive + - libarchive-dev + - scanelf + +pipeline: + - uses: fetch + with: + uri: https://files.pythonhosted.org/packages/source/l/libarchive-c/libarchive-c-${{package.version}}.tar.gz + expected-sha256: d673f56673d87ec740d1a328fa205cafad1d60f5daca4685594deb039d32b159 + + # Use the correct library soname + # NOTE: find_library is broken on aarch64, so just hardcode it for now. + - runs: | + soname=$(scanelf --quiet --soname /usr/lib/libarchive.so | awk '{print $1}') + sed -i -e "s:find_library('archive'):'/usr/lib/$soname':" libarchive/ffi.py + + - runs: | + python3 setup.py build + python3 setup.py install --skip-build --root="${{targets.destdir}}" + +update: + enabled: true + release-monitor: + identifier: 9954 From c7e007a575cbce98168f957f49ea3b97677e4402 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sat, 22 Jul 2023 04:07:42 -0700 Subject: [PATCH 2/3] py3-libarchive-c: fix YAML formatting Signed-off-by: Elizabeth Myers --- py3-libarchive-c.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py3-libarchive-c.yaml b/py3-libarchive-c.yaml index 67a3d1975f0..d3dc4624c7b 100644 --- a/py3-libarchive-c.yaml +++ b/py3-libarchive-c.yaml @@ -22,7 +22,7 @@ pipeline: - uses: fetch with: uri: https://files.pythonhosted.org/packages/source/l/libarchive-c/libarchive-c-${{package.version}}.tar.gz - expected-sha256: d673f56673d87ec740d1a328fa205cafad1d60f5daca4685594deb039d32b159 + expected-sha256: d673f56673d87ec740d1a328fa205cafad1d60f5daca4685594deb039d32b159 # Use the correct library soname # NOTE: find_library is broken on aarch64, so just hardcode it for now. From 15ec34b0c492aea28aa7a6800352c43ab4b6c268 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sat, 22 Jul 2023 05:12:45 -0700 Subject: [PATCH 3/3] py3-libarchive-c.yaml: apply suggestions Co-authored-by: Ariadne Conill Signed-off-by: Elizabeth Myers --- py3-libarchive-c.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py3-libarchive-c.yaml b/py3-libarchive-c.yaml index d3dc4624c7b..5ee52181bbc 100644 --- a/py3-libarchive-c.yaml +++ b/py3-libarchive-c.yaml @@ -5,7 +5,9 @@ package: description: "Python interface to libarchive." copyright: - license: CC0-1.0 - + dependencies: + runtime: + - libarchive environment: contents: packages: