From owner-freebsd-ports@FreeBSD.ORG Fri Jul 11 13:41:38 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D2FC1F5F for ; Fri, 11 Jul 2014 13:41:38 +0000 (UTC) Received: from mailhost.madaboutcable.com (mailhost.madaboutcable.com [88.96.254.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 714FD29FA for ; Fri, 11 Jul 2014 13:41:37 +0000 (UTC) Received: from ws-w702-dr.ksm.pri ([192.168.5.50] helo=[127.0.0.1]) by mailhost.madaboutcable.com with esmtp (Exim 4.82 (FreeBSD)) (envelope-from ) id 1X5ak1-000448-Fp; Fri, 11 Jul 2014 14:19:58 +0100 Message-ID: <53BFE47D.4030203@ksm.co.uk> Date: Fri, 11 Jul 2014 14:19:57 +0100 From: Daren Organization: KSM Limited User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Konstantin Belousov , ports@freebsd.org Subject: Re: [hylafax-users] Hylafax on FreeBSD 100% CPU References: <53B5329F.9000906@ksm.co.uk> <53B5F55A.20909@howardsilvan.com> <20140705103816.GP93733@kib.kiev.ua> <53B8601E.8040600@howardsilvan.com> <53BD1337.7040808@ksm.co.uk> <53BD9B43.5010604@howardsilvan.com> <53BE4EA9.5000308@ksm.co.uk> <20140710083923.GK93733@kib.kiev.ua> <53BF38D7.4030402@howardsilvan.com> <20140711092202.GZ93733@kib.kiev.ua> In-Reply-To: <20140711092202.GZ93733@kib.kiev.ua> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 140711-0, 11/07/2014), Outbound message X-Antivirus-Status: Clean X-Spam-Score: -1.0 (-) Cc: Lee Howard , hylafax-users@hylafax.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2014 13:41:38 -0000 Ah, you beat me to posting the findings! I thought I'd better make the point that the changes Lee made were against Hylafax+ (5.5.5 from Sourceforge) whereas the port uses Hylafax 6 from hylafax.org. I do not know 100% if the changes Lee made to H+ will filter back to hylafax.org. I was going to have an attempt at making a port locally using the H+ sources, and if successful can submit it, but unfortunately I don't know if I'll have time to do it full-time (assuming I'm successful - I've never tried anything like this before!) In the meantime, anybody having the 100% cpu issue can enable an option in the config.site file of the existing port, which is CONFIG_OPENFIFO="O_RDWR". A simple patch file added to the files directory is probably easiest (even I managed to do that!!) I've been running with this single change since this morning with no issues. This more or less falls in line with the final comment of the original PR, but it seems you do not need the FIFOBUG switch enabled, nor the Linux procfs mounted as was also in the original PR. Regards Daren On 11/07/2014 10:22, Konstantin Belousov wrote: > There was quite good and encouraging progress made on the state > of the Hylafax for the FreeBSD, thanks to the efforts of Daren and Lee > Howard. I do not know when the next release of Hylafax come out with the > committed changes below, but whenever it happens, the port update to new > release should improve things. > > The port accumulated quite a bit of problems, and most pressing issues > on FreeBSD with the 100% CPU time spent on FIFO reads, as well as > utmp->utmpx conversion, are fixed in upstream now. > > There is no maintainer for the Hylafax port, I am forwarding this > message to ports@ in hope some motivated ports person will pick the > stuff. My belief is that the programming issues are fixed, the > remaining work is packaging-related. > > On Thu, Jul 10, 2014 at 06:07:35PM -0700, Lee Howard wrote: > > On 07/10/2014 01:39 AM, Konstantin Belousov wrote: > >> On Thu, Jul 10, 2014 at 09:28:25AM +0100, Daren wrote: > >>> I had a quick go with your patch, but it didn't apply. Having a quick > >>> look I believe it's simply an issue with the path to the hfaxd folder, > >>> so I'll have another look as soon as I get a little time. I did also > >>> have a quick look at compiling version 5.5.5 (at first without the > >>> patch) but ran into issues straight away. When compiling > GettyBSD.c++, > >>> it's having a fatal error 'utmp.h' file not found. A quick google > >>> suggests this was changed to "utmpx.h" in recent versions of > FreeBSD and > >>> looking at the ports version of hylafax6, there's a few patches that > >>> need applying for that to compile properly (and although I can see > what > >>> they do, I'm unsure why they do it!) I'll try and have another go > when > >>> I get a spare hour or two at work. > >> This in fact means that FreeBSD port-specific patches should be > upstreamed. > >> But the ports does not have a maintainer. Somebody needs to > communicate > >> the patches to the Hylafax developers. > > > > I've taken what little of those patches seemed appropriate for upstream > > application and I've committed them: > > > > http://sourceforge.net/p/hylafax/HylaFAX+/2336/ > > http://sourceforge.net/p/hylafax/HylaFAX+/2337/ > > > > However, the real difference had to do with how the package in FreeBSD > > ports was being built: "--with-GETTY=SysV" instead of the "BSD" default > > that would get picked-up normally. Since the SysVGetty supported utmpx > > this worked. > > > > Nonetheless, I've updated the BSDGetty code in HylaFAX+ to support > > utmpx. So it can now be built with SysV or BSD Getty support, as > may be > > desired. It seems to run fine with BSDGetty in my limited testing on a > > FreeBSD 10 installation on a virtual machine using an iaxmodem. > > > > http://sourceforge.net/p/hylafax/HylaFAX+/2339/ > > > > Daren, since you seem to have a working solution it may not matter to > > you to mess around with any more testing. You would have some limited > > benefit in updating to HylaFAX+ code, but it may not be worth the > effort > > to you. If you can easily mimick the build and installation from > > FreeBSD ports, then updating should be no problem. But it seems that > > this may be a bit more struggle for you, and you may be happiest to > just > > remain with your working solution. I'll send you a tarball of the code > > separately - saving you the effort of patching. If you don't want to > > use it, that's understandable and fine. > > > > If you (or anyone else) want to build and install HylaFAX+ on > FreeBSD it > > is this easy: > > > > ./configure -with-LIBTIFF="-L/usr/local/lib -ltiff" > > -with-TIFFINC="-I/usr/local/include" && make && make install > > > > If you want to use SysV Getty instead of BSD Getty, then change the > > configure command to: > > > > ./configure -with-LIBTIFF="-L/usr/local/lib -ltiff" > > -with-TIFFINC="-I/usr/local/include" -with-GETTY=SysV > > > > It may be more-involved if you want to get things going like JBIG and > > color fax support, etc. Someone interested should really volunteer to > > be the FreeBSD HylaFAX ports maintainer. > > > > Thanks, > > > > Lee.