Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6
@ 2024-11-15 10:02 toomyem
  2024-11-15 10:06 ` [PR PATCH] [Updated] " toomyem
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: toomyem @ 2024-11-15 10:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

There is a new pull request by toomyem against master on the void-packages repository

https://github.com/toomyem/void-packages moosefs
https://github.com/void-linux/void-packages/pull/53074

moosefs: update to 3.0.118 and added 4.56.6
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (using crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl

I added a separate package for 4.x line to keep both 3.x and 4.x lines available.

A patch file from https://github.com/void-linux/void-packages/pull/53074.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-moosefs-53074.patch --]
[-- Type: text/x-diff, Size: 5840 bytes --]

From e2b169ee869b94f98a8839de794a222142f1c794 Mon Sep 17 00:00:00 2001
From: toomyem <toomyem@gmail.com>
Date: Fri, 15 Nov 2024 10:48:24 +0100
Subject: [PATCH] moosefs: update to 3.0.118 and added 4.56.6

---
 srcpkgs/moosefs/patches/fix-musl.patch    | 10 --------
 srcpkgs/moosefs/template                  |  6 ++---
 srcpkgs/moosefs4/files/mfscgiserv/run     |  4 ++++
 srcpkgs/moosefs4/files/mfschunkserver/run |  6 +++++
 srcpkgs/moosefs4/files/mfsmaster/run      |  6 +++++
 srcpkgs/moosefs4/files/mfsmetalogger/run  |  6 +++++
 srcpkgs/moosefs4/patches/fix-musl.patch   | 10 ++++++++
 srcpkgs/moosefs4/template                 | 29 +++++++++++++++++++++++
 srcpkgs/moosefs4/update                   |  1 +
 9 files changed, 65 insertions(+), 13 deletions(-)
 delete mode 100644 srcpkgs/moosefs/patches/fix-musl.patch
 create mode 100644 srcpkgs/moosefs4/files/mfscgiserv/run
 create mode 100644 srcpkgs/moosefs4/files/mfschunkserver/run
 create mode 100644 srcpkgs/moosefs4/files/mfsmaster/run
 create mode 100644 srcpkgs/moosefs4/files/mfsmetalogger/run
 create mode 100644 srcpkgs/moosefs4/patches/fix-musl.patch
 create mode 100644 srcpkgs/moosefs4/template
 create mode 100644 srcpkgs/moosefs4/update

diff --git a/srcpkgs/moosefs/patches/fix-musl.patch b/srcpkgs/moosefs/patches/fix-musl.patch
deleted file mode 100644
index 02e51bedb2e8ab..00000000000000
--- a/srcpkgs/moosefs/patches/fix-musl.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/mfsclient/nbdmain.c	2020-06-08 08:19:08.422379805 +0200
-+++ b/mfsclient/nbdmain.c	2020-06-08 08:18:55.079380447 +0200
-@@ -39,6 +39,7 @@
- #include <errno.h>
- #include <inttypes.h>
- #include <pthread.h>
-+#include <sys/file.h>
- 
- #ifdef HAVE_LINUX_NBD_H
- #include <linux/nbd.h>
diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template
index 6903e7e07ec1d8..b4f8cc44c1a2fb 100644
--- a/srcpkgs/moosefs/template
+++ b/srcpkgs/moosefs/template
@@ -1,7 +1,7 @@
 # Template file for 'moosefs'
 pkgname=moosefs
-version=3.0.117
-revision=2
+version=3.0.118
+revision=1
 build_style=gnu-configure
 configure_args="--localstatedir=/var/lib --with-default-user=_mfs
  --with-default-group=_mfs"
@@ -12,7 +12,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-only"
 homepage="https://moosefs.com/"
 distfiles="https://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
-checksum=d77947d0d8b699e2373926a1274ae81a9a8b24445c5ab986a1ec5e9203e3c3ba
+checksum=d730c82602b303004dbee2e30c0b013a6ee0ee88e427cee930f4a40bc9241df8
 python_version=3
 system_accounts="_mfs"
 
diff --git a/srcpkgs/moosefs4/files/mfscgiserv/run b/srcpkgs/moosefs4/files/mfscgiserv/run
new file mode 100644
index 00000000000000..4eee2a80277ecf
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfscgiserv/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+exec mfscgiserv -f $OPTS start
diff --git a/srcpkgs/moosefs4/files/mfschunkserver/run b/srcpkgs/moosefs4/files/mfschunkserver/run
new file mode 100644
index 00000000000000..316c8507de6206
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfschunkserver/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfschunkserver.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfschunkserver -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/files/mfsmaster/run b/srcpkgs/moosefs4/files/mfsmaster/run
new file mode 100644
index 00000000000000..72389baab5fde1
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfsmaster/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfsmaster.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfsmaster -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/files/mfsmetalogger/run b/srcpkgs/moosefs4/files/mfsmetalogger/run
new file mode 100644
index 00000000000000..2797217ea17238
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfsmetalogger/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfsmetalogger.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfsmetalogger -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/patches/fix-musl.patch b/srcpkgs/moosefs4/patches/fix-musl.patch
new file mode 100644
index 00000000000000..7c9b7bd9e41a88
--- /dev/null
+++ b/srcpkgs/moosefs4/patches/fix-musl.patch
@@ -0,0 +1,10 @@
+--- a/mfsclient/mfsbdev.c	2024-09-23 14:12:52.000000000 +0200
++++ b/mfsclient/mfsbdev.c	2024-11-15 10:29:23.666733778 +0100
+@@ -38,6 +38,7 @@
+ #include <errno.h>
+ #include <inttypes.h>
+ #include <pthread.h>
++#include <sys/file.h>
+ 
+ #ifdef HAVE_LINUX_NBD_H
+ #include <linux/nbd.h>
diff --git a/srcpkgs/moosefs4/template b/srcpkgs/moosefs4/template
new file mode 100644
index 00000000000000..ce8d9e0870f892
--- /dev/null
+++ b/srcpkgs/moosefs4/template
@@ -0,0 +1,29 @@
+# Template file for 'moosefs'
+pkgname=moosefs4
+version=4.56.6
+revision=1
+build_style=gnu-configure
+configure_args="--localstatedir=/var/lib --with-default-user=_mfs
+ --with-default-group=_mfs"
+hostmakedepends="automake libtool pkg-config"
+makedepends="zlib-devel libpcap-devel fuse-devel"
+short_desc="Fault tolerant, network distributed file system"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-only"
+homepage="https://moosefs.com/"
+distfiles="https://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
+checksum=77cad891e38d33a9cfbaf25640e48a684f1650137cef8a86963673494444f7ed
+python_version=3
+system_accounts="_mfs"
+
+pre_configure() {
+	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
+	autoreconf -fi
+}
+
+post_install() {
+	mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
+	for f in chunkserver master metalogger cgiserv; do
+		vsv mfs${f}
+	done
+}
diff --git a/srcpkgs/moosefs4/update b/srcpkgs/moosefs4/update
new file mode 100644
index 00000000000000..d494050f3cc110
--- /dev/null
+++ b/srcpkgs/moosefs4/update
@@ -0,0 +1 @@
+pattern="$pkgname-\K[\d\.]*(?=\-1\.tar\.gz)"

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

* Re: [PR PATCH] [Updated] moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
@ 2024-11-15 10:06 ` toomyem
  2024-11-15 10:51 ` toomyem
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: toomyem @ 2024-11-15 10:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

There is an updated pull request by toomyem against master on the void-packages repository

https://github.com/toomyem/void-packages moosefs
https://github.com/void-linux/void-packages/pull/53074

moosefs: update to 3.0.118 and added 4.56.6
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (using crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl

I added a separate package for 4.x line to keep both 3.x and 4.x lines available.

A patch file from https://github.com/void-linux/void-packages/pull/53074.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-moosefs-53074.patch --]
[-- Type: text/x-diff, Size: 5839 bytes --]

From 14d4cbbe7a1153eee2948b5b7afffd4febed7536 Mon Sep 17 00:00:00 2001
From: toomyem <toomyem@gmail.com>
Date: Fri, 15 Nov 2024 10:48:24 +0100
Subject: [PATCH] moosefs: update to 3.0.118 and add 4.56.6

---
 srcpkgs/moosefs/patches/fix-musl.patch    | 10 --------
 srcpkgs/moosefs/template                  |  6 ++---
 srcpkgs/moosefs4/files/mfscgiserv/run     |  4 ++++
 srcpkgs/moosefs4/files/mfschunkserver/run |  6 +++++
 srcpkgs/moosefs4/files/mfsmaster/run      |  6 +++++
 srcpkgs/moosefs4/files/mfsmetalogger/run  |  6 +++++
 srcpkgs/moosefs4/patches/fix-musl.patch   | 10 ++++++++
 srcpkgs/moosefs4/template                 | 29 +++++++++++++++++++++++
 srcpkgs/moosefs4/update                   |  1 +
 9 files changed, 65 insertions(+), 13 deletions(-)
 delete mode 100644 srcpkgs/moosefs/patches/fix-musl.patch
 create mode 100644 srcpkgs/moosefs4/files/mfscgiserv/run
 create mode 100644 srcpkgs/moosefs4/files/mfschunkserver/run
 create mode 100644 srcpkgs/moosefs4/files/mfsmaster/run
 create mode 100644 srcpkgs/moosefs4/files/mfsmetalogger/run
 create mode 100644 srcpkgs/moosefs4/patches/fix-musl.patch
 create mode 100644 srcpkgs/moosefs4/template
 create mode 100644 srcpkgs/moosefs4/update

diff --git a/srcpkgs/moosefs/patches/fix-musl.patch b/srcpkgs/moosefs/patches/fix-musl.patch
deleted file mode 100644
index 02e51bedb2e8ab..00000000000000
--- a/srcpkgs/moosefs/patches/fix-musl.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/mfsclient/nbdmain.c	2020-06-08 08:19:08.422379805 +0200
-+++ b/mfsclient/nbdmain.c	2020-06-08 08:18:55.079380447 +0200
-@@ -39,6 +39,7 @@
- #include <errno.h>
- #include <inttypes.h>
- #include <pthread.h>
-+#include <sys/file.h>
- 
- #ifdef HAVE_LINUX_NBD_H
- #include <linux/nbd.h>
diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template
index 6903e7e07ec1d8..b4f8cc44c1a2fb 100644
--- a/srcpkgs/moosefs/template
+++ b/srcpkgs/moosefs/template
@@ -1,7 +1,7 @@
 # Template file for 'moosefs'
 pkgname=moosefs
-version=3.0.117
-revision=2
+version=3.0.118
+revision=1
 build_style=gnu-configure
 configure_args="--localstatedir=/var/lib --with-default-user=_mfs
  --with-default-group=_mfs"
@@ -12,7 +12,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-only"
 homepage="https://moosefs.com/"
 distfiles="https://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
-checksum=d77947d0d8b699e2373926a1274ae81a9a8b24445c5ab986a1ec5e9203e3c3ba
+checksum=d730c82602b303004dbee2e30c0b013a6ee0ee88e427cee930f4a40bc9241df8
 python_version=3
 system_accounts="_mfs"
 
diff --git a/srcpkgs/moosefs4/files/mfscgiserv/run b/srcpkgs/moosefs4/files/mfscgiserv/run
new file mode 100644
index 00000000000000..4eee2a80277ecf
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfscgiserv/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+exec mfscgiserv -f $OPTS start
diff --git a/srcpkgs/moosefs4/files/mfschunkserver/run b/srcpkgs/moosefs4/files/mfschunkserver/run
new file mode 100644
index 00000000000000..316c8507de6206
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfschunkserver/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfschunkserver.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfschunkserver -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/files/mfsmaster/run b/srcpkgs/moosefs4/files/mfsmaster/run
new file mode 100644
index 00000000000000..72389baab5fde1
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfsmaster/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfsmaster.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfsmaster -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/files/mfsmetalogger/run b/srcpkgs/moosefs4/files/mfsmetalogger/run
new file mode 100644
index 00000000000000..2797217ea17238
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfsmetalogger/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfsmetalogger.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfsmetalogger -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/patches/fix-musl.patch b/srcpkgs/moosefs4/patches/fix-musl.patch
new file mode 100644
index 00000000000000..7c9b7bd9e41a88
--- /dev/null
+++ b/srcpkgs/moosefs4/patches/fix-musl.patch
@@ -0,0 +1,10 @@
+--- a/mfsclient/mfsbdev.c	2024-09-23 14:12:52.000000000 +0200
++++ b/mfsclient/mfsbdev.c	2024-11-15 10:29:23.666733778 +0100
+@@ -38,6 +38,7 @@
+ #include <errno.h>
+ #include <inttypes.h>
+ #include <pthread.h>
++#include <sys/file.h>
+ 
+ #ifdef HAVE_LINUX_NBD_H
+ #include <linux/nbd.h>
diff --git a/srcpkgs/moosefs4/template b/srcpkgs/moosefs4/template
new file mode 100644
index 00000000000000..4c50446633ee6a
--- /dev/null
+++ b/srcpkgs/moosefs4/template
@@ -0,0 +1,29 @@
+# Template file for 'moosefs4'
+pkgname=moosefs4
+version=4.56.6
+revision=1
+build_style=gnu-configure
+configure_args="--localstatedir=/var/lib --with-default-user=_mfs
+ --with-default-group=_mfs"
+hostmakedepends="automake libtool pkg-config"
+makedepends="zlib-devel libpcap-devel fuse-devel"
+short_desc="Fault tolerant, network distributed file system"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-only"
+homepage="https://moosefs.com/"
+distfiles="https://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
+checksum=77cad891e38d33a9cfbaf25640e48a684f1650137cef8a86963673494444f7ed
+python_version=3
+system_accounts="_mfs"
+
+pre_configure() {
+	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
+	autoreconf -fi
+}
+
+post_install() {
+	mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
+	for f in chunkserver master metalogger cgiserv; do
+		vsv mfs${f}
+	done
+}
diff --git a/srcpkgs/moosefs4/update b/srcpkgs/moosefs4/update
new file mode 100644
index 00000000000000..d494050f3cc110
--- /dev/null
+++ b/srcpkgs/moosefs4/update
@@ -0,0 +1 @@
+pattern="$pkgname-\K[\d\.]*(?=\-1\.tar\.gz)"

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

* Re: [PR PATCH] [Updated] moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
  2024-11-15 10:06 ` [PR PATCH] [Updated] " toomyem
@ 2024-11-15 10:51 ` toomyem
  2024-11-15 23:09 ` classabbyamp
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: toomyem @ 2024-11-15 10:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

There is an updated pull request by toomyem against master on the void-packages repository

https://github.com/toomyem/void-packages moosefs
https://github.com/void-linux/void-packages/pull/53074

moosefs: update to 3.0.118 and added 4.56.6
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (using crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl

I added a separate package for 4.x line to keep both 3.x and 4.x lines available.

A patch file from https://github.com/void-linux/void-packages/pull/53074.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-moosefs-53074.patch --]
[-- Type: text/x-diff, Size: 5965 bytes --]

From c6c277885681e8fbcd3c9b172c7f5309dbdf29c5 Mon Sep 17 00:00:00 2001
From: toomyem <toomyem@gmail.com>
Date: Fri, 15 Nov 2024 10:48:24 +0100
Subject: [PATCH] moosefs: update to 3.0.118 and add 4.56.6

---
 srcpkgs/moosefs/patches/fix-musl.patch    | 10 --------
 srcpkgs/moosefs/template                  |  7 +++---
 srcpkgs/moosefs4/files/mfscgiserv/run     |  4 +++
 srcpkgs/moosefs4/files/mfschunkserver/run |  6 +++++
 srcpkgs/moosefs4/files/mfsmaster/run      |  6 +++++
 srcpkgs/moosefs4/files/mfsmetalogger/run  |  6 +++++
 srcpkgs/moosefs4/patches/fix-musl.patch   | 10 ++++++++
 srcpkgs/moosefs4/template                 | 30 +++++++++++++++++++++++
 srcpkgs/moosefs4/update                   |  1 +
 9 files changed, 67 insertions(+), 13 deletions(-)
 delete mode 100644 srcpkgs/moosefs/patches/fix-musl.patch
 create mode 100644 srcpkgs/moosefs4/files/mfscgiserv/run
 create mode 100644 srcpkgs/moosefs4/files/mfschunkserver/run
 create mode 100644 srcpkgs/moosefs4/files/mfsmaster/run
 create mode 100644 srcpkgs/moosefs4/files/mfsmetalogger/run
 create mode 100644 srcpkgs/moosefs4/patches/fix-musl.patch
 create mode 100644 srcpkgs/moosefs4/template
 create mode 100644 srcpkgs/moosefs4/update

diff --git a/srcpkgs/moosefs/patches/fix-musl.patch b/srcpkgs/moosefs/patches/fix-musl.patch
deleted file mode 100644
index 02e51bedb2e8ab..00000000000000
--- a/srcpkgs/moosefs/patches/fix-musl.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/mfsclient/nbdmain.c	2020-06-08 08:19:08.422379805 +0200
-+++ b/mfsclient/nbdmain.c	2020-06-08 08:18:55.079380447 +0200
-@@ -39,6 +39,7 @@
- #include <errno.h>
- #include <inttypes.h>
- #include <pthread.h>
-+#include <sys/file.h>
- 
- #ifdef HAVE_LINUX_NBD_H
- #include <linux/nbd.h>
diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template
index 6903e7e07ec1d8..d8c2072409d1eb 100644
--- a/srcpkgs/moosefs/template
+++ b/srcpkgs/moosefs/template
@@ -1,7 +1,7 @@
 # Template file for 'moosefs'
 pkgname=moosefs
-version=3.0.117
-revision=2
+version=3.0.118
+revision=1
 build_style=gnu-configure
 configure_args="--localstatedir=/var/lib --with-default-user=_mfs
  --with-default-group=_mfs"
@@ -12,9 +12,10 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-only"
 homepage="https://moosefs.com/"
 distfiles="https://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
-checksum=d77947d0d8b699e2373926a1274ae81a9a8b24445c5ab986a1ec5e9203e3c3ba
+checksum=d730c82602b303004dbee2e30c0b013a6ee0ee88e427cee930f4a40bc9241df8
 python_version=3
 system_accounts="_mfs"
+conflicts="moosefs4>=0"
 
 pre_configure() {
 	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
diff --git a/srcpkgs/moosefs4/files/mfscgiserv/run b/srcpkgs/moosefs4/files/mfscgiserv/run
new file mode 100644
index 00000000000000..4eee2a80277ecf
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfscgiserv/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+exec mfscgiserv -f $OPTS start
diff --git a/srcpkgs/moosefs4/files/mfschunkserver/run b/srcpkgs/moosefs4/files/mfschunkserver/run
new file mode 100644
index 00000000000000..316c8507de6206
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfschunkserver/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfschunkserver.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfschunkserver -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/files/mfsmaster/run b/srcpkgs/moosefs4/files/mfsmaster/run
new file mode 100644
index 00000000000000..72389baab5fde1
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfsmaster/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfsmaster.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfsmaster -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/files/mfsmetalogger/run b/srcpkgs/moosefs4/files/mfsmetalogger/run
new file mode 100644
index 00000000000000..2797217ea17238
--- /dev/null
+++ b/srcpkgs/moosefs4/files/mfsmetalogger/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+[ -e conf ] && . ./conf
+: ${CONF_FILE:=/etc/mfs/mfsmetalogger.cfg}
+[ -e ${CONF_FILE} ] || exit 1
+exec mfsmetalogger -c ${CONF_FILE} -f start
diff --git a/srcpkgs/moosefs4/patches/fix-musl.patch b/srcpkgs/moosefs4/patches/fix-musl.patch
new file mode 100644
index 00000000000000..7c9b7bd9e41a88
--- /dev/null
+++ b/srcpkgs/moosefs4/patches/fix-musl.patch
@@ -0,0 +1,10 @@
+--- a/mfsclient/mfsbdev.c	2024-09-23 14:12:52.000000000 +0200
++++ b/mfsclient/mfsbdev.c	2024-11-15 10:29:23.666733778 +0100
+@@ -38,6 +38,7 @@
+ #include <errno.h>
+ #include <inttypes.h>
+ #include <pthread.h>
++#include <sys/file.h>
+ 
+ #ifdef HAVE_LINUX_NBD_H
+ #include <linux/nbd.h>
diff --git a/srcpkgs/moosefs4/template b/srcpkgs/moosefs4/template
new file mode 100644
index 00000000000000..65819866c2ce3a
--- /dev/null
+++ b/srcpkgs/moosefs4/template
@@ -0,0 +1,30 @@
+# Template file for 'moosefs4'
+pkgname=moosefs4
+version=4.56.6
+revision=1
+build_style=gnu-configure
+configure_args="--localstatedir=/var/lib --with-default-user=_mfs
+ --with-default-group=_mfs"
+hostmakedepends="automake libtool pkg-config"
+makedepends="zlib-devel libpcap-devel fuse-devel"
+short_desc="Fault tolerant, network distributed file system"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-only"
+homepage="https://moosefs.com/"
+distfiles="https://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
+checksum=77cad891e38d33a9cfbaf25640e48a684f1650137cef8a86963673494444f7ed
+python_version=3
+system_accounts="_mfs"
+conflicts="moosefs>=0"
+
+pre_configure() {
+	sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
+	autoreconf -fi
+}
+
+post_install() {
+	mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
+	for f in chunkserver master metalogger cgiserv; do
+		vsv mfs${f}
+	done
+}
diff --git a/srcpkgs/moosefs4/update b/srcpkgs/moosefs4/update
new file mode 100644
index 00000000000000..d494050f3cc110
--- /dev/null
+++ b/srcpkgs/moosefs4/update
@@ -0,0 +1 @@
+pattern="$pkgname-\K[\d\.]*(?=\-1\.tar\.gz)"

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

* Re: moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
  2024-11-15 10:06 ` [PR PATCH] [Updated] " toomyem
  2024-11-15 10:51 ` toomyem
@ 2024-11-15 23:09 ` classabbyamp
  2024-11-15 23:57 ` toomyem
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: classabbyamp @ 2024-11-15 23:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/53074#issuecomment-2480108857

Comment:
why do we need both 3.x and 4.x?


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

* Re: moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
                   ` (2 preceding siblings ...)
  2024-11-15 23:09 ` classabbyamp
@ 2024-11-15 23:57 ` toomyem
  2024-11-16  0:55 ` classabbyamp
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: toomyem @ 2024-11-15 23:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

New comment by toomyem on void-packages repository

https://github.com/void-linux/void-packages/pull/53074#issuecomment-2480161473

Comment:
I assumed that someone may want to stay on 3.x line for whatever reason. Similar to keeping both python2 and 3.

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

* Re: moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
                   ` (3 preceding siblings ...)
  2024-11-15 23:57 ` toomyem
@ 2024-11-16  0:55 ` classabbyamp
  2024-11-16 16:26 ` toomyem
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: classabbyamp @ 2024-11-16  0:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/53074#issuecomment-2480243822

Comment:
I don't think it's similar. python 2 and 3 are kept separate because they are incompatible, and there are other packages that depend on them (same for things like libgit2 and libgit2-1.8)

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

* Re: moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
                   ` (4 preceding siblings ...)
  2024-11-16  0:55 ` classabbyamp
@ 2024-11-16 16:26 ` toomyem
  2024-11-16 16:27 ` toomyem
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: toomyem @ 2024-11-16 16:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

New comment by toomyem on void-packages repository

https://github.com/void-linux/void-packages/pull/53074#issuecomment-2480642882

Comment:
Ok, then another example may be java 17 and 21. Is it a problem to have two lines 0of moosefs for some time? When 4.x line matures, we can remove the old one.

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

* Re: moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
                   ` (5 preceding siblings ...)
  2024-11-16 16:26 ` toomyem
@ 2024-11-16 16:27 ` toomyem
  2024-11-16 17:00 ` classabbyamp
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: toomyem @ 2024-11-16 16:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

New comment by toomyem on void-packages repository

https://github.com/void-linux/void-packages/pull/53074#issuecomment-2480642882

Comment:
Ok, then another example may be java 17 and 21.
 Is it a problem to have two lines of moosefs for some time? When 4.x line matures, we can remove the old one.

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

* Re: moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
                   ` (6 preceding siblings ...)
  2024-11-16 16:27 ` toomyem
@ 2024-11-16 17:00 ` classabbyamp
  2024-11-17 10:02 ` [PR PATCH] [Updated] " toomyem
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: classabbyamp @ 2024-11-16 17:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/53074#issuecomment-2480665702

Comment:
java is another example like python (actually it's worse, you need java N-1 to bootstrap java N).

either update it to the latest 3.x or the latest 4.x, but I don't see a point in making two packages. Major version bumps happen all the time in void, we do not make new packages for every single one.

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

* Re: [PR PATCH] [Updated] moosefs: update to 3.0.118 and added 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
                   ` (7 preceding siblings ...)
  2024-11-16 17:00 ` classabbyamp
@ 2024-11-17 10:02 ` toomyem
  2024-11-17 10:06 ` moosefs: update to 4.56.6 toomyem
  2024-11-19 14:47 ` toomyem
  10 siblings, 0 replies; 12+ messages in thread
From: toomyem @ 2024-11-17 10:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

There is an updated pull request by toomyem against master on the void-packages repository

https://github.com/toomyem/void-packages moosefs
https://github.com/void-linux/void-packages/pull/53074

moosefs: update to 3.0.118 and added 4.56.6
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (using crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl

I added a separate package for 4.x line to keep both 3.x and 4.x lines available.

A patch file from https://github.com/void-linux/void-packages/pull/53074.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-moosefs-53074.patch --]
[-- Type: text/x-diff, Size: 1743 bytes --]

From 383c01e51d47f9a788a1b49e249e8eaf043a47d7 Mon Sep 17 00:00:00 2001
From: toomyem <toomyem@gmail.com>
Date: Fri, 15 Nov 2024 10:48:24 +0100
Subject: [PATCH] moosefs: update to 4.56.6

---
 srcpkgs/moosefs/patches/fix-musl.patch | 6 +++---
 srcpkgs/moosefs/template               | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/moosefs/patches/fix-musl.patch b/srcpkgs/moosefs/patches/fix-musl.patch
index 02e51bedb2e8ab..7c9b7bd9e41a88 100644
--- a/srcpkgs/moosefs/patches/fix-musl.patch
+++ b/srcpkgs/moosefs/patches/fix-musl.patch
@@ -1,6 +1,6 @@
---- a/mfsclient/nbdmain.c	2020-06-08 08:19:08.422379805 +0200
-+++ b/mfsclient/nbdmain.c	2020-06-08 08:18:55.079380447 +0200
-@@ -39,6 +39,7 @@
+--- a/mfsclient/mfsbdev.c	2024-09-23 14:12:52.000000000 +0200
++++ b/mfsclient/mfsbdev.c	2024-11-15 10:29:23.666733778 +0100
+@@ -38,6 +38,7 @@
  #include <errno.h>
  #include <inttypes.h>
  #include <pthread.h>
diff --git a/srcpkgs/moosefs/template b/srcpkgs/moosefs/template
index 6903e7e07ec1d8..0f45481e856cf1 100644
--- a/srcpkgs/moosefs/template
+++ b/srcpkgs/moosefs/template
@@ -1,7 +1,7 @@
 # Template file for 'moosefs'
 pkgname=moosefs
-version=3.0.117
-revision=2
+version=4.56.6
+revision=1
 build_style=gnu-configure
 configure_args="--localstatedir=/var/lib --with-default-user=_mfs
  --with-default-group=_mfs"
@@ -12,7 +12,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-only"
 homepage="https://moosefs.com/"
 distfiles="https://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
-checksum=d77947d0d8b699e2373926a1274ae81a9a8b24445c5ab986a1ec5e9203e3c3ba
+checksum=77cad891e38d33a9cfbaf25640e48a684f1650137cef8a86963673494444f7ed
 python_version=3
 system_accounts="_mfs"
 

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

* Re: moosefs: update to 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
                   ` (8 preceding siblings ...)
  2024-11-17 10:02 ` [PR PATCH] [Updated] " toomyem
@ 2024-11-17 10:06 ` toomyem
  2024-11-19 14:47 ` toomyem
  10 siblings, 0 replies; 12+ messages in thread
From: toomyem @ 2024-11-17 10:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

New comment by toomyem on void-packages repository

https://github.com/void-linux/void-packages/pull/53074#issuecomment-2481120321

Comment:
Ok, so I updated it to 4.x line.

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

* Re: moosefs: update to 4.56.6
  2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
                   ` (9 preceding siblings ...)
  2024-11-17 10:06 ` moosefs: update to 4.56.6 toomyem
@ 2024-11-19 14:47 ` toomyem
  10 siblings, 0 replies; 12+ messages in thread
From: toomyem @ 2024-11-19 14:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

New comment by toomyem on void-packages repository

https://github.com/void-linux/void-packages/pull/53074#issuecomment-2485921013

Comment:
Any chance to get it merged?

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

end of thread, other threads:[~2024-11-19 14:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-15 10:02 [PR PATCH] moosefs: update to 3.0.118 and added 4.56.6 toomyem
2024-11-15 10:06 ` [PR PATCH] [Updated] " toomyem
2024-11-15 10:51 ` toomyem
2024-11-15 23:09 ` classabbyamp
2024-11-15 23:57 ` toomyem
2024-11-16  0:55 ` classabbyamp
2024-11-16 16:26 ` toomyem
2024-11-16 16:27 ` toomyem
2024-11-16 17:00 ` classabbyamp
2024-11-17 10:02 ` [PR PATCH] [Updated] " toomyem
2024-11-17 10:06 ` moosefs: update to 4.56.6 toomyem
2024-11-19 14:47 ` toomyem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).