From owner-freebsd-current@FreeBSD.ORG Thu Jan 5 23:17:44 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D527106566C for ; Thu, 5 Jan 2012 23:17:44 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id C81128FC08 for ; Thu, 5 Jan 2012 23:17:42 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 79BFF14E69ED; Fri, 6 Jan 2012 00:00:49 +0100 (CET) X-Virus-Scanned: amavisd-new at server.mypc.hu Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PzAkHeP7Ev3X; Fri, 6 Jan 2012 00:00:47 +0100 (CET) Received: from [192.168.1.117] (catv-80-98-232-12.catv.broadband.hu [80.98.232.12]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 504E514E69D0; Fri, 6 Jan 2012 00:00:47 +0100 (CET) Message-ID: <4F062B99.6030202@FreeBSD.org> Date: Fri, 06 Jan 2012 00:00:41 +0100 From: Gabor Kovesdan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a2) Gecko/20111124 Thunderbird/10.0a2 MIME-Version: 1.0 To: "O. Hartmann" References: <4F060231.5010606@zedat.fu-berlin.de> In-Reply-To: <4F060231.5010606@zedat.fu-berlin.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Current FreeBSD Subject: Re: WITH_ICONV/WITH_BSD_GREP: Defaults? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2012 23:17:44 -0000 On 2012.01.05. 21:04, O. Hartmann wrote: > In FreeBSD 9 and 10, src.conf could be populated with those two knobs > > WITH_ICONV > and > WITH_BSD_GREP > > For some testing purposes, I switched them both to "enabled", so I could > test ports and software against these. > > I didn't realize any serious issue with WITH_BSD_GREP, but I read, some > time ago, that bsdggrep does have some speed issues. What is the actual > status of bsdgrep in FreeBSD? Yes, BSD grep has significant performance problems. It is quite a complex issue because GNU grep uses some shortcuts to speed up pattern matching. I don't want to put that in BSD grep because that does not seem correct to me. Such code belongs to the regex library. Not just logically but practically, as well, so that other dependencies can also benefit from a faster pattern matching. However, it cannot be done with the POSIX-compliant API so it requires some extensions. From the last GSoC, there is an ongoing work on this but currently, I'm having exams at the university. I hope I can finish it after my exams. > > Another story seems to be with WITH_ICONV. I didn't realize problems > until I had harsh faults compiling port lang/gcc46 which tend to fail in > a Makefile when WITH_ICONV is enabled. But at that point the issue the > first time occured, I hadn't deinstalled port converters/libiconv so I > can not say whether those issues came due to confusions. But it seems to > tend to confusions having remnants of WITH_iconv installation when > disabling the build by deleting or commenting out WITH_ICONV. > What is the status of WITH_ICONV? > The ports seem still to rely on the port libiconv when being built. BSD iconv works quite well in some cases but there are some problems on my TODO list, so I preferred to leave it off by default until they are solved. Gabor