diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-12-26 23:27:35 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-12-26 23:27:35 +0100 |
commit | 3f5fcf3c09c78baca6ac5bde33ca8210aab75251 (patch) | |
tree | bdecd6f4c312f08985a9a1f2995edde7c17e7553 /testing/nvme-cli | |
parent | bd1fa66d38cecef77750cb7e174359940372c2ec (diff) | |
download | aports-3f5fcf3c09c78baca6ac5bde33ca8210aab75251.tar.bz2 aports-3f5fcf3c09c78baca6ac5bde33ca8210aab75251.tar.xz |
testing/nvme-cli: move back from unmaintained and upgrade to 1.1
Diffstat (limited to 'testing/nvme-cli')
-rw-r--r-- | testing/nvme-cli/APKBUILD | 35 | ||||
-rw-r--r-- | testing/nvme-cli/musl-fix.patch | 29 |
2 files changed, 64 insertions, 0 deletions
diff --git a/testing/nvme-cli/APKBUILD b/testing/nvme-cli/APKBUILD new file mode 100644 index 0000000000..42b97169d3 --- /dev/null +++ b/testing/nvme-cli/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Florian Heigl <florian.heigl@gmail.com> +# Maintainer: Florian Heigl <florian.heigl@gmail.com> +pkgname=nvme-cli +pkgver=1.1 +pkgrel=0 +pkgdesc="NVM-Express user space tooling for Linux" +arch="all" +url="https://github.com/linux-nvme/nvme-cli" +license="GPL" +depends="" +makedepends="$depends_dev linux-headers" +provides="nvme-cli" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/nvme-cli/archive/v${pkgver}.tar.gz + musl-fix.patch + " + +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + make PREFIX="/usr" || return 1 +} + +package() { + cd "$builddir" + make PREFIX="/usr" DESTDIR="$pkgdir" install +} + +md5sums="450b5c381c83df8f117824e7d0fe0076 nvme-cli-1.1.tar.gz +f8e92a9d93b8cde78b82ad40f89f2c19 musl-fix.patch" +sha256sums="22883719cbab86d52e8d4755e86ebd70476416e87442385a79b31c981bd60de1 nvme-cli-1.1.tar.gz +79328b8836c27c661f12fd8a719bf27559c4824c2dd9a10dcf698e1373a007de musl-fix.patch" +sha512sums="339da4385c5e8659a8f3c2e11afadf437d9cdf02c294674e5cc569cd817174c8ccbd4fc8858ce6f5b8f63ccba68790b2140fc87fdf33b7d394b67999ac4afad0 nvme-cli-1.1.tar.gz +01cea64b9593b4aac5c13a18538a561b5d538437232dc67f17d955c1661d42cf62671924277449f9611e0fb543cddc7e4ba89e34ff764eb86929201f1e336faa musl-fix.patch" diff --git a/testing/nvme-cli/musl-fix.patch b/testing/nvme-cli/musl-fix.patch new file mode 100644 index 0000000000..873233bfc8 --- /dev/null +++ b/testing/nvme-cli/musl-fix.patch @@ -0,0 +1,29 @@ +From 329df07e86c27308a3c3fee9054390bc0271e8b8 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Mon, 26 Dec 2016 23:12:58 +0100 +Subject: [PATCH] Include endian.h for byte/host order functions + +Fix the following error when building with musl libc: + +nvme.h:136:2: error: implicit declaration of function 'le16toh' +[-Werror=implicit-function-declaration] + le16toh((__force __u16)(x)) + ^ + +Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> +--- + nvme.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/nvme.h b/nvme.h +index 6623505..5481916 100644 +--- a/nvme.h ++++ b/nvme.h +@@ -16,6 +16,7 @@ + #define _NVME_H + + #include <stdbool.h> ++#include <endian.h> + #include "plugin.h" + + #define unlikely(x) x |