diff --git a/srcpkgs/libnvme/patches/fix-cross.patch b/srcpkgs/libnvme/patches/fix-cross.patch new file mode 100644 index 00000000000..96e77d52863 --- /dev/null +++ b/srcpkgs/libnvme/patches/fix-cross.patch @@ -0,0 +1,26 @@ +--- a/test/ioctl/mock.c ++++ b/test/ioctl/mock.c +@@ -114,7 +114,11 @@ + } \ + }) + ++#if __USE_GNU + int ioctl(int fd, unsigned long request, ...) ++#else ++int ioctl(int fd, int request, ...) ++#endif + { + struct mock_cmds *mock_cmds; + bool result64; +@@ -141,7 +141,11 @@ + result64 = true; + break; + default: ++#if __USE_GNU + fail("unexpected %s %lu", __func__, request); ++#else ++ fail("unexpected %s %u", __func__, request); ++#endif + } + check(mock_cmds->remaining_cmds, + "unexpected %s command", mock_cmds->name); diff --git a/srcpkgs/libnvme/template b/srcpkgs/libnvme/template index b0bccfcf5cd..3d917e8eccb 100644 --- a/srcpkgs/libnvme/template +++ b/srcpkgs/libnvme/template @@ -1,7 +1,7 @@ # Template file for 'libnvme' pkgname=libnvme -version=1.2 -revision=2 +version=1.6 +revision=1 build_style=meson configure_args="-Ddocs=man" hostmakedepends="pkg-config swig" @@ -12,7 +12,7 @@ maintainer="Subhaditya Nath " license="LGPL-2.1-or-later" homepage="https://github.com/linux-nvme/libnvme" distfiles="https://github.com/linux-nvme/libnvme/archive/v${version}.tar.gz" -checksum=2697c86e9d8597fcd264f8bf8af57a529346efa4f611ca2be855e3aa89b9eb2c +checksum=0dd8ba8b655abe78c09833edb66632aa6bee82aebf117dd252ded968deaaeec7 libnvme-devel_package() { depends="${sourcepkg}>=${version}_${revision} json-c-devel openssl-devel"