summaryrefslogtreecommitdiff
path: root/sys-cluster/ploop
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /sys-cluster/ploop
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'sys-cluster/ploop')
-rw-r--r--sys-cluster/ploop/Manifest6
-rw-r--r--sys-cluster/ploop/files/ploop-1.14-musl.patch78
-rw-r--r--sys-cluster/ploop/files/ploop-1.15-makedev-include.patch12
-rw-r--r--sys-cluster/ploop/ploop-1.14.1-r1.ebuild5
-rw-r--r--sys-cluster/ploop/ploop-1.15.ebuild64
5 files changed, 162 insertions, 3 deletions
diff --git a/sys-cluster/ploop/Manifest b/sys-cluster/ploop/Manifest
index 4791e249c752..d3ffe0f2f9b0 100644
--- a/sys-cluster/ploop/Manifest
+++ b/sys-cluster/ploop/Manifest
@@ -1,4 +1,8 @@
AUX disable_create_run_dir.patch 560 BLAKE2B 08be833a3afd51560f91337e750027fc13163244e3709399a7824a0afe432c86820cb97b703276e2a64968aeba2c63c44a4944fee080a4e4414928f72bc3da31 SHA512 69f2fe1214bc9fa3cae47bf55af94df83b21c1c19f04a60ddae7d7e261ef59a90ab1ed6dbed63271db2c97ae0b476c3bc69bbde656d85af3ef2c16f4ebb0a7e4
+AUX ploop-1.14-musl.patch 2044 BLAKE2B ab2d9bc2797e2cdb3a167521b4e50e689441e503dd0c2d8f3aaec973e77d40c39f87708162becd189574b2cd7c09c5da2b99f33daf2d8eaa91de5e000deed1a9 SHA512 a564183b937692dc8e1802bc00000f5877c488a0d34da0d6cc835355a1d07a3b8682c5d58a752a398e498bd52f677b59f2265eedbc418c9c9a9b04ee3149dda1
+AUX ploop-1.15-makedev-include.patch 272 BLAKE2B 474c2a5c09b4ed508c57a5401ec1ff01a67ee0a4d5738c884f9b0e92b1cc051f3c0c9735afc85b62788341977b5b5ca695b8021b0333b1a0dec19186bc3dcc35 SHA512 551e9720ffa2cd4ad81a7f99e67d3fea63535669529156695fd49e4fbc77e2cb76cfe06e8147e5bb0752e0efe809b4108194b468a019ab106f1ea7b5aea96adb
DIST ploop-1.14.1.tar.bz2 123962 BLAKE2B d4f4f102d2ec0714d79901bd3193f85514e232dc18ffcab254becb954cf794f3598fe7b0f65d0bbb85766bff5ded9d816900b40b81cb6046c31d8b6459c67618 SHA512 7a235865f071de6e2762923d6591c8c6ee00d0d05ec80c6a2a1332f5b6881ccf827f7ddc40dfe1d663b8abf492a188a23f7d28a43dd553d6e37c8091cb3bc484
-EBUILD ploop-1.14.1-r1.ebuild 1409 BLAKE2B 03ecafc648c40c244386a1c8650114054c6f7c35402d4e48c1e667f280c57aff407fc9e96265a899ebb2a7be4c9ebc5ffba04b4907e9dc885f612e226c211a4f SHA512 d7df2954f018a80805bb543963f054a65436c2b78a7006c40db888446cf8d1374b25180d625ceb0978f8a4db9c78ff4fabdf1790124f480699b0c89d183e91eb
+DIST ploop-1.15.tar.bz2 125618 BLAKE2B ad7d06865606c20bdd9601ce343817a332653f3f7544dd27f08d3fb5ff2ee8112ef1ae0217546c28fde3dba076b0703b5881e8a019eec663964dd39885c5524c SHA512 07a691aeed949971534dcf9bb5138defacf25d7c437336df84a5ec3759cba0c20f6724660b7c8a204b3f455d15a892e20b060b0e0ea27280eeba738c36f280cb
+EBUILD ploop-1.14.1-r1.ebuild 1493 BLAKE2B 9689336ae21fe11ca41c1d43c4399ce2eae4cc1d5f77624ae2e1beacde16fb0b3ef8028fc52a578a5a7a07e38de8b0f43da27b647bd56caef6acc6458b5a3562 SHA512 341058a862c6c4158d1ef744a42bed76d912415c0bfcba2385d0265685539119b3264b18041eedb539aad66efca38bb168530b34a6d964323deb58b2a2b7e65c
+EBUILD ploop-1.15.ebuild 1506 BLAKE2B 408ddeb7a11cf78e276b701821ea65d3c8e7659f97078f710a5b5918966a9bd0349c2be60cfb2cd7cda7bbde061fda52452217c2f415b44fa9ab9aab95c93178 SHA512 10884f217aee42d2b3579533c46a9424f49b0f472f5fe6cd304c7f1131407adfd20f19da73c32e41bb256278369ac3990a1f206c11b60911bf46e099024eec4a
MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a
diff --git a/sys-cluster/ploop/files/ploop-1.14-musl.patch b/sys-cluster/ploop/files/ploop-1.14-musl.patch
new file mode 100644
index 000000000000..693135123c55
--- /dev/null
+++ b/sys-cluster/ploop/files/ploop-1.14-musl.patch
@@ -0,0 +1,78 @@
+--- a/lib/balloon_util.c
++++ b/lib/balloon_util.c
+@@ -30,6 +30,7 @@
+ #include <string.h>
+ #include <linux/fs.h>
+ #include <linux/fiemap.h>
++#include <stddef.h>
+
+ #include "ploop.h"
+
+--- a/lib/delta_read.c
++++ b/lib/delta_read.c
+@@ -24,6 +24,7 @@
+ #include <malloc.h>
+ #include <string.h>
+ #include <sys/stat.h>
++#include <stddef.h>
+
+ #include "ploop.h"
+
+--- a/lib/delta_sysfs.c
++++ b/lib/delta_sysfs.c
+@@ -29,6 +29,7 @@
+ #include <linux/fs.h>
+ #include <sys/ioctl.h>
+ #include <sys/utsname.h>
++#include <sys/sysmacros.h>
+
+ #include "ploop.h"
+
+@@ -238,7 +239,7 @@ static int get_dev_num(const char *path, dev_t *dev_num)
+ ploop_err(0, "Unexpected format of %s: %s", path, nbuf);
+ return -1;
+ }
+- *dev_num = gnu_dev_makedev(maj, min);
++ *dev_num = makedev(maj, min);
+ return 0;
+ }
+
+--- a/lib/merge.c
++++ b/lib/merge.c
+@@ -29,6 +29,7 @@
+ #include <linux/types.h>
+ #include <string.h>
+ #include <assert.h>
++#include <stddef.h>
+
+ #include "ploop.h"
+
+--- a/lib/ploop.c
++++ b/lib/ploop.c
+@@ -1087,7 +1087,7 @@ static int get_mount_dir(const char *device, char *out, int size)
+
+ if (get_dev_by_name(device, &dev))
+ return -1;
+- minor = gnu_dev_minor(dev);
++ minor = minor(dev);
+
+ fp = fopen("/proc/self/mountinfo", "r");
+ if (fp == NULL) {
+@@ -1719,7 +1719,7 @@ static int create_ploop_dev(int minor)
+ make_sysfs_dev_name(minor, device + 5, sizeof(device) - 5);
+ /* Create pair /dev/ploopN & /dev/ploopNp1 */
+ if (access(device, F_OK)) {
+- if (mknod(device, S_IFBLK, gnu_dev_makedev(PLOOP_DEV_MAJOR, minor))) {
++ if (mknod(device, S_IFBLK, makedev(PLOOP_DEV_MAJOR, minor))) {
+ ploop_err(errno, "mknod %s", device);
+ return SYSEXIT_MKNOD;
+ }
+@@ -1730,7 +1730,7 @@ static int create_ploop_dev(int minor)
+ }
+ snprintf(devicep1, sizeof(devicep1), "%sp1", device);
+ if (access(devicep1, F_OK)) {
+- if (mknod(devicep1, S_IFBLK, gnu_dev_makedev(PLOOP_DEV_MAJOR, minor+1))) {
++ if (mknod(devicep1, S_IFBLK, makedev(PLOOP_DEV_MAJOR, minor+1))) {
+ ploop_err(errno, "mknod %s", devicep1);
+ return SYSEXIT_MKNOD;
+ }
diff --git a/sys-cluster/ploop/files/ploop-1.15-makedev-include.patch b/sys-cluster/ploop/files/ploop-1.15-makedev-include.patch
new file mode 100644
index 000000000000..81ebf2ac9ea4
--- /dev/null
+++ b/sys-cluster/ploop/files/ploop-1.15-makedev-include.patch
@@ -0,0 +1,12 @@
+diff --git a/lib/delta_sysfs.c b/lib/delta_sysfs.c
+index 98e7254..e44fb3b 100644
+--- a/lib/delta_sysfs.c
++++ b/lib/delta_sysfs.c
+@@ -29,6 +29,7 @@
+ #include <linux/fs.h>
+ #include <sys/ioctl.h>
+ #include <sys/utsname.h>
++#include <sys/sysmacros.h>
+
+ #include "ploop.h"
+
diff --git a/sys-cluster/ploop/ploop-1.14.1-r1.ebuild b/sys-cluster/ploop/ploop-1.14.1-r1.ebuild
index 203548448316..1dfbcff162dc 100644
--- a/sys-cluster/ploop/ploop-1.14.1-r1.ebuild
+++ b/sys-cluster/ploop/ploop-1.14.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -24,6 +24,7 @@ RDEPEND="${DEPEND}
PATCHES=(
"${FILESDIR}"/disable_create_run_dir.patch
+ "${FILESDIR}"/${PN}-1.14-musl.patch
)
DOCS=( tools/README )
@@ -54,7 +55,7 @@ src_compile() {
}
src_install() {
- default
+ emake DESTDIR="${D}" LIBDIR=/usr/$(get_libdir) install
rm "${ED}"/usr/$(get_libdir)/*.a || die
}
diff --git a/sys-cluster/ploop/ploop-1.15.ebuild b/sys-cluster/ploop/ploop-1.15.ebuild
new file mode 100644
index 000000000000..c554d97126d1
--- /dev/null
+++ b/sys-cluster/ploop/ploop-1.15.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit tmpfiles toolchain-funcs
+
+DESCRIPTION="openvz tool and a library to control ploop block devices"
+HOMEPAGE="https://wiki.openvz.org/Download/ploop"
+SRC_URI="https://download.openvz.org/utils/ploop/${PV}/src/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="dev-libs/libxml2"
+RDEPEND="${DEPEND}
+ sys-block/parted
+ sys-fs/e2fsprogs
+ sys-process/lsof
+ sys-apps/findutils"
+
+PATCHES=(
+ "${FILESDIR}"/disable_create_run_dir.patch
+ "${FILESDIR}"/${PN}-1.15-makedev-include.patch
+)
+
+DOCS=( tools/README )
+
+src_prepare() {
+ default
+
+ # Respect CFLAGS and CC, do not add debug by default
+ sed -i \
+ -e 's|CFLAGS =|CFLAGS +=|' \
+ -e '/CFLAGS/s/-g -O0 //' \
+ -e '/CFLAGS/s/-O2//' \
+ -e 's|CC=|CC?=|' \
+ -e 's/-Werror//' \
+ -e '/DEBUG=yes/d' \
+ -e '/LOCKDIR/s/var/run/' \
+ Makefile.inc || die 'sed on Makefile.inc failed'
+ # Avoid striping of binaries
+ sed -e '/INSTALL/{s: -s::}' -i tools/Makefile || die 'sed on tools/Makefile failed'
+
+ # respect AR and RANLIB, bug #452092
+ tc-export AR RANLIB
+ sed -i -e 's/ranlib/$(RANLIB)/' lib/Makefile || die 'sed on lib/Makefile failed'
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" V=1 $(usex debug 'DEBUG' '' '=yes' '')
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR=/usr/$(get_libdir) install
+ rm "${ED}"/usr/$(get_libdir)/*.a || die
+}
+
+pkg_postinst() {
+ tmpfiles_process ploop.conf
+}