public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/xpmem/
@ 2021-08-03  8:07 Alessandro Barbieri
  0 siblings, 0 replies; 4+ messages in thread
From: Alessandro Barbieri @ 2021-08-03  8:07 UTC (permalink / raw
  To: gentoo-commits

commit:     5412c3bcd8b34b6477f791a8684e00a404c82135
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Aug  3 08:06:00 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Aug  3 08:06:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5412c3bc

sys-kernel/xpmem: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-kernel/xpmem/Manifest                     |  1 +
 sys-kernel/xpmem/metadata.xml                 | 55 ++++++++++++++++++++++++++
 sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild | 56 +++++++++++++++++++++++++++
 3 files changed, 112 insertions(+)

diff --git a/sys-kernel/xpmem/Manifest b/sys-kernel/xpmem/Manifest
new file mode 100644
index 000000000..2cac8e390
--- /dev/null
+++ b/sys-kernel/xpmem/Manifest
@@ -0,0 +1 @@
+DIST xpmem-2.6.3_p20210217.tar.gz 55906 BLAKE2B 609f9b18529e06504c02cbee3383355e161ebcad98d558ff518d125cf4b795fd32f0b6eba8e23c67e4ccf6eb2b6686be21594335a48fcdee71344ee063af65e3 SHA512 fb09d7120686957d02c29c7058e6b1e1de35637252c4942efcd722306117384cb6bdc8d3e175c26d3de56c36dd6946f53fa341473a7ad660d68847a23d331bb3

diff --git a/sys-kernel/xpmem/metadata.xml b/sys-kernel/xpmem/metadata.xml
new file mode 100644
index 000000000..31c9905e2
--- /dev/null
+++ b/sys-kernel/xpmem/metadata.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<longdescription lang="en">
+This is an experimental version of XPMEM based on a version provided by
+Cray and uploaded to https://code.google.com/p/xpmem. This version supports
+any kernel 3.12 and newer. Keep in mind there may be bugs and this version
+may cause kernel panics, code crashes, eat your cat, etc.
+
+XPMEM is a Linux kernel module that enables a process to map the
+memory of another process into its virtual address space. Source code
+can be obtained by cloning the Git repository, original Mercurial
+repository or by downloading a tarball from the link above.
+
+The XPMEM API has three main functions:
+
+xpmem_make()    
+xpmem_get()
+xpmem_attach()
+
+A process calls xpmem_make() to export a region of its virtual address
+space. Other processes can then attach to the region by calling
+xpmem_get() and xpmem_attach(). After a memory region is attached, it
+is accessed via direct loads and stores. This enables upper-level
+protocols such as MPI and SHMEM to perform single-copy address-space
+to address-space transfers, completely at user-level.
+
+Note, there is a limitation to the usage of an attached region. Any
+system call that will call get_user_pages() on the region from the
+non-owning process with get EFAULT. This include pthread mutexes
+and condition variable, and SYS V semaphores. We intend to address
+this limitation in a future release.
+
+XPMEM regions are free to have "holes" in them, meaning virtual memory
+regions that are not allocated. This makes XPMEM somewhat more
+flexible than mmap(). A process could, for example, export a region
+via XPMEM starting at address 0 and extending 4 GB. Accesses to
+allocated (valid) virtual addresses in this region proceed normally,
+and pages are mapped between address spaces on demand. A segfault will
+occur if the source process or any other process mapping the region
+tries to access an unallocated (invalid) virtual address in the
+region.
+	</longdescription>
+	<maintainer type="person">
+		<email>lssndrbarbieri@gmail.com</email>
+		<name>Alessandro Barbieri</name>
+	</maintainer>
+	<use>
+		<flag name="modules">Build the kernel module</flag>
+	</use>
+	<upstream>
+		<bugs-to>https://github.com/hjelmn/xpmem/issues</bugs-to>
+		<remote-id type="github">hjelmn/xpmem</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild b/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
new file mode 100644
index 000000000..f03a6b4e0
--- /dev/null
+++ b/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools linux-mod
+
+MODULES_OPTIONAL_USE="modules"
+MY_REV="242eaa1eca92567c2118afe21e37cafc524f9166"
+
+DESCRIPTION="Linux Cross-Memory Attach"
+HOMEPAGE="https://github.com/hjelmn/xpmem"
+SRC_URI="https://github.com/hjelmn/xpmem/archive/${MY_REV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_REV}"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+modules"
+
+MODULE_NAMES="xpmem(misc:${WORKDIR}/module/kernel:${WORKDIR}/module/kernel)"
+BUILD_TARGETS="all"
+
+src_prepare() {
+	default
+	AT_M4DIR="m4" eautoreconf
+	if use modules; then
+		cp -r "${S}" "${WORKDIR}/module" || die
+	fi
+}
+
+src_configure() {
+	local myconf=(
+		--disable-kernel-module
+	)
+	econf "${myconf[@]}"
+
+	if use modules; then
+		pushd "${WORKDIR}/module" || die
+	        econf
+		popd || die
+	fi
+}
+
+src_compile() {
+	default
+	use modules && linux-mod_src_compile
+}
+
+src_install() {
+	einstalldocs
+	default
+	use modules && linux-mod_src_install
+	find "${ED}" -name '*.la' -delete || die
+	find "${ED}" -name '*.a' -delete || die
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/xpmem/
@ 2021-08-03  9:09 Alessandro Barbieri
  0 siblings, 0 replies; 4+ messages in thread
From: Alessandro Barbieri @ 2021-08-03  9:09 UTC (permalink / raw
  To: gentoo-commits

commit:     1d21bf9c65b2906863d208262f0f95f16a033fb3
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Aug  3 09:08:19 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Aug  3 09:09:25 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1d21bf9c

sys-kernel/xpmem: move variables before inherit

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild b/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
index f03a6b4e0..602ce6c71 100644
--- a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
+++ b/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
@@ -1,13 +1,14 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit autotools linux-mod
-
 MODULES_OPTIONAL_USE="modules"
+MODULES_OPTIONAL_USE_IUSE_DEFAULT=1
 MY_REV="242eaa1eca92567c2118afe21e37cafc524f9166"
 
+inherit autotools linux-mod
+
 DESCRIPTION="Linux Cross-Memory Attach"
 HOMEPAGE="https://github.com/hjelmn/xpmem"
 SRC_URI="https://github.com/hjelmn/xpmem/archive/${MY_REV}.tar.gz -> ${P}.tar.gz"
@@ -16,7 +17,6 @@ S="${WORKDIR}/${PN}-${MY_REV}"
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="+modules"
 
 MODULE_NAMES="xpmem(misc:${WORKDIR}/module/kernel:${WORKDIR}/module/kernel)"
 BUILD_TARGETS="all"


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/xpmem/
@ 2021-08-24  6:15 Alessandro Barbieri
  0 siblings, 0 replies; 4+ messages in thread
From: Alessandro Barbieri @ 2021-08-24  6:15 UTC (permalink / raw
  To: gentoo-commits

commit:     1ef1daf985929a1aa286b28c7f66bde6673b2a5d
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Aug 24 05:53:36 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Aug 24 06:15:37 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ef1daf9

sys-kernel/xpmem: check for compatible kernel

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild b/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
index 602ce6c71..8debc587e 100644
--- a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
+++ b/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
@@ -3,11 +3,13 @@
 
 EAPI=7
 
+MAX_KV_MAJ="5"
+MAX_KV_MIN="8"
 MODULES_OPTIONAL_USE="modules"
 MODULES_OPTIONAL_USE_IUSE_DEFAULT=1
 MY_REV="242eaa1eca92567c2118afe21e37cafc524f9166"
 
-inherit autotools linux-mod
+inherit autotools linux-info linux-mod
 
 DESCRIPTION="Linux Cross-Memory Attach"
 HOMEPAGE="https://github.com/hjelmn/xpmem"
@@ -21,6 +23,16 @@ KEYWORDS="~amd64"
 MODULE_NAMES="xpmem(misc:${WORKDIR}/module/kernel:${WORKDIR}/module/kernel)"
 BUILD_TARGETS="all"
 
+pkg_pretend() {
+	# https://github.com/hjelmn/xpmem/issues/43
+	if use modules; then
+		if kernel_is ge ${MAX_KV_MAJ} ${MAX_KV_MINOR}; then
+			eerror "Unsupported kernel version"
+			die
+		fi
+	fi
+}
+
 src_prepare() {
 	default
 	AT_M4DIR="m4" eautoreconf


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/xpmem/
@ 2021-09-01  0:38 Alessandro Barbieri
  0 siblings, 0 replies; 4+ messages in thread
From: Alessandro Barbieri @ 2021-09-01  0:38 UTC (permalink / raw
  To: gentoo-commits

commit:     44c7a0c620c45f9e80efb337ced8cbc66b989463
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Sep  1 00:37:51 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Sep  1 00:37:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=44c7a0c6

sys-kernel/xpmem: add 2.6.5_p20210809, drop 2.6.3_p20210217

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-kernel/xpmem/Manifest                                             | 2 +-
 .../{xpmem-2.6.3_p20210217.ebuild => xpmem-2.6.5_p20210809.ebuild}    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-kernel/xpmem/Manifest b/sys-kernel/xpmem/Manifest
index 2cac8e390..d7d69d62b 100644
--- a/sys-kernel/xpmem/Manifest
+++ b/sys-kernel/xpmem/Manifest
@@ -1 +1 @@
-DIST xpmem-2.6.3_p20210217.tar.gz 55906 BLAKE2B 609f9b18529e06504c02cbee3383355e161ebcad98d558ff518d125cf4b795fd32f0b6eba8e23c67e4ccf6eb2b6686be21594335a48fcdee71344ee063af65e3 SHA512 fb09d7120686957d02c29c7058e6b1e1de35637252c4942efcd722306117384cb6bdc8d3e175c26d3de56c36dd6946f53fa341473a7ad660d68847a23d331bb3
+DIST xpmem-2.6.5_p20210809.tar.gz 55898 BLAKE2B 9f2a0d59479030bf2290d9501853ec82c8a95b1fecd85d07062ff25960cb44814a34565c39f5c2a519fcba8cf4bbe68d2916b3efdfdaaf0322d01b56db577c74 SHA512 f46f433b2818ee248451c5f6d505e0f9646f0107994ff413f760614bb9f5390800a4dd661e41fb430eb61f1c85673b910dd1fb298d7ca00f71485bf90a2c9e6e

diff --git a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild b/sys-kernel/xpmem/xpmem-2.6.5_p20210809.ebuild
similarity index 94%
rename from sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
rename to sys-kernel/xpmem/xpmem-2.6.5_p20210809.ebuild
index 8debc587e..cfd392255 100644
--- a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
+++ b/sys-kernel/xpmem/xpmem-2.6.5_p20210809.ebuild
@@ -7,13 +7,13 @@ MAX_KV_MAJ="5"
 MAX_KV_MIN="8"
 MODULES_OPTIONAL_USE="modules"
 MODULES_OPTIONAL_USE_IUSE_DEFAULT=1
-MY_REV="242eaa1eca92567c2118afe21e37cafc524f9166"
+MY_REV="8700f281383a83b86d3bff5e46168eb24558b842"
 
 inherit autotools linux-info linux-mod
 
 DESCRIPTION="Linux Cross-Memory Attach"
 HOMEPAGE="https://github.com/hjelmn/xpmem"
-SRC_URI="https://github.com/hjelmn/xpmem/archive/${MY_REV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/hjelmn/xpmem/archive/${MY_REV}.tar.gz -> ${PF}.tar.gz"
 S="${WORKDIR}/${PN}-${MY_REV}"
 
 LICENSE="LGPL-2.1"


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-01  0:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-01  0:38 [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/xpmem/ Alessandro Barbieri
  -- strict thread matches above, loose matches on Subject: below --
2021-08-24  6:15 Alessandro Barbieri
2021-08-03  9:09 Alessandro Barbieri
2021-08-03  8:07 Alessandro Barbieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox