From d74f6bfcfdc0fb2c41ceb087527c5eb2ad5113c8 Mon Sep 17 00:00:00 2001 From: kranurag7 <81210977+kranurag7@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:15:52 +0000 Subject: [PATCH 1/3] add libnvme library to wolfi Signed-off-by: kranurag7 <81210977+kranurag7@users.noreply.github.com> --- libnvme.yaml | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 libnvme.yaml diff --git a/libnvme.yaml b/libnvme.yaml new file mode 100644 index 00000000000..eda53e32d51 --- /dev/null +++ b/libnvme.yaml @@ -0,0 +1,62 @@ +package: + name: libnvme + version: 1.10 + epoch: 0 + description: C Library for NVM Express on Linux + copyright: + - license: LGPL-2.1-or-later + +environment: + contents: + packages: + - bash + - build-base + - gcc + - json-c + - meson + - ninja + - openssl + - python3 + - python3-dev + +pipeline: + - uses: git-checkout + with: + expected-commit: dd51fa8550564c93436423a4d8ed4be92ae50290 + repository: https://github.com/linux-nvme/libnvme + tag: v${{package.version}} + + - uses: meson/configure + + - uses: meson/compile + + - uses: meson/install + + - uses: strip + +subpackages: + - name: libnvme-dev + pipeline: + - uses: split/dev + +update: + enabled: true + github: + identifier: linux-nvme/libnvme + strip-prefix: v + +test: + environment: + contents: + packages: + - pkgconf + - libnvme + - libnvme-dev + pipeline: + - name: pkg-config testse + runs: | + pkg-config --exists libnvme + pkg-config --libs libnvme + - name: libnvme-dev headers file + runs: | + stat /usr/include/libnvme.h From 51866860694dc0013b6ec1a4668a088361068513 Mon Sep 17 00:00:00 2001 From: kranurag7 <81210977+kranurag7@users.noreply.github.com> Date: Wed, 30 Oct 2024 05:45:16 +0000 Subject: [PATCH 2/3] update build-time dependencies as per meson build Signed-off-by: kranurag7 <81210977+kranurag7@users.noreply.github.com> --- libnvme.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libnvme.yaml b/libnvme.yaml index eda53e32d51..dacc16d5630 100644 --- a/libnvme.yaml +++ b/libnvme.yaml @@ -11,13 +11,15 @@ environment: packages: - bash - build-base - - gcc - - json-c + - cmake + - json-c-dev + - keyutils-dev - meson - ninja - - openssl + - openssl-dev - python3 - python3-dev + - swig pipeline: - uses: git-checkout From 1186c8ff4bbe2109b07bf4402eddd8983e5b1220 Mon Sep 17 00:00:00 2001 From: kranurag7 <81210977+kranurag7@users.noreply.github.com> Date: Wed, 30 Oct 2024 06:13:17 +0000 Subject: [PATCH 3/3] add libnvme as runtime dep to libnvme-dev Signed-off-by: kranurag7 <81210977+kranurag7@users.noreply.github.com> --- libnvme.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libnvme.yaml b/libnvme.yaml index dacc16d5630..e992d105b73 100644 --- a/libnvme.yaml +++ b/libnvme.yaml @@ -38,6 +38,9 @@ pipeline: subpackages: - name: libnvme-dev + dependencies: + runtime: + - libnvme pipeline: - uses: split/dev