tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

New package: devel/liburing



Hi,

this adds devel/liburing, which provides a library to use the io_uring
interface of the Linux kernel and is a (optional) dependency for the
filesystems/glusterfs package.

It has been build tested on Debian/amd64 and gilesystems/glusterfs was
successfully built with it. Committed to pkgsrc-wip.

Diff is attached, please take a look.

Once devel/acl (previous mail) and devel/liburing are committed to pkgsrc
proper, I'll send the diff updating filesystems/glusterfs as well.

Kind regards,
          Alex.
-- 
"Opportunity is missed by most people because it is dressed in overalls and
 looks like work."                                      -- Thomas A. Edison
diff -Nru '--exclude=CVS' /usr/pkgsrc/devel/liburing/buildlink3.mk wip/liburing/buildlink3.mk
--- /usr/pkgsrc/devel/liburing/buildlink3.mk	1970-01-01 00:00:00.000000000 +0000
+++ wip/liburing/buildlink3.mk	2023-04-10 14:43:35.173301167 +0000
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	liburing
+
+.if !defined(LIBURING_BUILDLINK3_MK)
+LIBURING_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.liburing+=	liburing>=2.3
+BUILDLINK_PKGSRCDIR.liburing?=		../../wip/liburing
+.endif	# LIBURING_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-liburing
diff -Nru '--exclude=CVS' /usr/pkgsrc/devel/liburing/DESCR wip/liburing/DESCR
--- /usr/pkgsrc/devel/liburing/DESCR	1970-01-01 00:00:00.000000000 +0000
+++ wip/liburing/DESCR	2023-04-10 14:41:54.864041093 +0000
@@ -0,0 +1,7 @@
+liburing
+--------
+
+This is the io_uring library, liburing. liburing provides helpers to setup and
+teardown io_uring instances, and also a simplified interface for
+applications that don't need (or want) to deal with the full kernel
+side implementation.
diff -Nru '--exclude=CVS' /usr/pkgsrc/devel/liburing/distinfo wip/liburing/distinfo
--- /usr/pkgsrc/devel/liburing/distinfo	1970-01-01 00:00:00.000000000 +0000
+++ wip/liburing/distinfo	2023-04-10 14:42:35.154937458 +0000
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (liburing-2.3.tar.gz) = aabd54efadf054d02718a2b83cf4dfa5bc26e59f613c9c62436b5fa87a1a1edc
+SHA512 (liburing-2.3.tar.gz) = 04d29bd71d2150bbdc68eb937041784676590500cf1d61fb89b25b064c38c899a04ec0b9c06969271b98bc0e677943787844f0c5b7b0a222860a6e3a6fa34ed1
+Size (liburing-2.3.tar.gz) = 263682 bytes
diff -Nru '--exclude=CVS' /usr/pkgsrc/devel/liburing/Makefile wip/liburing/Makefile
--- /usr/pkgsrc/devel/liburing/Makefile	1970-01-01 00:00:00.000000000 +0000
+++ wip/liburing/Makefile	2023-04-10 14:44:21.156053223 +0000
@@ -0,0 +1,27 @@
+# $NetBSD$
+
+DISTNAME=	liburing-2.3
+CATEGORIES=	devel
+MASTER_SITES=	https://git.kernel.dk/cgit/liburing/snapshot/
+
+MAINTAINER=	als%thangorodrim.ch@localhost
+HOMEPAGE=	https://git.kernel.dk/cgit/liburing/
+COMMENT=	Library for the Linux kernel io_uring interface
+LICENSE=	gnu-gpl-v2
+
+# the ./configure in the source is a handcrafted piece of shell
+HAS_CONFIGURE=	YES
+
+USE_TOOLS+=	gmake
+USE_LANGUAGES=	c c++
+
+PKGCONFIG_OVERRIDE+=	liburing.pc.in
+
+# provides access to Linux kernel io_uring interface
+ONLY_FOR_PLATFORM=	Linux-*-*
+
+do-build:
+	${RUN} cd ${WRKSRC}/ && ./configure --prefix=${PREFIX} &&  ${GMAKE}
+
+
+.include "../../mk/bsd.pkg.mk"
diff -Nru '--exclude=CVS' /usr/pkgsrc/devel/liburing/PLIST wip/liburing/PLIST
--- /usr/pkgsrc/devel/liburing/PLIST	1970-01-01 00:00:00.000000000 +0000
+++ wip/liburing/PLIST	2023-04-10 14:30:21.398695500 +0000
@@ -0,0 +1,135 @@
+@comment $NetBSD$
+include/liburing.h
+include/liburing/barrier.h
+include/liburing/compat.h
+include/liburing/io_uring.h
+lib/liburing.a
+lib/liburing.so
+lib/liburing.so.2
+lib/liburing.so.${PKGVERSION}
+lib/pkgconfig/liburing.pc
+man/man2/io_uring_enter.2
+man/man2/io_uring_enter2.2
+man/man2/io_uring_register.2
+man/man2/io_uring_setup.2
+man/man3/io_uring_buf_ring_add.3
+man/man3/io_uring_buf_ring_advance.3
+man/man3/io_uring_buf_ring_cq_advance.3
+man/man3/io_uring_buf_ring_init.3
+man/man3/io_uring_buf_ring_mask.3
+man/man3/io_uring_cq_advance.3
+man/man3/io_uring_cq_has_overflow.3
+man/man3/io_uring_cq_ready.3
+man/man3/io_uring_cqe_get_data.3
+man/man3/io_uring_cqe_get_data64.3
+man/man3/io_uring_cqe_seen.3
+man/man3/io_uring_free_probe.3
+man/man3/io_uring_get_events.3
+man/man3/io_uring_get_probe.3
+man/man3/io_uring_get_sqe.3
+man/man3/io_uring_opcode_supported.3
+man/man3/io_uring_peek_cqe.3
+man/man3/io_uring_prep_accept.3
+man/man3/io_uring_prep_accept_direct.3
+man/man3/io_uring_prep_cancel.3
+man/man3/io_uring_prep_cancel64.3
+man/man3/io_uring_prep_close.3
+man/man3/io_uring_prep_close_direct.3
+man/man3/io_uring_prep_connect.3
+man/man3/io_uring_prep_fadvise.3
+man/man3/io_uring_prep_fallocate.3
+man/man3/io_uring_prep_files_update.3
+man/man3/io_uring_prep_fsync.3
+man/man3/io_uring_prep_link.3
+man/man3/io_uring_prep_linkat.3
+man/man3/io_uring_prep_madvise.3
+man/man3/io_uring_prep_mkdir.3
+man/man3/io_uring_prep_mkdirat.3
+man/man3/io_uring_prep_msg_ring.3
+man/man3/io_uring_prep_multishot_accept.3
+man/man3/io_uring_prep_multishot_accept_direct.3
+man/man3/io_uring_prep_nop.3
+man/man3/io_uring_prep_openat.3
+man/man3/io_uring_prep_openat${PKGVERSION}
+man/man3/io_uring_prep_openat2_direct.3
+man/man3/io_uring_prep_openat_direct.3
+man/man3/io_uring_prep_poll_add.3
+man/man3/io_uring_prep_poll_multishot.3
+man/man3/io_uring_prep_poll_remove.3
+man/man3/io_uring_prep_poll_update.3
+man/man3/io_uring_prep_provide_buffers.3
+man/man3/io_uring_prep_read.3
+man/man3/io_uring_prep_read_fixed.3
+man/man3/io_uring_prep_readv.3
+man/man3/io_uring_prep_readv${PKGVERSION}
+man/man3/io_uring_prep_recv.3
+man/man3/io_uring_prep_recv_multishot.3
+man/man3/io_uring_prep_recvmsg.3
+man/man3/io_uring_prep_recvmsg_multishot.3
+man/man3/io_uring_prep_remove_buffers.3
+man/man3/io_uring_prep_rename.3
+man/man3/io_uring_prep_renameat.3
+man/man3/io_uring_prep_send.3
+man/man3/io_uring_prep_send_zc.3
+man/man3/io_uring_prep_sendmsg.3
+man/man3/io_uring_prep_shutdown.3
+man/man3/io_uring_prep_socket.3
+man/man3/io_uring_prep_socket_direct.3
+man/man3/io_uring_prep_socket_direct_alloc.3
+man/man3/io_uring_prep_splice.3
+man/man3/io_uring_prep_statx.3
+man/man3/io_uring_prep_symlink.3
+man/man3/io_uring_prep_symlinkat.3
+man/man3/io_uring_prep_sync_file_range.3
+man/man3/io_uring_prep_tee.3
+man/man3/io_uring_prep_timeout.3
+man/man3/io_uring_prep_timeout_remove.3
+man/man3/io_uring_prep_timeout_update.3
+man/man3/io_uring_prep_unlink.3
+man/man3/io_uring_prep_unlinkat.3
+man/man3/io_uring_prep_write.3
+man/man3/io_uring_prep_write_fixed.3
+man/man3/io_uring_prep_writev.3
+man/man3/io_uring_prep_writev${PKGVERSION}
+man/man3/io_uring_queue_exit.3
+man/man3/io_uring_queue_init.3
+man/man3/io_uring_queue_init_params.3
+man/man3/io_uring_recvmsg_cmsg_firsthdr.3
+man/man3/io_uring_recvmsg_cmsg_nexthdr.3
+man/man3/io_uring_recvmsg_name.3
+man/man3/io_uring_recvmsg_out.3
+man/man3/io_uring_recvmsg_payload.3
+man/man3/io_uring_recvmsg_payload_length.3
+man/man3/io_uring_recvmsg_validate.3
+man/man3/io_uring_register_buf_ring.3
+man/man3/io_uring_register_buffers.3
+man/man3/io_uring_register_eventfd.3
+man/man3/io_uring_register_eventfd_async.3
+man/man3/io_uring_register_file_alloc_range.3
+man/man3/io_uring_register_files.3
+man/man3/io_uring_register_files_sparse.3
+man/man3/io_uring_register_iowq_aff.3
+man/man3/io_uring_register_iowq_max_workers.3
+man/man3/io_uring_register_ring_fd.3
+man/man3/io_uring_register_sync_cancel.3
+man/man3/io_uring_sq_ready.3
+man/man3/io_uring_sq_space_left.3
+man/man3/io_uring_sqe_set_data.3
+man/man3/io_uring_sqe_set_data64.3
+man/man3/io_uring_sqe_set_flags.3
+man/man3/io_uring_sqring_wait.3
+man/man3/io_uring_submit.3
+man/man3/io_uring_submit_and_get_events.3
+man/man3/io_uring_submit_and_wait.3
+man/man3/io_uring_submit_and_wait_timeout.3
+man/man3/io_uring_unregister_buf_ring.3
+man/man3/io_uring_unregister_buffers.3
+man/man3/io_uring_unregister_eventfd.3
+man/man3/io_uring_unregister_files.3
+man/man3/io_uring_unregister_iowq_aff.3
+man/man3/io_uring_unregister_ring_fd.3
+man/man3/io_uring_wait_cqe.3
+man/man3/io_uring_wait_cqe_nr.3
+man/man3/io_uring_wait_cqe_timeout.3
+man/man3/io_uring_wait_cqes.3
+man/man7/io_uring.7


Home | Main Index | Thread Index | Old Index