From owner-svn-ports-all@freebsd.org Wed Jul 29 20:34:02 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2FE6636C006; Wed, 29 Jul 2020 20:34:02 +0000 (UTC) (envelope-from flo@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BH4yL0Snmz4F9K; Wed, 29 Jul 2020 20:34:02 +0000 (UTC) (envelope-from flo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E76FA25B0A; Wed, 29 Jul 2020 20:34:01 +0000 (UTC) (envelope-from flo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06TKY1gm082886; Wed, 29 Jul 2020 20:34:01 GMT (envelope-from flo@FreeBSD.org) Received: (from flo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06TKXxSI082872; Wed, 29 Jul 2020 20:33:59 GMT (envelope-from flo@FreeBSD.org) Message-Id: <202007292033.06TKXxSI082872@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: flo set sender to flo@FreeBSD.org using -f From: Florian Smeets Date: Wed, 29 Jul 2020 20:33:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r543674 - in head/net/glusterfs: . files X-SVN-Group: ports-head X-SVN-Commit-Author: flo X-SVN-Commit-Paths: in head/net/glusterfs: . files X-SVN-Commit-Revision: 543674 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2020 20:34:02 -0000 Author: flo Date: Wed Jul 29 20:33:59 2020 New Revision: 543674 URL: https://svnweb.freebsd.org/changeset/ports/543674 Log: Update to 8.0, this is a collaborative effort between Daniel Morante and myself. - update to 8.0 - make it possible to mount gluster volumes on boot [1] - reset maintainer [1], I would have set it to ports@ but Daniel volunteered to maintain the port - add pkg-message to point out that procfs is required for some operations like "gluster volume status" which is also required for self healing. [2] This version works although I still see the same memory leak as with the 3.X series. PR: 236112 [1], 223671 [2] Submitted by: Daniel Morante , flo Obtained from: https://github.com/tuaris/freebsd-glusterfs7 Differential Revision: D25037 Added: head/net/glusterfs/files/patch-configure.ac (contents, props changed) head/net/glusterfs/files/patch-libglusterfs_src_common-utils.c (contents, props changed) head/net/glusterfs/files/patch-libglusterfs_src_syscall.c (contents, props changed) head/net/glusterfs/files/patch-xlators_mgmt_glusterd_src_Makefile.am (contents, props changed) head/net/glusterfs/pkg-message (contents, props changed) Deleted: head/net/glusterfs/files/patch-configure head/net/glusterfs/files/patch-extras_Makefile.in Modified: head/net/glusterfs/Makefile head/net/glusterfs/distinfo head/net/glusterfs/files/glusterd.in head/net/glusterfs/files/patch-contrib_fuse-lib_mount.c head/net/glusterfs/pkg-plist Modified: head/net/glusterfs/Makefile ============================================================================== --- head/net/glusterfs/Makefile Wed Jul 29 19:51:32 2020 (r543673) +++ head/net/glusterfs/Makefile Wed Jul 29 20:33:59 2020 (r543674) @@ -1,61 +1,68 @@ # $FreeBSD$ PORTNAME= glusterfs -PORTVERSION= 3.11.1 -PORTREVISION= 7 +PORTVERSION= 8.0 CATEGORIES= net MASTER_SITES= http://bits.gluster.org/pub/gluster/glusterfs/src/ -MAINTAINER= craig001@lerwick.hopto.org +MAINTAINER= daniel@morante.net COMMENT= GlusterFS distributed file system LICENSE= GPLv2 LGPL3 LICENSE_COMB= dual -DEPRECATED= Uses deprecated version of python -EXPIRATION_DATE= 2020-09-15 +LIB_DEPENDS= libargp.so:devel/argp-standalone \ + libcurl.so:ftp/curl \ + liburcu-bp.so:sysutils/liburcu \ + libuuid.so:misc/e2fsprogs-libuuid -LIB_DEPENDS= libargp.so:devel/argp-standalone liburcu-bp.so:sysutils/liburcu +RUN_DEPENDS= bash:shells/bash -USES= bison gettext gnome libtool pkgconfig python:2.7 readline \ - shebangfix sqlite ssl - BROKEN_SSL= libressl -SHEBANG_FILES= extras/peer_add_secret_pub.in \ - events/src/glustereventsd.py \ - events/src/peer_eventsapi.py \ - tools/glusterfind/src/nodeagent.py \ - tools/glusterfind/src/brickfind.py \ - tools/glusterfind/src/changelog.py \ - tools/glusterfind/glusterfind.in \ - tools/gfind_missing_files/gfid_to_path.py \ - extras/pre-upgrade-script-for-quota.sh \ - events/tools/eventsdash.py \ +USES= autoreconf bison gettext gnome libtool pkgconfig python \ + readline shebangfix sqlite ssl + +SHEBANG_FILES= events/src/glustereventsd.py events/src/peer_eventsapi.py \ + events/tools/eventsdash.py extras/ganesha/ocf/ganesha_grace \ + extras/ganesha/ocf/ganesha_mon extras/ganesha/ocf/ganesha_nfsd \ + extras/ganesha/scripts/create-export-ganesha.sh \ + extras/ganesha/scripts/dbus-send.sh \ + extras/ganesha/scripts/ganesha-ha.sh \ + extras/ganesha/scripts/generate-epoch.py \ + extras/peer_add_secret_pub.in \ extras/post-upgrade-script-for-quota.sh \ + extras/pre-upgrade-script-for-quota.sh \ extras/snap_scheduler/gcron.py \ extras/snap_scheduler/snap_scheduler.py \ - events/src/peer_eventsapi.py \ - events/src/glustereventsd.py \ - tools/glusterfind/S57glusterfind-delete-post.py + extras/stop-all-gluster-processes.sh \ + extras/thin-arbiter/setup-thin-arbiter.sh \ + tools/gfind_missing_files/gfid_to_path.py \ + tools/glusterfind/glusterfind.in \ + tools/glusterfind/S57glusterfind-delete-post.py \ + tools/glusterfind/src/brickfind.py \ + tools/glusterfind/src/changelog.py \ + tools/glusterfind/src/nodeagent.py USE_GNOME= glib20 libxml2 USE_LDCONFIG= yes USE_RC_SUBR= glusterd GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \ - --with-mountutildir=${PREFIX}/sbin \ - --localstatedir=/var \ - --disable-epoll \ - --enable-glupy \ +CONFIGURE_ARGS= --disable-epoll \ --disable-georeplication \ - ac_cv_lib_aio_io_setup=no ac_cv_func_fallocate=no \ - ac_cv_func_setfsuid=no ac_cv_func_fdatasync=no \ - ac_cv_func_llistxattr=no ac_cv_func_malloc_stats=no + --localstatedir=/var \ + --with-mountutildir=${PREFIX}/sbin \ + --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \ + ac_cv_func_fallocate=no \ + ac_cv_func_fdatasync=no \ + ac_cv_func_llistxattr=no \ + ac_cv_func_malloc_stats=no \ + ac_cv_func_setfsuid=no \ + ac_cv_lib_aio_io_setup=no CPPFLAGS+= -I"${LOCALBASE}/include" LDFLAGS+= -L"${LOCALBASE}/lib" -largp INSTALL_TARGET= install-strip -PLIST_SUB= GLUSTERLIBDIR="lib/${PORTNAME}/${PORTVERSION}" +PLIST_SUB= GLUSTERLIBDIR="lib/${PORTNAME}" KMODDIR?= /boot/modules OPTIONS_DEFINE= DOCS Modified: head/net/glusterfs/distinfo ============================================================================== --- head/net/glusterfs/distinfo Wed Jul 29 19:51:32 2020 (r543673) +++ head/net/glusterfs/distinfo Wed Jul 29 20:33:59 2020 (r543674) @@ -1,3 +1,3 @@ -TIMESTAMP = 1499632037 -SHA256 (glusterfs-3.11.1.tar.gz) = c7e0502631c9bc9da05795b666b74ef40a30a0344f5a2e205e65bd2faefe1442 -SIZE (glusterfs-3.11.1.tar.gz) = 9155001 +TIMESTAMP = 1594844267 +SHA256 (glusterfs-8.0.tar.gz) = bc0215380175a7d94c9ea90e3a7e0ca92a3ac691336e8b43da8a560f8e3c0169 +SIZE (glusterfs-8.0.tar.gz) = 7800370 Modified: head/net/glusterfs/files/glusterd.in ============================================================================== --- head/net/glusterfs/files/glusterd.in Wed Jul 29 19:51:32 2020 (r543673) +++ head/net/glusterfs/files/glusterd.in Wed Jul 29 20:33:59 2020 (r543674) @@ -3,7 +3,8 @@ # $FreeBSD$ # PROVIDE: glusterd -# REQUIRE: LOGIN +# BEFORE: mountlate +# REQUIRE: NETWORKING # KEYWORD: shutdown . /etc/rc.subr Added: head/net/glusterfs/files/patch-configure.ac ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/glusterfs/files/patch-configure.ac Wed Jul 29 20:33:59 2020 (r543674) @@ -0,0 +1,23 @@ +--- configure.ac.orig 2020-07-06 01:22:37 UTC ++++ configure.ac +@@ -731,6 +731,9 @@ AC_ARG_ENABLE([georeplication], + + BUILD_SYNCDAEMON=no + case $host_os in ++ freebsd*) ++#do nothing ++ ;; + linux*) + #do nothing + ;; +@@ -1207,10 +1210,6 @@ case $host_os in + ;; + *freebsd*) + GF_HOST_OS="GF_BSD_HOST_OS" +- GF_CFLAGS="${GF_CFLAGS} -O0" +- GF_CFLAGS="${GF_CFLAGS} -DTHREAD_UNSAFE_BASENAME" +- GF_CFLAGS="${GF_CFLAGS} -DTHREAD_UNSAFE_DIRNAME" +- GF_CFLAGS="${GF_CFLAGS} -D_LIBGEN_H_" + GF_CFLAGS="${GF_CFLAGS} -DO_DSYNC=0" + GF_CFLAGS="${GF_CFLAGS} -Dxdr_quad_t=xdr_longlong_t" + GF_CFLAGS="${GF_CFLAGS} -Dxdr_u_quad_t=xdr_u_longlong_t" Modified: head/net/glusterfs/files/patch-contrib_fuse-lib_mount.c ============================================================================== --- head/net/glusterfs/files/patch-contrib_fuse-lib_mount.c Wed Jul 29 19:51:32 2020 (r543673) +++ head/net/glusterfs/files/patch-contrib_fuse-lib_mount.c Wed Jul 29 20:33:59 2020 (r543674) @@ -1,6 +1,6 @@ ---- contrib/fuse-lib/mount.c.orig 2017-06-27 15:25:12 UTC +--- contrib/fuse-lib/mount.c.orig 2020-07-06 01:22:37 UTC +++ contrib/fuse-lib/mount.c -@@ -382,6 +382,7 @@ fuse_mount_sys (const char *mountpoint, +@@ -390,6 +390,7 @@ fuse_mount_sys (const char *mountpoint, char *fsname, build_iovec (&iov, &iovlen, "from", "/dev/fuse", -1); build_iovec (&iov, &iovlen, "volname", source, -1); build_iovec (&iov, &iovlen, "fd", fdstr, -1); Added: head/net/glusterfs/files/patch-libglusterfs_src_common-utils.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/glusterfs/files/patch-libglusterfs_src_common-utils.c Wed Jul 29 20:33:59 2020 (r543674) @@ -0,0 +1,11 @@ +--- libglusterfs/src/common-utils.c.orig 2020-05-18 20:57:54 UTC ++++ libglusterfs/src/common-utils.c +@@ -3067,7 +3067,7 @@ get_mem_size() + memsize = page_size * num_pages; + #endif + +-#if defined GF_DARWIN_HOST_OS ++#if defined GF_DARWIN_HOST_OS || defined __FreeBSD__ + + size_t len = sizeof(memsize); + int name[] = {CTL_HW, HW_PHYSMEM}; Added: head/net/glusterfs/files/patch-libglusterfs_src_syscall.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/glusterfs/files/patch-libglusterfs_src_syscall.c Wed Jul 29 20:33:59 2020 (r543674) @@ -0,0 +1,20 @@ +--- libglusterfs/src/syscall.c.orig 2020-05-18 20:57:54 UTC ++++ libglusterfs/src/syscall.c +@@ -485,7 +485,7 @@ sys_lsetxattr(const char *path, const char *name, cons + #endif + + #ifdef GF_BSD_HOST_OS +- return FS_RET_CHECK0( ++ return FS_RET_CHECK( + extattr_set_link(path, EXTATTR_NAMESPACE_USER, name, value, size), + errno); + #endif +@@ -603,7 +603,7 @@ sys_fsetxattr(int filedes, const char *name, const voi + #endif + + #ifdef GF_BSD_HOST_OS +- return FS_RET_CHECK0( ++ return FS_RET_CHECK( + extattr_set_fd(filedes, EXTATTR_NAMESPACE_USER, name, value, size), + errno); + #endif Added: head/net/glusterfs/files/patch-xlators_mgmt_glusterd_src_Makefile.am ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/glusterfs/files/patch-xlators_mgmt_glusterd_src_Makefile.am Wed Jul 29 20:33:59 2020 (r543674) @@ -0,0 +1,18 @@ +--- xlators/mgmt/glusterd/src/Makefile.am.orig 2020-07-16 17:28:50 UTC ++++ xlators/mgmt/glusterd/src/Makefile.am +@@ -25,12 +25,14 @@ glusterd_la_SOURCES = glusterd.c glusterd-handler.c gl + glusterd-conn-helper.c glusterd-snapd-svc.c glusterd-snapd-svc-helper.c \ + glusterd-bitd-svc.c glusterd-scrub-svc.c glusterd-server-quorum.c \ + glusterd-reset-brick.c glusterd-shd-svc.c glusterd-shd-svc-helper.c \ +- glusterd-gfproxyd-svc.c glusterd-gfproxyd-svc-helper.c glusterd-ganesha.c ++ glusterd-gfproxyd-svc.c glusterd-gfproxyd-svc-helper.c glusterd-ganesha.c \ ++ $(CONTRIBDIR)/mount/mntent.c + + glusterd_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \ + $(top_builddir)/libglusterd/src/libglusterd.la \ + $(top_builddir)/rpc/xdr/src/libgfxdr.la \ + $(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \ ++ $(CONTRIBDIR)/mount/mntent_compat.h \ + $(XML_LIBS) -lcrypto $(URCU_LIBS) $(URCU_CDS_LIBS) $(LIB_DL) + + noinst_HEADERS = glusterd.h glusterd-utils.h glusterd-op-sm.h \ Added: head/net/glusterfs/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/glusterfs/pkg-message Wed Jul 29 20:33:59 2020 (r543674) @@ -0,0 +1,15 @@ +[ +{ type: install + message: <