From owner-freebsd-fs@freebsd.org Wed Dec 9 13:39:22 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A5CE9D5F8F for ; Wed, 9 Dec 2015 13:39:22 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 0C3C81088; Wed, 9 Dec 2015 13:39:21 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) IronPort-PHdr: 9a23:0hqXrxczoyngpu1zlyScKtZVlGMj4u6mDksu8pMizoh2WeGdxc68ZB7h7PlgxGXEQZ/co6odzbGG7ea4ASQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTpkbjqs7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Loc8dVdW/D6Y7ggH/sfEys5dU4v6cDBjjWFShGAtUcbB2wMmwdKBCDr9hz3dKzd9CzgublTwi6faPf3RrN8fD2p7KNmTVe8kiIOPD09/WT/l8t/ka9fuBLnrBUpkN2cW52cKPcrJvCVRtgdX2cUBss= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DPAQBQLmhW/61jaINehA1uBr1DAQ2BYhcKhSRKAoFdFAEBAQEBAQEBgQmCLYIHAQEBAwEBAQEgKyALEAIBCBgCAg0ZAgInAQkmAgwHBAEIFASIBggNrhKRcwEBAQEBAQQBAQEBAR6BAYVUg3eBBoQ7AQEBBIJ7OhOBNgWOI4hGhTOFIoUSml4CHwEBQoQiIDQHhDE6gQcBAQE X-IronPort-AV: E=Sophos;i="5.20,403,1444708800"; d="scan'208";a="256591142" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-annu.net.uoguelph.ca with ESMTP; 09 Dec 2015 08:39:19 -0500 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id C8D1E15F574; Wed, 9 Dec 2015 08:39:19 -0500 (EST) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Ur7ZbyjkK5FF; Wed, 9 Dec 2015 08:39:18 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id C924515F578; Wed, 9 Dec 2015 08:39:18 -0500 (EST) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DsaSSEfK8kLA; Wed, 9 Dec 2015 08:39:18 -0500 (EST) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id AC62F15F574; Wed, 9 Dec 2015 08:39:18 -0500 (EST) Date: Wed, 9 Dec 2015 08:39:18 -0500 (EST) From: Rick Macklem To: araujo@FreeBSD.org Cc: freebsd-fs Message-ID: <1478128484.125142271.1449668358457.JavaMail.zimbra@uoguelph.ca> In-Reply-To: References: <1019856000.124469572.1449614373287.JavaMail.zimbra@uoguelph.ca> Subject: Re: setting up a port for GlusterFS? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.10] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF42 (Win)/8.0.9_GA_6191) Thread-Topic: setting up a port for GlusterFS? Thread-Index: Ft4qDkU+eLz2/zlm8LAJiTnZYiVSzQ== X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2015 13:39:22 -0000 Marcelo wrote: > Hey Rick, > > Yes, I can do it, if there is no other people interested. > Well, if you could do it that would be great. You've probably already seen Jordan's post as a starting point. Here's what I ended up doing: Installed these ports: - ports/devel/bison ports/sysutils/liburcu ports/textproc/libxml2 ports/devel/libtool ports/devel/automake ports/devel/autoconf I also had a bunch of ports installed when I installed subversion and I think these are the ones needed from the set already installed: (I might have missed a couple here. Usually "configure" complains if something is missing.) Needed ports already installed: - ports/lang/python27 ports/devel/readline ports/databases/sqlite3 Here's the url that I downloaded the tarball from: download.gluster.org/pub/gluster/glusterfs/LATEST/glusterfs-3.7.6.tar.gz Then to build it: ./autogen.sh ./configure make - which all worked ok. Without running "autogen.sh" first, the rest works but it doesn't create the shared libraries for some reason? make install - fails right near the end because DESTDIR isn't defined, when installing glusterfsfind. (I can fix it via a 1 line patch that replaces $(DESTDIR) with $(DESTDIR)$(glusterfinddir) in the Makefile, but I don't know what the correct fix is. Since this install happens at the end, all the important stuff is already installed.) Once the "make install" is done, the system basically works, but there are some issues that need to be resolved: - It installs most things under /usr/local, but installs mount_glusterfs in /sbin. Is this allowable/reasonable? (Btw, it still won't work being started from mount(8), you have to run the command by itself.) - The man pages are in /usr/local/share/man/man8 and "man" doesn't see them by default. - There is an rc.d script under glusterfs-3.7.6/extras that isn't installed. (Probably just as well, since it doesn't load fuse. Without fuse loaded, mount_glusterfs fails silently.) Is a port allowed to add scripts to /etc/rc.d? So, if you would like to take this on, I think that would be great. I'll admit to knowing nothing about ports setup or the autogen/configure stuff, so I would be struggling to get it done. Thanks, rick > > Best, > > 2015-12-09 6:39 GMT+08:00 Rick Macklem : > > > Hi, > > > > I've basically succeeded in getting glusterfs 3.7.6 to build and > > work on FreeBSD-current (only very minimally tested). > > I think it would be nice to set this up as a port, in case others > > would like to test it, however I have zero knowledge w.r.t. how > > to set up a port? > > - If someone is interested in doing this, I can pass along the > > "tricks" I needed to do to get it to build/install/work. > > (Mostly other ports that needed to be installed first.) > > > > Anyone interested? rick > > _______________________________________________ > > freebsd-fs@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > > > > > > -- > > -- > Marcelo Araujo (__)araujo@FreeBSD.org > \\\'',)http://www.FreeBSD.org \/ \ ^ > Power To Server. .\. /_) >